/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The parameters for a network interface.See Also:
AWS
* API Reference
Associates a Carrier IP address with eth0 for a new network interface.
*Use this option when you launch an instance in a Wavelength Zone and want to * associate a Carrier IP address with the network interface. For more information * about Carrier IP addresses, see Carrier * IP addresses in the Wavelength Developer Guide.
*/ inline bool GetAssociateCarrierIpAddress() const{ return m_associateCarrierIpAddress; } /** *Associates a Carrier IP address with eth0 for a new network interface.
*Use this option when you launch an instance in a Wavelength Zone and want to * associate a Carrier IP address with the network interface. For more information * about Carrier IP addresses, see Carrier * IP addresses in the Wavelength Developer Guide.
*/ inline bool AssociateCarrierIpAddressHasBeenSet() const { return m_associateCarrierIpAddressHasBeenSet; } /** *Associates a Carrier IP address with eth0 for a new network interface.
*Use this option when you launch an instance in a Wavelength Zone and want to * associate a Carrier IP address with the network interface. For more information * about Carrier IP addresses, see Carrier * IP addresses in the Wavelength Developer Guide.
*/ inline void SetAssociateCarrierIpAddress(bool value) { m_associateCarrierIpAddressHasBeenSet = true; m_associateCarrierIpAddress = value; } /** *Associates a Carrier IP address with eth0 for a new network interface.
*Use this option when you launch an instance in a Wavelength Zone and want to * associate a Carrier IP address with the network interface. For more information * about Carrier IP addresses, see Carrier * IP addresses in the Wavelength Developer Guide.
*/ inline LaunchTemplateInstanceNetworkInterfaceSpecificationRequest& WithAssociateCarrierIpAddress(bool value) { SetAssociateCarrierIpAddress(value); return *this;} /** *Associates a public IPv4 address with eth0 for a new network interface.
*/ inline bool GetAssociatePublicIpAddress() const{ return m_associatePublicIpAddress; } /** *Associates a public IPv4 address with eth0 for a new network interface.
*/ inline bool AssociatePublicIpAddressHasBeenSet() const { return m_associatePublicIpAddressHasBeenSet; } /** *Associates a public IPv4 address with eth0 for a new network interface.
*/ inline void SetAssociatePublicIpAddress(bool value) { m_associatePublicIpAddressHasBeenSet = true; m_associatePublicIpAddress = value; } /** *Associates a public IPv4 address with eth0 for a new network interface.
*/ inline LaunchTemplateInstanceNetworkInterfaceSpecificationRequest& WithAssociatePublicIpAddress(bool value) { SetAssociatePublicIpAddress(value); return *this;} /** *Indicates whether the network interface is deleted when the instance is * terminated.
*/ inline bool GetDeleteOnTermination() const{ return m_deleteOnTermination; } /** *Indicates whether the network interface is deleted when the instance is * terminated.
*/ inline bool DeleteOnTerminationHasBeenSet() const { return m_deleteOnTerminationHasBeenSet; } /** *Indicates whether the network interface is deleted when the instance is * terminated.
*/ inline void SetDeleteOnTermination(bool value) { m_deleteOnTerminationHasBeenSet = true; m_deleteOnTermination = value; } /** *Indicates whether the network interface is deleted when the instance is * terminated.
*/ inline LaunchTemplateInstanceNetworkInterfaceSpecificationRequest& WithDeleteOnTermination(bool value) { SetDeleteOnTermination(value); return *this;} /** *A description for the network interface.
*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *A description for the network interface.
*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *A description for the network interface.
*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *A description for the network interface.
*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *A description for the network interface.
*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *A description for the network interface.
*/ inline LaunchTemplateInstanceNetworkInterfaceSpecificationRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *A description for the network interface.
*/ inline LaunchTemplateInstanceNetworkInterfaceSpecificationRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *A description for the network interface.
*/ inline LaunchTemplateInstanceNetworkInterfaceSpecificationRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *The device index for the network interface attachment.
*/ inline int GetDeviceIndex() const{ return m_deviceIndex; } /** *The device index for the network interface attachment.
*/ inline bool DeviceIndexHasBeenSet() const { return m_deviceIndexHasBeenSet; } /** *The device index for the network interface attachment.
*/ inline void SetDeviceIndex(int value) { m_deviceIndexHasBeenSet = true; m_deviceIndex = value; } /** *The device index for the network interface attachment.
*/ inline LaunchTemplateInstanceNetworkInterfaceSpecificationRequest& WithDeviceIndex(int value) { SetDeviceIndex(value); return *this;} /** *The IDs of one or more security groups.
*/ inline const Aws::VectorThe IDs of one or more security groups.
*/ inline bool GroupsHasBeenSet() const { return m_groupsHasBeenSet; } /** *The IDs of one or more security groups.
*/ inline void SetGroups(const Aws::VectorThe IDs of one or more security groups.
*/ inline void SetGroups(Aws::VectorThe IDs of one or more security groups.
*/ inline LaunchTemplateInstanceNetworkInterfaceSpecificationRequest& WithGroups(const Aws::VectorThe IDs of one or more security groups.
*/ inline LaunchTemplateInstanceNetworkInterfaceSpecificationRequest& WithGroups(Aws::VectorThe IDs of one or more security groups.
*/ inline LaunchTemplateInstanceNetworkInterfaceSpecificationRequest& AddGroups(const Aws::String& value) { m_groupsHasBeenSet = true; m_groups.push_back(value); return *this; } /** *The IDs of one or more security groups.
*/ inline LaunchTemplateInstanceNetworkInterfaceSpecificationRequest& AddGroups(Aws::String&& value) { m_groupsHasBeenSet = true; m_groups.push_back(std::move(value)); return *this; } /** *The IDs of one or more security groups.
*/ inline LaunchTemplateInstanceNetworkInterfaceSpecificationRequest& AddGroups(const char* value) { m_groupsHasBeenSet = true; m_groups.push_back(value); return *this; } /** *The type of network interface. To create an Elastic Fabric Adapter (EFA),
* specify efa
. For more information, see Elastic
* Fabric Adapter in the Amazon Elastic Compute Cloud User Guide.
If you are not creating an EFA, specify interface
or omit this
* parameter.
Valid values: interface
| efa
The type of network interface. To create an Elastic Fabric Adapter (EFA),
* specify efa
. For more information, see Elastic
* Fabric Adapter in the Amazon Elastic Compute Cloud User Guide.
If you are not creating an EFA, specify interface
or omit this
* parameter.
Valid values: interface
| efa
The type of network interface. To create an Elastic Fabric Adapter (EFA),
* specify efa
. For more information, see Elastic
* Fabric Adapter in the Amazon Elastic Compute Cloud User Guide.
If you are not creating an EFA, specify interface
or omit this
* parameter.
Valid values: interface
| efa
The type of network interface. To create an Elastic Fabric Adapter (EFA),
* specify efa
. For more information, see Elastic
* Fabric Adapter in the Amazon Elastic Compute Cloud User Guide.
If you are not creating an EFA, specify interface
or omit this
* parameter.
Valid values: interface
| efa
The type of network interface. To create an Elastic Fabric Adapter (EFA),
* specify efa
. For more information, see Elastic
* Fabric Adapter in the Amazon Elastic Compute Cloud User Guide.
If you are not creating an EFA, specify interface
or omit this
* parameter.
Valid values: interface
| efa
The type of network interface. To create an Elastic Fabric Adapter (EFA),
* specify efa
. For more information, see Elastic
* Fabric Adapter in the Amazon Elastic Compute Cloud User Guide.
If you are not creating an EFA, specify interface
or omit this
* parameter.
Valid values: interface
| efa
The type of network interface. To create an Elastic Fabric Adapter (EFA),
* specify efa
. For more information, see Elastic
* Fabric Adapter in the Amazon Elastic Compute Cloud User Guide.
If you are not creating an EFA, specify interface
or omit this
* parameter.
Valid values: interface
| efa
The type of network interface. To create an Elastic Fabric Adapter (EFA),
* specify efa
. For more information, see Elastic
* Fabric Adapter in the Amazon Elastic Compute Cloud User Guide.
If you are not creating an EFA, specify interface
or omit this
* parameter.
Valid values: interface
| efa
The number of IPv6 addresses to assign to a network interface. Amazon EC2 * automatically selects the IPv6 addresses from the subnet range. You can't use * this option if specifying specific IPv6 addresses.
*/ inline int GetIpv6AddressCount() const{ return m_ipv6AddressCount; } /** *The number of IPv6 addresses to assign to a network interface. Amazon EC2 * automatically selects the IPv6 addresses from the subnet range. You can't use * this option if specifying specific IPv6 addresses.
*/ inline bool Ipv6AddressCountHasBeenSet() const { return m_ipv6AddressCountHasBeenSet; } /** *The number of IPv6 addresses to assign to a network interface. Amazon EC2 * automatically selects the IPv6 addresses from the subnet range. You can't use * this option if specifying specific IPv6 addresses.
*/ inline void SetIpv6AddressCount(int value) { m_ipv6AddressCountHasBeenSet = true; m_ipv6AddressCount = value; } /** *The number of IPv6 addresses to assign to a network interface. Amazon EC2 * automatically selects the IPv6 addresses from the subnet range. You can't use * this option if specifying specific IPv6 addresses.
*/ inline LaunchTemplateInstanceNetworkInterfaceSpecificationRequest& WithIpv6AddressCount(int value) { SetIpv6AddressCount(value); return *this;} /** *One or more specific IPv6 addresses from the IPv6 CIDR block range of your * subnet. You can't use this option if you're specifying a number of IPv6 * addresses.
*/ inline const Aws::VectorOne or more specific IPv6 addresses from the IPv6 CIDR block range of your * subnet. You can't use this option if you're specifying a number of IPv6 * addresses.
*/ inline bool Ipv6AddressesHasBeenSet() const { return m_ipv6AddressesHasBeenSet; } /** *One or more specific IPv6 addresses from the IPv6 CIDR block range of your * subnet. You can't use this option if you're specifying a number of IPv6 * addresses.
*/ inline void SetIpv6Addresses(const Aws::VectorOne or more specific IPv6 addresses from the IPv6 CIDR block range of your * subnet. You can't use this option if you're specifying a number of IPv6 * addresses.
*/ inline void SetIpv6Addresses(Aws::VectorOne or more specific IPv6 addresses from the IPv6 CIDR block range of your * subnet. You can't use this option if you're specifying a number of IPv6 * addresses.
*/ inline LaunchTemplateInstanceNetworkInterfaceSpecificationRequest& WithIpv6Addresses(const Aws::VectorOne or more specific IPv6 addresses from the IPv6 CIDR block range of your * subnet. You can't use this option if you're specifying a number of IPv6 * addresses.
*/ inline LaunchTemplateInstanceNetworkInterfaceSpecificationRequest& WithIpv6Addresses(Aws::VectorOne or more specific IPv6 addresses from the IPv6 CIDR block range of your * subnet. You can't use this option if you're specifying a number of IPv6 * addresses.
*/ inline LaunchTemplateInstanceNetworkInterfaceSpecificationRequest& AddIpv6Addresses(const InstanceIpv6AddressRequest& value) { m_ipv6AddressesHasBeenSet = true; m_ipv6Addresses.push_back(value); return *this; } /** *One or more specific IPv6 addresses from the IPv6 CIDR block range of your * subnet. You can't use this option if you're specifying a number of IPv6 * addresses.
*/ inline LaunchTemplateInstanceNetworkInterfaceSpecificationRequest& AddIpv6Addresses(InstanceIpv6AddressRequest&& value) { m_ipv6AddressesHasBeenSet = true; m_ipv6Addresses.push_back(std::move(value)); return *this; } /** *The ID of the network interface.
*/ inline const Aws::String& GetNetworkInterfaceId() const{ return m_networkInterfaceId; } /** *The ID of the network interface.
*/ inline bool NetworkInterfaceIdHasBeenSet() const { return m_networkInterfaceIdHasBeenSet; } /** *The ID of the network interface.
*/ inline void SetNetworkInterfaceId(const Aws::String& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = value; } /** *The ID of the network interface.
*/ inline void SetNetworkInterfaceId(Aws::String&& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = std::move(value); } /** *The ID of the network interface.
*/ inline void SetNetworkInterfaceId(const char* value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId.assign(value); } /** *The ID of the network interface.
*/ inline LaunchTemplateInstanceNetworkInterfaceSpecificationRequest& WithNetworkInterfaceId(const Aws::String& value) { SetNetworkInterfaceId(value); return *this;} /** *The ID of the network interface.
*/ inline LaunchTemplateInstanceNetworkInterfaceSpecificationRequest& WithNetworkInterfaceId(Aws::String&& value) { SetNetworkInterfaceId(std::move(value)); return *this;} /** *The ID of the network interface.
*/ inline LaunchTemplateInstanceNetworkInterfaceSpecificationRequest& WithNetworkInterfaceId(const char* value) { SetNetworkInterfaceId(value); return *this;} /** *The primary private IPv4 address of the network interface.
*/ inline const Aws::String& GetPrivateIpAddress() const{ return m_privateIpAddress; } /** *The primary private IPv4 address of the network interface.
*/ inline bool PrivateIpAddressHasBeenSet() const { return m_privateIpAddressHasBeenSet; } /** *The primary private IPv4 address of the network interface.
*/ inline void SetPrivateIpAddress(const Aws::String& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = value; } /** *The primary private IPv4 address of the network interface.
*/ inline void SetPrivateIpAddress(Aws::String&& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = std::move(value); } /** *The primary private IPv4 address of the network interface.
*/ inline void SetPrivateIpAddress(const char* value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress.assign(value); } /** *The primary private IPv4 address of the network interface.
*/ inline LaunchTemplateInstanceNetworkInterfaceSpecificationRequest& WithPrivateIpAddress(const Aws::String& value) { SetPrivateIpAddress(value); return *this;} /** *The primary private IPv4 address of the network interface.
*/ inline LaunchTemplateInstanceNetworkInterfaceSpecificationRequest& WithPrivateIpAddress(Aws::String&& value) { SetPrivateIpAddress(std::move(value)); return *this;} /** *The primary private IPv4 address of the network interface.
*/ inline LaunchTemplateInstanceNetworkInterfaceSpecificationRequest& WithPrivateIpAddress(const char* value) { SetPrivateIpAddress(value); return *this;} /** *One or more private IPv4 addresses.
*/ inline const Aws::VectorOne or more private IPv4 addresses.
*/ inline bool PrivateIpAddressesHasBeenSet() const { return m_privateIpAddressesHasBeenSet; } /** *One or more private IPv4 addresses.
*/ inline void SetPrivateIpAddresses(const Aws::VectorOne or more private IPv4 addresses.
*/ inline void SetPrivateIpAddresses(Aws::VectorOne or more private IPv4 addresses.
*/ inline LaunchTemplateInstanceNetworkInterfaceSpecificationRequest& WithPrivateIpAddresses(const Aws::VectorOne or more private IPv4 addresses.
*/ inline LaunchTemplateInstanceNetworkInterfaceSpecificationRequest& WithPrivateIpAddresses(Aws::VectorOne or more private IPv4 addresses.
*/ inline LaunchTemplateInstanceNetworkInterfaceSpecificationRequest& AddPrivateIpAddresses(const PrivateIpAddressSpecification& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses.push_back(value); return *this; } /** *One or more private IPv4 addresses.
*/ inline LaunchTemplateInstanceNetworkInterfaceSpecificationRequest& AddPrivateIpAddresses(PrivateIpAddressSpecification&& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses.push_back(std::move(value)); return *this; } /** *The number of secondary private IPv4 addresses to assign to a network * interface.
*/ inline int GetSecondaryPrivateIpAddressCount() const{ return m_secondaryPrivateIpAddressCount; } /** *The number of secondary private IPv4 addresses to assign to a network * interface.
*/ inline bool SecondaryPrivateIpAddressCountHasBeenSet() const { return m_secondaryPrivateIpAddressCountHasBeenSet; } /** *The number of secondary private IPv4 addresses to assign to a network * interface.
*/ inline void SetSecondaryPrivateIpAddressCount(int value) { m_secondaryPrivateIpAddressCountHasBeenSet = true; m_secondaryPrivateIpAddressCount = value; } /** *The number of secondary private IPv4 addresses to assign to a network * interface.
*/ inline LaunchTemplateInstanceNetworkInterfaceSpecificationRequest& WithSecondaryPrivateIpAddressCount(int value) { SetSecondaryPrivateIpAddressCount(value); return *this;} /** *The ID of the subnet for the network interface.
*/ inline const Aws::String& GetSubnetId() const{ return m_subnetId; } /** *The ID of the subnet for the network interface.
*/ inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; } /** *The ID of the subnet for the network interface.
*/ inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; } /** *The ID of the subnet for the network interface.
*/ inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); } /** *The ID of the subnet for the network interface.
*/ inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); } /** *The ID of the subnet for the network interface.
*/ inline LaunchTemplateInstanceNetworkInterfaceSpecificationRequest& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;} /** *The ID of the subnet for the network interface.
*/ inline LaunchTemplateInstanceNetworkInterfaceSpecificationRequest& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;} /** *The ID of the subnet for the network interface.
*/ inline LaunchTemplateInstanceNetworkInterfaceSpecificationRequest& WithSubnetId(const char* value) { SetSubnetId(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.
*/ 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.
*/ 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.
*/ 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.
*/ inline LaunchTemplateInstanceNetworkInterfaceSpecificationRequest& WithNetworkCardIndex(int value) { SetNetworkCardIndex(value); return *this;} /** *One or more IPv4 prefixes to be assigned to the network interface. You cannot
* use this option if you use the Ipv4PrefixCount
option.
One or more IPv4 prefixes to be assigned to the network interface. You cannot
* use this option if you use the Ipv4PrefixCount
option.
One or more IPv4 prefixes to be assigned to the network interface. You cannot
* use this option if you use the Ipv4PrefixCount
option.
One or more IPv4 prefixes to be assigned to the network interface. You cannot
* use this option if you use the Ipv4PrefixCount
option.
One or more IPv4 prefixes to be assigned to the network interface. You cannot
* use this option if you use the Ipv4PrefixCount
option.
One or more IPv4 prefixes to be assigned to the network interface. You cannot
* use this option if you use the Ipv4PrefixCount
option.
One or more IPv4 prefixes to be assigned to the network interface. You cannot
* use this option if you use the Ipv4PrefixCount
option.
One or more IPv4 prefixes to be assigned to the network interface. You cannot
* use this option if you use the Ipv4PrefixCount
option.
The number of IPv4 prefixes to be automatically assigned to the network
* interface. You cannot use this option if you use the Ipv4Prefix
* option.
The number of IPv4 prefixes to be automatically assigned to the network
* interface. You cannot use this option if you use the Ipv4Prefix
* option.
The number of IPv4 prefixes to be automatically assigned to the network
* interface. You cannot use this option if you use the Ipv4Prefix
* option.
The number of IPv4 prefixes to be automatically assigned to the network
* interface. You cannot use this option if you use the Ipv4Prefix
* option.
One or more IPv6 prefixes to be assigned to the network interface. You cannot
* use this option if you use the Ipv6PrefixCount
option.
One or more IPv6 prefixes to be assigned to the network interface. You cannot
* use this option if you use the Ipv6PrefixCount
option.
One or more IPv6 prefixes to be assigned to the network interface. You cannot
* use this option if you use the Ipv6PrefixCount
option.
One or more IPv6 prefixes to be assigned to the network interface. You cannot
* use this option if you use the Ipv6PrefixCount
option.
One or more IPv6 prefixes to be assigned to the network interface. You cannot
* use this option if you use the Ipv6PrefixCount
option.
One or more IPv6 prefixes to be assigned to the network interface. You cannot
* use this option if you use the Ipv6PrefixCount
option.
One or more IPv6 prefixes to be assigned to the network interface. You cannot
* use this option if you use the Ipv6PrefixCount
option.
One or more IPv6 prefixes to be assigned to the network interface. You cannot
* use this option if you use the Ipv6PrefixCount
option.
The number of IPv6 prefixes to be automatically assigned to the network
* interface. You cannot use this option if you use the Ipv6Prefix
* option.
The number of IPv6 prefixes to be automatically assigned to the network
* interface. You cannot use this option if you use the Ipv6Prefix
* option.
The number of IPv6 prefixes to be automatically assigned to the network
* interface. You cannot use this option if you use the Ipv6Prefix
* option.
The number of IPv6 prefixes to be automatically assigned to the network
* interface. You cannot use this option if you use the Ipv6Prefix
* option.