/* * 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 transit virtual interface to be provisioned on a connection. /// public partial class NewTransitVirtualInterfaceAllocation { private AddressFamily _addressFamily; private string _amazonAddress; private int? _asn; private string _authKey; private string _customerAddress; private int? _mtu; private List _tags = new List(); private string _virtualInterfaceName; private int? _vlan; /// /// 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. /// /// /// /// The valid values are 1-2147483647. /// /// 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 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; } /// /// Gets and sets the property Mtu. /// /// The maximum transmission unit (MTU), in bytes. The supported values are 1500 and 8500. /// The default value is 1500 /// /// public int Mtu { get { return this._mtu.GetValueOrDefault(); } set { this._mtu = value; } } // Check to see if Mtu property is set internal bool IsSetMtu() { return this._mtu.HasValue; } /// /// Gets and sets the property Tags. /// /// The tags associated with the transitive virtual interface. /// /// [AWSProperty(Min=1)] public List Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } /// /// Gets and sets the property VirtualInterfaceName. /// /// The name of the virtual interface assigned by the customer network. The name has a /// maximum of 100 characters. The following are valid characters: a-z, 0-9 and a hyphen /// (-). /// /// public string VirtualInterfaceName { get { return this._virtualInterfaceName; } set { this._virtualInterfaceName = value; } } // Check to see if VirtualInterfaceName property is set internal bool IsSetVirtualInterfaceName() { return this._virtualInterfaceName != null; } /// /// Gets and sets the property Vlan. /// /// The ID of the VLAN. /// /// public int Vlan { get { return this._vlan.GetValueOrDefault(); } set { this._vlan = value; } } // Check to see if Vlan property is set internal bool IsSetVlan() { return this._vlan.HasValue; } } }