/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the directconnect-2012-10-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.DirectConnect.Model { /// /// Information about the virtual interface failover test. /// public partial class VirtualInterfaceTestHistory { private List _bgpPeers = new List(); private DateTime? _endTime; private string _ownerAccount; private DateTime? _startTime; private string _status; private int? _testDurationInMinutes; private string _testId; private string _virtualInterfaceId; /// /// Gets and sets the property BgpPeers. /// /// The BGP peers that were put in the DOWN state as part of the virtual interface failover /// test. /// /// public List BgpPeers { get { return this._bgpPeers; } set { this._bgpPeers = value; } } // Check to see if BgpPeers property is set internal bool IsSetBgpPeers() { return this._bgpPeers != null && this._bgpPeers.Count > 0; } /// /// Gets and sets the property EndTime. /// /// The time that the virtual interface moves out of the DOWN state. /// /// public DateTime EndTime { get { return this._endTime.GetValueOrDefault(); } set { this._endTime = value; } } // Check to see if EndTime property is set internal bool IsSetEndTime() { return this._endTime.HasValue; } /// /// Gets and sets the property OwnerAccount. /// /// The owner ID of the tested virtual interface. /// /// public string OwnerAccount { get { return this._ownerAccount; } set { this._ownerAccount = value; } } // Check to see if OwnerAccount property is set internal bool IsSetOwnerAccount() { return this._ownerAccount != null; } /// /// Gets and sets the property StartTime. /// /// The time that the virtual interface moves to the DOWN state. /// /// public DateTime StartTime { get { return this._startTime.GetValueOrDefault(); } set { this._startTime = value; } } // Check to see if StartTime property is set internal bool IsSetStartTime() { return this._startTime.HasValue; } /// /// Gets and sets the property Status. /// /// The status of the virtual interface failover test. /// /// public string Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } /// /// Gets and sets the property TestDurationInMinutes. /// /// The time that the virtual interface failover test ran in minutes. /// /// public int TestDurationInMinutes { get { return this._testDurationInMinutes.GetValueOrDefault(); } set { this._testDurationInMinutes = value; } } // Check to see if TestDurationInMinutes property is set internal bool IsSetTestDurationInMinutes() { return this._testDurationInMinutes.HasValue; } /// /// Gets and sets the property TestId. /// /// The ID of the virtual interface failover test. /// /// public string TestId { get { return this._testId; } set { this._testId = value; } } // Check to see if TestId property is set internal bool IsSetTestId() { return this._testId != null; } /// /// Gets and sets the property VirtualInterfaceId. /// /// The ID of the tested virtual interface. /// /// public string VirtualInterfaceId { get { return this._virtualInterfaceId; } set { this._virtualInterfaceId = value; } } // Check to see if VirtualInterfaceId property is set internal bool IsSetVirtualInterfaceId() { return this._virtualInterfaceId != null; } } }