/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace EC2 { namespace Model { /** *

Describes a network interface.

See Also:

AWS * API Reference

*/ class InstanceNetworkInterfaceSpecification { public: AWS_EC2_API InstanceNetworkInterfaceSpecification(); AWS_EC2_API InstanceNetworkInterfaceSpecification(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API InstanceNetworkInterfaceSpecification& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

Indicates whether to assign a public IPv4 address to an instance you launch * in a VPC. The public IP address can only be assigned to a network interface for * eth0, and can only be assigned to a new network interface, not an existing one. * You cannot specify more than one network interface in the request. If launching * into a default subnet, the default value is true.

*/ inline bool GetAssociatePublicIpAddress() const{ return m_associatePublicIpAddress; } /** *

Indicates whether to assign a public IPv4 address to an instance you launch * in a VPC. The public IP address can only be assigned to a network interface for * eth0, and can only be assigned to a new network interface, not an existing one. * You cannot specify more than one network interface in the request. If launching * into a default subnet, the default value is true.

*/ inline bool AssociatePublicIpAddressHasBeenSet() const { return m_associatePublicIpAddressHasBeenSet; } /** *

Indicates whether to assign a public IPv4 address to an instance you launch * in a VPC. The public IP address can only be assigned to a network interface for * eth0, and can only be assigned to a new network interface, not an existing one. * You cannot specify more than one network interface in the request. If launching * into a default subnet, the default value is true.

*/ inline void SetAssociatePublicIpAddress(bool value) { m_associatePublicIpAddressHasBeenSet = true; m_associatePublicIpAddress = value; } /** *

Indicates whether to assign a public IPv4 address to an instance you launch * in a VPC. The public IP address can only be assigned to a network interface for * eth0, and can only be assigned to a new network interface, not an existing one. * You cannot specify more than one network interface in the request. If launching * into a default subnet, the default value is true.

*/ inline InstanceNetworkInterfaceSpecification& WithAssociatePublicIpAddress(bool value) { SetAssociatePublicIpAddress(value); return *this;} /** *

If set to true, the interface is deleted when the instance is * terminated. You can specify true only if creating a new network * interface when launching an instance.

*/ inline bool GetDeleteOnTermination() const{ return m_deleteOnTermination; } /** *

If set to true, the interface is deleted when the instance is * terminated. You can specify true only if creating a new network * interface when launching an instance.

*/ inline bool DeleteOnTerminationHasBeenSet() const { return m_deleteOnTerminationHasBeenSet; } /** *

If set to true, the interface is deleted when the instance is * terminated. You can specify true only if creating a new network * interface when launching an instance.

*/ inline void SetDeleteOnTermination(bool value) { m_deleteOnTerminationHasBeenSet = true; m_deleteOnTermination = value; } /** *

If set to true, the interface is deleted when the instance is * terminated. You can specify true only if creating a new network * interface when launching an instance.

*/ inline InstanceNetworkInterfaceSpecification& WithDeleteOnTermination(bool value) { SetDeleteOnTermination(value); return *this;} /** *

The description of the network interface. Applies only if creating a network * interface when launching an instance.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description of the network interface. Applies only if creating a network * interface when launching an instance.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The description of the network interface. Applies only if creating a network * interface when launching an instance.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The description of the network interface. Applies only if creating a network * interface when launching an instance.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The description of the network interface. Applies only if creating a network * interface when launching an instance.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The description of the network interface. Applies only if creating a network * interface when launching an instance.

*/ inline InstanceNetworkInterfaceSpecification& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description of the network interface. Applies only if creating a network * interface when launching an instance.

*/ inline InstanceNetworkInterfaceSpecification& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description of the network interface. Applies only if creating a network * interface when launching an instance.

*/ inline InstanceNetworkInterfaceSpecification& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The position of the network interface in the attachment order. A primary * network interface has a device index of 0.

If you specify a network * interface when launching an instance, you must specify the device index.

*/ inline int GetDeviceIndex() const{ return m_deviceIndex; } /** *

The position of the network interface in the attachment order. A primary * network interface has a device index of 0.

If you specify a network * interface when launching an instance, you must specify the device index.

*/ inline bool DeviceIndexHasBeenSet() const { return m_deviceIndexHasBeenSet; } /** *

The position of the network interface in the attachment order. A primary * network interface has a device index of 0.

If you specify a network * interface when launching an instance, you must specify the device index.

*/ inline void SetDeviceIndex(int value) { m_deviceIndexHasBeenSet = true; m_deviceIndex = value; } /** *

The position of the network interface in the attachment order. A primary * network interface has a device index of 0.

If you specify a network * interface when launching an instance, you must specify the device index.

*/ inline InstanceNetworkInterfaceSpecification& WithDeviceIndex(int value) { SetDeviceIndex(value); return *this;} /** *

The IDs of the security groups for the network interface. Applies only if * creating a network interface when launching an instance.

*/ inline const Aws::Vector& GetGroups() const{ return m_groups; } /** *

The IDs of the security groups for the network interface. Applies only if * creating a network interface when launching an instance.

*/ inline bool GroupsHasBeenSet() const { return m_groupsHasBeenSet; } /** *

The IDs of the security groups for the network interface. Applies only if * creating a network interface when launching an instance.

*/ inline void SetGroups(const Aws::Vector& value) { m_groupsHasBeenSet = true; m_groups = value; } /** *

The IDs of the security groups for the network interface. Applies only if * creating a network interface when launching an instance.

*/ inline void SetGroups(Aws::Vector&& value) { m_groupsHasBeenSet = true; m_groups = std::move(value); } /** *

The IDs of the security groups for the network interface. Applies only if * creating a network interface when launching an instance.

*/ inline InstanceNetworkInterfaceSpecification& WithGroups(const Aws::Vector& value) { SetGroups(value); return *this;} /** *

The IDs of the security groups for the network interface. Applies only if * creating a network interface when launching an instance.

*/ inline InstanceNetworkInterfaceSpecification& WithGroups(Aws::Vector&& value) { SetGroups(std::move(value)); return *this;} /** *

The IDs of the security groups for the network interface. Applies only if * creating a network interface when launching an instance.

*/ inline InstanceNetworkInterfaceSpecification& AddGroups(const Aws::String& value) { m_groupsHasBeenSet = true; m_groups.push_back(value); return *this; } /** *

The IDs of the security groups for the network interface. Applies only if * creating a network interface when launching an instance.

*/ inline InstanceNetworkInterfaceSpecification& AddGroups(Aws::String&& value) { m_groupsHasBeenSet = true; m_groups.push_back(std::move(value)); return *this; } /** *

The IDs of the security groups for the network interface. Applies only if * creating a network interface when launching an instance.

*/ inline InstanceNetworkInterfaceSpecification& AddGroups(const char* value) { m_groupsHasBeenSet = true; m_groups.push_back(value); return *this; } /** *

A number of IPv6 addresses to assign to the network interface. Amazon EC2 * chooses the IPv6 addresses from the range of the subnet. You cannot specify this * option and the option to assign specific IPv6 addresses in the same request. You * can specify this option if you've specified a minimum number of instances to * launch.

*/ inline int GetIpv6AddressCount() const{ return m_ipv6AddressCount; } /** *

A number of IPv6 addresses to assign to the network interface. Amazon EC2 * chooses the IPv6 addresses from the range of the subnet. You cannot specify this * option and the option to assign specific IPv6 addresses in the same request. You * can specify this option if you've specified a minimum number of instances to * launch.

*/ inline bool Ipv6AddressCountHasBeenSet() const { return m_ipv6AddressCountHasBeenSet; } /** *

A number of IPv6 addresses to assign to the network interface. Amazon EC2 * chooses the IPv6 addresses from the range of the subnet. You cannot specify this * option and the option to assign specific IPv6 addresses in the same request. You * can specify this option if you've specified a minimum number of instances to * launch.

*/ inline void SetIpv6AddressCount(int value) { m_ipv6AddressCountHasBeenSet = true; m_ipv6AddressCount = value; } /** *

A number of IPv6 addresses to assign to the network interface. Amazon EC2 * chooses the IPv6 addresses from the range of the subnet. You cannot specify this * option and the option to assign specific IPv6 addresses in the same request. You * can specify this option if you've specified a minimum number of instances to * launch.

*/ inline InstanceNetworkInterfaceSpecification& WithIpv6AddressCount(int value) { SetIpv6AddressCount(value); return *this;} /** *

The IPv6 addresses to assign to the network interface. You cannot specify * this option and the option to assign a number of IPv6 addresses in the same * request. You cannot specify this option if you've specified a minimum number of * instances to launch.

*/ inline const Aws::Vector& GetIpv6Addresses() const{ return m_ipv6Addresses; } /** *

The IPv6 addresses to assign to the network interface. You cannot specify * this option and the option to assign a number of IPv6 addresses in the same * request. You cannot specify this option if you've specified a minimum number of * instances to launch.

*/ inline bool Ipv6AddressesHasBeenSet() const { return m_ipv6AddressesHasBeenSet; } /** *

The IPv6 addresses to assign to the network interface. You cannot specify * this option and the option to assign a number of IPv6 addresses in the same * request. You cannot specify this option if you've specified a minimum number of * instances to launch.

*/ inline void SetIpv6Addresses(const Aws::Vector& value) { m_ipv6AddressesHasBeenSet = true; m_ipv6Addresses = value; } /** *

The IPv6 addresses to assign to the network interface. You cannot specify * this option and the option to assign a number of IPv6 addresses in the same * request. You cannot specify this option if you've specified a minimum number of * instances to launch.

*/ inline void SetIpv6Addresses(Aws::Vector&& value) { m_ipv6AddressesHasBeenSet = true; m_ipv6Addresses = std::move(value); } /** *

The IPv6 addresses to assign to the network interface. You cannot specify * this option and the option to assign a number of IPv6 addresses in the same * request. You cannot specify this option if you've specified a minimum number of * instances to launch.

*/ inline InstanceNetworkInterfaceSpecification& WithIpv6Addresses(const Aws::Vector& value) { SetIpv6Addresses(value); return *this;} /** *

The IPv6 addresses to assign to the network interface. You cannot specify * this option and the option to assign a number of IPv6 addresses in the same * request. You cannot specify this option if you've specified a minimum number of * instances to launch.

*/ inline InstanceNetworkInterfaceSpecification& WithIpv6Addresses(Aws::Vector&& value) { SetIpv6Addresses(std::move(value)); return *this;} /** *

The IPv6 addresses to assign to the network interface. You cannot specify * this option and the option to assign a number of IPv6 addresses in the same * request. You cannot specify this option if you've specified a minimum number of * instances to launch.

*/ inline InstanceNetworkInterfaceSpecification& AddIpv6Addresses(const InstanceIpv6Address& value) { m_ipv6AddressesHasBeenSet = true; m_ipv6Addresses.push_back(value); return *this; } /** *

The IPv6 addresses to assign to the network interface. You cannot specify * this option and the option to assign a number of IPv6 addresses in the same * request. You cannot specify this option if you've specified a minimum number of * instances to launch.

*/ inline InstanceNetworkInterfaceSpecification& AddIpv6Addresses(InstanceIpv6Address&& value) { m_ipv6AddressesHasBeenSet = true; m_ipv6Addresses.push_back(std::move(value)); return *this; } /** *

The ID of the network interface.

If you are creating a Spot Fleet, * omit this parameter because you can’t specify a network interface ID in a launch * specification.

*/ inline const Aws::String& GetNetworkInterfaceId() const{ return m_networkInterfaceId; } /** *

The ID of the network interface.

If you are creating a Spot Fleet, * omit this parameter because you can’t specify a network interface ID in a launch * specification.

*/ inline bool NetworkInterfaceIdHasBeenSet() const { return m_networkInterfaceIdHasBeenSet; } /** *

The ID of the network interface.

If you are creating a Spot Fleet, * omit this parameter because you can’t specify a network interface ID in a launch * specification.

*/ inline void SetNetworkInterfaceId(const Aws::String& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = value; } /** *

The ID of the network interface.

If you are creating a Spot Fleet, * omit this parameter because you can’t specify a network interface ID in a launch * specification.

*/ inline void SetNetworkInterfaceId(Aws::String&& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = std::move(value); } /** *

The ID of the network interface.

If you are creating a Spot Fleet, * omit this parameter because you can’t specify a network interface ID in a launch * specification.

*/ inline void SetNetworkInterfaceId(const char* value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId.assign(value); } /** *

The ID of the network interface.

If you are creating a Spot Fleet, * omit this parameter because you can’t specify a network interface ID in a launch * specification.

*/ inline InstanceNetworkInterfaceSpecification& WithNetworkInterfaceId(const Aws::String& value) { SetNetworkInterfaceId(value); return *this;} /** *

The ID of the network interface.

If you are creating a Spot Fleet, * omit this parameter because you can’t specify a network interface ID in a launch * specification.

*/ inline InstanceNetworkInterfaceSpecification& WithNetworkInterfaceId(Aws::String&& value) { SetNetworkInterfaceId(std::move(value)); return *this;} /** *

The ID of the network interface.

If you are creating a Spot Fleet, * omit this parameter because you can’t specify a network interface ID in a launch * specification.

*/ inline InstanceNetworkInterfaceSpecification& WithNetworkInterfaceId(const char* value) { SetNetworkInterfaceId(value); return *this;} /** *

The private IPv4 address of the network interface. Applies only if creating a * network interface when launching an instance. You cannot specify this option if * you're launching more than one instance in a RunInstances * request.

*/ inline const Aws::String& GetPrivateIpAddress() const{ return m_privateIpAddress; } /** *

The private IPv4 address of the network interface. Applies only if creating a * network interface when launching an instance. You cannot specify this option if * you're launching more than one instance in a RunInstances * request.

*/ inline bool PrivateIpAddressHasBeenSet() const { return m_privateIpAddressHasBeenSet; } /** *

The private IPv4 address of the network interface. Applies only if creating a * network interface when launching an instance. You cannot specify this option if * you're launching more than one instance in a RunInstances * request.

*/ inline void SetPrivateIpAddress(const Aws::String& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = value; } /** *

The private IPv4 address of the network interface. Applies only if creating a * network interface when launching an instance. You cannot specify this option if * you're launching more than one instance in a RunInstances * request.

*/ inline void SetPrivateIpAddress(Aws::String&& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = std::move(value); } /** *

The private IPv4 address of the network interface. Applies only if creating a * network interface when launching an instance. You cannot specify this option if * you're launching more than one instance in a RunInstances * request.

*/ inline void SetPrivateIpAddress(const char* value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress.assign(value); } /** *

The private IPv4 address of the network interface. Applies only if creating a * network interface when launching an instance. You cannot specify this option if * you're launching more than one instance in a RunInstances * request.

*/ inline InstanceNetworkInterfaceSpecification& WithPrivateIpAddress(const Aws::String& value) { SetPrivateIpAddress(value); return *this;} /** *

The private IPv4 address of the network interface. Applies only if creating a * network interface when launching an instance. You cannot specify this option if * you're launching more than one instance in a RunInstances * request.

*/ inline InstanceNetworkInterfaceSpecification& WithPrivateIpAddress(Aws::String&& value) { SetPrivateIpAddress(std::move(value)); return *this;} /** *

The private IPv4 address of the network interface. Applies only if creating a * network interface when launching an instance. You cannot specify this option if * you're launching more than one instance in a RunInstances * request.

*/ inline InstanceNetworkInterfaceSpecification& WithPrivateIpAddress(const char* value) { SetPrivateIpAddress(value); return *this;} /** *

The private IPv4 addresses to assign to the network interface. Only one * private IPv4 address can be designated as primary. You cannot specify this * option if you're launching more than one instance in a RunInstances * request.

*/ inline const Aws::Vector& GetPrivateIpAddresses() const{ return m_privateIpAddresses; } /** *

The private IPv4 addresses to assign to the network interface. Only one * private IPv4 address can be designated as primary. You cannot specify this * option if you're launching more than one instance in a RunInstances * request.

*/ inline bool PrivateIpAddressesHasBeenSet() const { return m_privateIpAddressesHasBeenSet; } /** *

The private IPv4 addresses to assign to the network interface. Only one * private IPv4 address can be designated as primary. You cannot specify this * option if you're launching more than one instance in a RunInstances * request.

*/ inline void SetPrivateIpAddresses(const Aws::Vector& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses = value; } /** *

The private IPv4 addresses to assign to the network interface. Only one * private IPv4 address can be designated as primary. You cannot specify this * option if you're launching more than one instance in a RunInstances * request.

*/ inline void SetPrivateIpAddresses(Aws::Vector&& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses = std::move(value); } /** *

The private IPv4 addresses to assign to the network interface. Only one * private IPv4 address can be designated as primary. You cannot specify this * option if you're launching more than one instance in a RunInstances * request.

*/ inline InstanceNetworkInterfaceSpecification& WithPrivateIpAddresses(const Aws::Vector& value) { SetPrivateIpAddresses(value); return *this;} /** *

The private IPv4 addresses to assign to the network interface. Only one * private IPv4 address can be designated as primary. You cannot specify this * option if you're launching more than one instance in a RunInstances * request.

*/ inline InstanceNetworkInterfaceSpecification& WithPrivateIpAddresses(Aws::Vector&& value) { SetPrivateIpAddresses(std::move(value)); return *this;} /** *

The private IPv4 addresses to assign to the network interface. Only one * private IPv4 address can be designated as primary. You cannot specify this * option if you're launching more than one instance in a RunInstances * request.

*/ inline InstanceNetworkInterfaceSpecification& AddPrivateIpAddresses(const PrivateIpAddressSpecification& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses.push_back(value); return *this; } /** *

The private IPv4 addresses to assign to the network interface. Only one * private IPv4 address can be designated as primary. You cannot specify this * option if you're launching more than one instance in a RunInstances * request.

*/ inline InstanceNetworkInterfaceSpecification& AddPrivateIpAddresses(PrivateIpAddressSpecification&& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses.push_back(std::move(value)); return *this; } /** *

The number of secondary private IPv4 addresses. You can't specify this option * and specify more than one private IP address using the private IP addresses * option. You cannot specify this option if you're launching more than one * instance in a RunInstances * request.

*/ inline int GetSecondaryPrivateIpAddressCount() const{ return m_secondaryPrivateIpAddressCount; } /** *

The number of secondary private IPv4 addresses. You can't specify this option * and specify more than one private IP address using the private IP addresses * option. You cannot specify this option if you're launching more than one * instance in a RunInstances * request.

*/ inline bool SecondaryPrivateIpAddressCountHasBeenSet() const { return m_secondaryPrivateIpAddressCountHasBeenSet; } /** *

The number of secondary private IPv4 addresses. You can't specify this option * and specify more than one private IP address using the private IP addresses * option. You cannot specify this option if you're launching more than one * instance in a RunInstances * request.

*/ inline void SetSecondaryPrivateIpAddressCount(int value) { m_secondaryPrivateIpAddressCountHasBeenSet = true; m_secondaryPrivateIpAddressCount = value; } /** *

The number of secondary private IPv4 addresses. You can't specify this option * and specify more than one private IP address using the private IP addresses * option. You cannot specify this option if you're launching more than one * instance in a RunInstances * request.

*/ inline InstanceNetworkInterfaceSpecification& WithSecondaryPrivateIpAddressCount(int value) { SetSecondaryPrivateIpAddressCount(value); return *this;} /** *

The ID of the subnet associated with the network interface. Applies only if * creating a network interface when launching an instance.

*/ inline const Aws::String& GetSubnetId() const{ return m_subnetId; } /** *

The ID of the subnet associated with the network interface. Applies only if * creating a network interface when launching an instance.

*/ inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; } /** *

The ID of the subnet associated with the network interface. Applies only if * creating a network interface when launching an instance.

*/ inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; } /** *

The ID of the subnet associated with the network interface. Applies only if * creating a network interface when launching an instance.

*/ inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); } /** *

The ID of the subnet associated with the network interface. Applies only if * creating a network interface when launching an instance.

*/ inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); } /** *

The ID of the subnet associated with the network interface. Applies only if * creating a network interface when launching an instance.

*/ inline InstanceNetworkInterfaceSpecification& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;} /** *

The ID of the subnet associated with the network interface. Applies only if * creating a network interface when launching an instance.

*/ inline InstanceNetworkInterfaceSpecification& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;} /** *

The ID of the subnet associated with the network interface. Applies only if * creating a network interface when launching an instance.

*/ inline InstanceNetworkInterfaceSpecification& WithSubnetId(const char* value) { SetSubnetId(value); return *this;} /** *

Indicates whether to assign a carrier IP address to the network * interface.

You can only assign a carrier IP address to a network * interface that is in a subnet in a Wavelength Zone. For more information about * carrier IP addresses, see Carrier * IP address in the Amazon Web Services Wavelength Developer Guide.

*/ inline bool GetAssociateCarrierIpAddress() const{ return m_associateCarrierIpAddress; } /** *

Indicates whether to assign a carrier IP address to the network * interface.

You can only assign a carrier IP address to a network * interface that is in a subnet in a Wavelength Zone. For more information about * carrier IP addresses, see Carrier * IP address in the Amazon Web Services Wavelength Developer Guide.

*/ inline bool AssociateCarrierIpAddressHasBeenSet() const { return m_associateCarrierIpAddressHasBeenSet; } /** *

Indicates whether to assign a carrier IP address to the network * interface.

You can only assign a carrier IP address to a network * interface that is in a subnet in a Wavelength Zone. For more information about * carrier IP addresses, see Carrier * IP address in the Amazon Web Services Wavelength Developer Guide.

*/ inline void SetAssociateCarrierIpAddress(bool value) { m_associateCarrierIpAddressHasBeenSet = true; m_associateCarrierIpAddress = value; } /** *

Indicates whether to assign a carrier IP address to the network * interface.

You can only assign a carrier IP address to a network * interface that is in a subnet in a Wavelength Zone. For more information about * carrier IP addresses, see Carrier * IP address in the Amazon Web Services Wavelength Developer Guide.

*/ inline InstanceNetworkInterfaceSpecification& WithAssociateCarrierIpAddress(bool value) { SetAssociateCarrierIpAddress(value); return *this;} /** *

The type of network interface.

Valid values: interface | * efa

*/ inline const Aws::String& GetInterfaceType() const{ return m_interfaceType; } /** *

The type of network interface.

Valid values: interface | * efa

*/ inline bool InterfaceTypeHasBeenSet() const { return m_interfaceTypeHasBeenSet; } /** *

The type of network interface.

Valid values: interface | * efa

*/ inline void SetInterfaceType(const Aws::String& value) { m_interfaceTypeHasBeenSet = true; m_interfaceType = value; } /** *

The type of network interface.

Valid values: interface | * efa

*/ inline void SetInterfaceType(Aws::String&& value) { m_interfaceTypeHasBeenSet = true; m_interfaceType = std::move(value); } /** *

The type of network interface.

Valid values: interface | * efa

*/ inline void SetInterfaceType(const char* value) { m_interfaceTypeHasBeenSet = true; m_interfaceType.assign(value); } /** *

The type of network interface.

Valid values: interface | * efa

*/ inline InstanceNetworkInterfaceSpecification& WithInterfaceType(const Aws::String& value) { SetInterfaceType(value); return *this;} /** *

The type of network interface.

Valid values: interface | * efa

*/ inline InstanceNetworkInterfaceSpecification& WithInterfaceType(Aws::String&& value) { SetInterfaceType(std::move(value)); return *this;} /** *

The type of network interface.

Valid values: interface | * efa

*/ inline InstanceNetworkInterfaceSpecification& WithInterfaceType(const char* value) { SetInterfaceType(value); return *this;} /** *

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.

If you are using RequestSpotInstances * to create Spot Instances, omit this parameter because you can’t specify the * network card index when using this API. To specify the network card index, use * RunInstances.

*/ inline int GetNetworkCardIndex() const{ return m_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.

If you are using RequestSpotInstances * to create Spot Instances, omit this parameter because you can’t specify the * network card index when using this API. To specify the network card index, use * RunInstances.

*/ inline bool NetworkCardIndexHasBeenSet() const { return m_networkCardIndexHasBeenSet; } /** *

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.

If you are using RequestSpotInstances * to create Spot Instances, omit this parameter because you can’t specify the * network card index when using this API. To specify the network card index, use * RunInstances.

*/ inline void SetNetworkCardIndex(int value) { m_networkCardIndexHasBeenSet = true; m_networkCardIndex = value; } /** *

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.

If you are using RequestSpotInstances * to create Spot Instances, omit this parameter because you can’t specify the * network card index when using this API. To specify the network card index, use * RunInstances.

*/ inline InstanceNetworkInterfaceSpecification& WithNetworkCardIndex(int value) { SetNetworkCardIndex(value); return *this;} /** *

The IPv4 delegated prefixes to be assigned to the network interface. You * cannot use this option if you use the Ipv4PrefixCount option.

*/ inline const Aws::Vector& GetIpv4Prefixes() const{ return m_ipv4Prefixes; } /** *

The IPv4 delegated prefixes to be assigned to the network interface. You * cannot use this option if you use the Ipv4PrefixCount option.

*/ inline bool Ipv4PrefixesHasBeenSet() const { return m_ipv4PrefixesHasBeenSet; } /** *

The IPv4 delegated prefixes to be assigned to the network interface. You * cannot use this option if you use the Ipv4PrefixCount option.

*/ inline void SetIpv4Prefixes(const Aws::Vector& value) { m_ipv4PrefixesHasBeenSet = true; m_ipv4Prefixes = value; } /** *

The IPv4 delegated prefixes to be assigned to the network interface. You * cannot use this option if you use the Ipv4PrefixCount option.

*/ inline void SetIpv4Prefixes(Aws::Vector&& value) { m_ipv4PrefixesHasBeenSet = true; m_ipv4Prefixes = std::move(value); } /** *

The IPv4 delegated prefixes to be assigned to the network interface. You * cannot use this option if you use the Ipv4PrefixCount option.

*/ inline InstanceNetworkInterfaceSpecification& WithIpv4Prefixes(const Aws::Vector& value) { SetIpv4Prefixes(value); return *this;} /** *

The IPv4 delegated prefixes to be assigned to the network interface. You * cannot use this option if you use the Ipv4PrefixCount option.

*/ inline InstanceNetworkInterfaceSpecification& WithIpv4Prefixes(Aws::Vector&& value) { SetIpv4Prefixes(std::move(value)); return *this;} /** *

The IPv4 delegated prefixes to be assigned to the network interface. You * cannot use this option if you use the Ipv4PrefixCount option.

*/ inline InstanceNetworkInterfaceSpecification& AddIpv4Prefixes(const Ipv4PrefixSpecificationRequest& value) { m_ipv4PrefixesHasBeenSet = true; m_ipv4Prefixes.push_back(value); return *this; } /** *

The IPv4 delegated prefixes to be assigned to the network interface. You * cannot use this option if you use the Ipv4PrefixCount option.

*/ inline InstanceNetworkInterfaceSpecification& AddIpv4Prefixes(Ipv4PrefixSpecificationRequest&& value) { m_ipv4PrefixesHasBeenSet = true; m_ipv4Prefixes.push_back(std::move(value)); return *this; } /** *

The number of IPv4 delegated prefixes to be automatically assigned to the * network interface. You cannot use this option if you use the * Ipv4Prefix option.

*/ inline int GetIpv4PrefixCount() const{ return m_ipv4PrefixCount; } /** *

The number of IPv4 delegated prefixes to be automatically assigned to the * network interface. You cannot use this option if you use the * Ipv4Prefix option.

*/ inline bool Ipv4PrefixCountHasBeenSet() const { return m_ipv4PrefixCountHasBeenSet; } /** *

The number of IPv4 delegated prefixes to be automatically assigned to the * network interface. You cannot use this option if you use the * Ipv4Prefix option.

*/ inline void SetIpv4PrefixCount(int value) { m_ipv4PrefixCountHasBeenSet = true; m_ipv4PrefixCount = value; } /** *

The number of IPv4 delegated prefixes to be automatically assigned to the * network interface. You cannot use this option if you use the * Ipv4Prefix option.

*/ inline InstanceNetworkInterfaceSpecification& WithIpv4PrefixCount(int value) { SetIpv4PrefixCount(value); return *this;} /** *

The IPv6 delegated prefixes to be assigned to the network interface. You * cannot use this option if you use the Ipv6PrefixCount option.

*/ inline const Aws::Vector& GetIpv6Prefixes() const{ return m_ipv6Prefixes; } /** *

The IPv6 delegated prefixes to be assigned to the network interface. You * cannot use this option if you use the Ipv6PrefixCount option.

*/ inline bool Ipv6PrefixesHasBeenSet() const { return m_ipv6PrefixesHasBeenSet; } /** *

The IPv6 delegated prefixes to be assigned to the network interface. You * cannot use this option if you use the Ipv6PrefixCount option.

*/ inline void SetIpv6Prefixes(const Aws::Vector& value) { m_ipv6PrefixesHasBeenSet = true; m_ipv6Prefixes = value; } /** *

The IPv6 delegated prefixes to be assigned to the network interface. You * cannot use this option if you use the Ipv6PrefixCount option.

*/ inline void SetIpv6Prefixes(Aws::Vector&& value) { m_ipv6PrefixesHasBeenSet = true; m_ipv6Prefixes = std::move(value); } /** *

The IPv6 delegated prefixes to be assigned to the network interface. You * cannot use this option if you use the Ipv6PrefixCount option.

*/ inline InstanceNetworkInterfaceSpecification& WithIpv6Prefixes(const Aws::Vector& value) { SetIpv6Prefixes(value); return *this;} /** *

The IPv6 delegated prefixes to be assigned to the network interface. You * cannot use this option if you use the Ipv6PrefixCount option.

*/ inline InstanceNetworkInterfaceSpecification& WithIpv6Prefixes(Aws::Vector&& value) { SetIpv6Prefixes(std::move(value)); return *this;} /** *

The IPv6 delegated prefixes to be assigned to the network interface. You * cannot use this option if you use the Ipv6PrefixCount option.

*/ inline InstanceNetworkInterfaceSpecification& AddIpv6Prefixes(const Ipv6PrefixSpecificationRequest& value) { m_ipv6PrefixesHasBeenSet = true; m_ipv6Prefixes.push_back(value); return *this; } /** *

The IPv6 delegated prefixes to be assigned to the network interface. You * cannot use this option if you use the Ipv6PrefixCount option.

*/ inline InstanceNetworkInterfaceSpecification& AddIpv6Prefixes(Ipv6PrefixSpecificationRequest&& value) { m_ipv6PrefixesHasBeenSet = true; m_ipv6Prefixes.push_back(std::move(value)); return *this; } /** *

The number of IPv6 delegated prefixes to be automatically assigned to the * network interface. You cannot use this option if you use the * Ipv6Prefix option.

*/ inline int GetIpv6PrefixCount() const{ return m_ipv6PrefixCount; } /** *

The number of IPv6 delegated prefixes to be automatically assigned to the * network interface. You cannot use this option if you use the * Ipv6Prefix option.

*/ inline bool Ipv6PrefixCountHasBeenSet() const { return m_ipv6PrefixCountHasBeenSet; } /** *

The number of IPv6 delegated prefixes to be automatically assigned to the * network interface. You cannot use this option if you use the * Ipv6Prefix option.

*/ inline void SetIpv6PrefixCount(int value) { m_ipv6PrefixCountHasBeenSet = true; m_ipv6PrefixCount = value; } /** *

The number of IPv6 delegated prefixes to be automatically assigned to the * network interface. You cannot use this option if you use the * Ipv6Prefix option.

*/ inline InstanceNetworkInterfaceSpecification& WithIpv6PrefixCount(int value) { SetIpv6PrefixCount(value); return *this;} private: bool m_associatePublicIpAddress; bool m_associatePublicIpAddressHasBeenSet = false; bool m_deleteOnTermination; bool m_deleteOnTerminationHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; int m_deviceIndex; bool m_deviceIndexHasBeenSet = false; Aws::Vector m_groups; bool m_groupsHasBeenSet = false; int m_ipv6AddressCount; bool m_ipv6AddressCountHasBeenSet = false; Aws::Vector m_ipv6Addresses; bool m_ipv6AddressesHasBeenSet = false; Aws::String m_networkInterfaceId; bool m_networkInterfaceIdHasBeenSet = false; Aws::String m_privateIpAddress; bool m_privateIpAddressHasBeenSet = false; Aws::Vector m_privateIpAddresses; bool m_privateIpAddressesHasBeenSet = false; int m_secondaryPrivateIpAddressCount; bool m_secondaryPrivateIpAddressCountHasBeenSet = false; Aws::String m_subnetId; bool m_subnetIdHasBeenSet = false; bool m_associateCarrierIpAddress; bool m_associateCarrierIpAddressHasBeenSet = false; Aws::String m_interfaceType; bool m_interfaceTypeHasBeenSet = false; int m_networkCardIndex; bool m_networkCardIndexHasBeenSet = false; Aws::Vector m_ipv4Prefixes; bool m_ipv4PrefixesHasBeenSet = false; int m_ipv4PrefixCount; bool m_ipv4PrefixCountHasBeenSet = false; Aws::Vector m_ipv6Prefixes; bool m_ipv6PrefixesHasBeenSet = false; int m_ipv6PrefixCount; bool m_ipv6PrefixCountHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws