/* * 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 ec2-2016-11-15.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.EC2.Model { /// /// /// /// Currently available in limited preview only. If you are interested in using /// this feature, contact your account manager. /// /// /// /// Information about an association between a branch network interface with a trunk network /// interface. /// /// public partial class TrunkInterfaceAssociation { private string _associationId; private string _branchInterfaceId; private int? _greKey; private InterfaceProtocolType _interfaceProtocol; private List _tags = new List(); private string _trunkInterfaceId; private int? _vlanId; /// /// Gets and sets the property AssociationId. /// /// The ID of the association. /// /// public string AssociationId { get { return this._associationId; } set { this._associationId = value; } } // Check to see if AssociationId property is set internal bool IsSetAssociationId() { return this._associationId != null; } /// /// Gets and sets the property BranchInterfaceId. /// /// The ID of the branch network interface. /// /// public string BranchInterfaceId { get { return this._branchInterfaceId; } set { this._branchInterfaceId = value; } } // Check to see if BranchInterfaceId property is set internal bool IsSetBranchInterfaceId() { return this._branchInterfaceId != null; } /// /// Gets and sets the property GreKey. /// /// The application key when you use the GRE protocol. /// /// public int GreKey { get { return this._greKey.GetValueOrDefault(); } set { this._greKey = value; } } // Check to see if GreKey property is set internal bool IsSetGreKey() { return this._greKey.HasValue; } /// /// Gets and sets the property InterfaceProtocol. /// /// The interface protocol. Valid values are VLAN and GRE. /// /// public InterfaceProtocolType InterfaceProtocol { get { return this._interfaceProtocol; } set { this._interfaceProtocol = value; } } // Check to see if InterfaceProtocol property is set internal bool IsSetInterfaceProtocol() { return this._interfaceProtocol != null; } /// /// Gets and sets the property Tags. /// /// The tags for the trunk interface association. /// /// 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 TrunkInterfaceId. /// /// The ID of the trunk network interface. /// /// public string TrunkInterfaceId { get { return this._trunkInterfaceId; } set { this._trunkInterfaceId = value; } } // Check to see if TrunkInterfaceId property is set internal bool IsSetTrunkInterfaceId() { return this._trunkInterfaceId != null; } /// /// Gets and sets the property VlanId. /// /// The ID of the VLAN when you use the VLAN protocol. /// /// public int VlanId { get { return this._vlanId.GetValueOrDefault(); } set { this._vlanId = value; } } // Check to see if VlanId property is set internal bool IsSetVlanId() { return this._vlanId.HasValue; } } }