/* * 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 AttachNetworkInterface operation. /// Attaches a network interface to an instance. /// public partial class AttachNetworkInterfaceRequest : AmazonEC2Request { private int? _deviceIndex; private EnaSrdSpecification _enaSrdSpecification; private string _instanceId; private int? _networkCardIndex; private string _networkInterfaceId; /// /// Gets and sets the property DeviceIndex. /// /// The index of the device for the network interface attachment. /// /// [AWSProperty(Required=true)] public int DeviceIndex { get { return this._deviceIndex.GetValueOrDefault(); } set { this._deviceIndex = value; } } // Check to see if DeviceIndex property is set internal bool IsSetDeviceIndex() { return this._deviceIndex.HasValue; } /// /// Gets and sets the property EnaSrdSpecification. /// /// Configures ENA Express for the network interface that this action attaches to the /// instance. /// /// public EnaSrdSpecification EnaSrdSpecification { get { return this._enaSrdSpecification; } set { this._enaSrdSpecification = value; } } // Check to see if EnaSrdSpecification property is set internal bool IsSetEnaSrdSpecification() { return this._enaSrdSpecification != null; } /// /// Gets and sets the property InstanceId. /// /// The ID of the instance. /// /// [AWSProperty(Required=true)] public string InstanceId { get { return this._instanceId; } set { this._instanceId = value; } } // Check to see if InstanceId property is set internal bool IsSetInstanceId() { return this._instanceId != null; } /// /// Gets and sets the property NetworkCardIndex. /// /// The index of the network card. Some instance types support multiple network cards. /// The primary network interface must be assigned to network card index 0. The default /// is network card index 0. /// /// public int NetworkCardIndex { get { return this._networkCardIndex.GetValueOrDefault(); } set { this._networkCardIndex = value; } } // Check to see if NetworkCardIndex property is set internal bool IsSetNetworkCardIndex() { return this._networkCardIndex.HasValue; } /// /// Gets and sets the property NetworkInterfaceId. /// /// The ID of the network interface. /// /// [AWSProperty(Required=true)] public string NetworkInterfaceId { get { return this._networkInterfaceId; } set { this._networkInterfaceId = value; } } // Check to see if NetworkInterfaceId property is set internal bool IsSetNetworkInterfaceId() { return this._networkInterfaceId != null; } } }