/* * 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 { /// /// Container for the parameters to the AssociateTrunkInterface operation. /// /// /// This API action is currently in limited preview only. If you are interested /// in using this feature, contact your account manager. /// /// /// /// Associates a branch network interface with a trunk network interface. /// /// /// /// Before you create the association, run the create-network-interface /// command and set --interface-type to trunk. You must also /// create a network interface for each branch network interface that you want to associate /// with the trunk network interface. /// /// public partial class AssociateTrunkInterfaceRequest : AmazonEC2Request { private string _branchInterfaceId; private string _clientToken; private int? _greKey; private string _trunkInterfaceId; private int? _vlanId; /// /// Gets and sets the property BranchInterfaceId. /// /// The ID of the branch network interface. /// /// [AWSProperty(Required=true)] 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 ClientToken. /// /// Unique, case-sensitive identifier that you provide to ensure the idempotency of the /// request. For more information, see How /// to Ensure Idempotency. /// /// public string ClientToken { get { return this._clientToken; } set { this._clientToken = value; } } // Check to see if ClientToken property is set internal bool IsSetClientToken() { return this._clientToken != null; } /// /// Gets and sets the property GreKey. /// /// The application key. This applies to 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 TrunkInterfaceId. /// /// The ID of the trunk network interface. /// /// [AWSProperty(Required=true)] 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. This applies to 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; } } }