/* * 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 a BGP peer. /// public partial class BGPPeer { private AddressFamily _addressFamily; private string _amazonAddress; private int? _asn; private string _authKey; private string _awsDeviceV2; private string _awsLogicalDeviceId; private string _bgpPeerId; private BGPPeerState _bgpPeerState; private BGPStatus _bgpStatus; private string _customerAddress; /// /// Gets and sets the property AddressFamily. /// /// The address family for the BGP peer. /// /// public AddressFamily AddressFamily { get { return this._addressFamily; } set { this._addressFamily = value; } } // Check to see if AddressFamily property is set internal bool IsSetAddressFamily() { return this._addressFamily != null; } /// /// Gets and sets the property AmazonAddress. /// /// The IP address assigned to the Amazon interface. /// /// public string AmazonAddress { get { return this._amazonAddress; } set { this._amazonAddress = value; } } // Check to see if AmazonAddress property is set internal bool IsSetAmazonAddress() { return this._amazonAddress != null; } /// /// Gets and sets the property Asn. /// /// The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration. /// /// public int Asn { get { return this._asn.GetValueOrDefault(); } set { this._asn = value; } } // Check to see if Asn property is set internal bool IsSetAsn() { return this._asn.HasValue; } /// /// Gets and sets the property AuthKey. /// /// The authentication key for BGP configuration. This string has a minimum length of /// 6 characters and and a maximun lenth of 80 characters. /// /// public string AuthKey { get { return this._authKey; } set { this._authKey = value; } } // Check to see if AuthKey property is set internal bool IsSetAuthKey() { return this._authKey != null; } /// /// Gets and sets the property AwsDeviceV2. /// /// The Direct Connect endpoint that terminates the BGP peer. /// /// public string AwsDeviceV2 { get { return this._awsDeviceV2; } set { this._awsDeviceV2 = value; } } // Check to see if AwsDeviceV2 property is set internal bool IsSetAwsDeviceV2() { return this._awsDeviceV2 != null; } /// /// Gets and sets the property AwsLogicalDeviceId. /// /// The Direct Connect endpoint that terminates the logical connection. This device might /// be different than the device that terminates the physical connection. /// /// public string AwsLogicalDeviceId { get { return this._awsLogicalDeviceId; } set { this._awsLogicalDeviceId = value; } } // Check to see if AwsLogicalDeviceId property is set internal bool IsSetAwsLogicalDeviceId() { return this._awsLogicalDeviceId != null; } /// /// Gets and sets the property BgpPeerId. /// /// The ID of the BGP peer. /// /// public string BgpPeerId { get { return this._bgpPeerId; } set { this._bgpPeerId = value; } } // Check to see if BgpPeerId property is set internal bool IsSetBgpPeerId() { return this._bgpPeerId != null; } /// /// Gets and sets the property BgpPeerState. /// /// The state of the BGP peer. The following are the possible values: /// /// /// public BGPPeerState BgpPeerState { get { return this._bgpPeerState; } set { this._bgpPeerState = value; } } // Check to see if BgpPeerState property is set internal bool IsSetBgpPeerState() { return this._bgpPeerState != null; } /// /// Gets and sets the property BgpStatus. /// /// The status of the BGP peer. The following are the possible values: /// /// /// public BGPStatus BgpStatus { get { return this._bgpStatus; } set { this._bgpStatus = value; } } // Check to see if BgpStatus property is set internal bool IsSetBgpStatus() { return this._bgpStatus != null; } /// /// Gets and sets the property CustomerAddress. /// /// The IP address assigned to the customer interface. /// /// public string CustomerAddress { get { return this._customerAddress; } set { this._customerAddress = value; } } // Check to see if CustomerAddress property is set internal bool IsSetCustomerAddress() { return this._customerAddress != null; } } }