/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include One or more network interfaces to attach to an Amazon EC2 instance. If you
* specify a network interface, you must specify security groups and subnets as
* part of the network interface. See Also:
AWS
* API Reference
Indicates whether to associate a Carrier IP address with eth0 for a new * network interface. You 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, see Carrier * IP address in the Wavelength Developer Guide.
*/ inline bool GetAssociateCarrierIpAddress() const{ return m_associateCarrierIpAddress; } /** *Indicates whether to associate a Carrier IP address with eth0 for a new * network interface. You 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, see Carrier * IP address in the Wavelength Developer Guide.
*/ inline bool AssociateCarrierIpAddressHasBeenSet() const { return m_associateCarrierIpAddressHasBeenSet; } /** *Indicates whether to associate a Carrier IP address with eth0 for a new * network interface. You 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, see Carrier * IP address in the Wavelength Developer Guide.
*/ inline void SetAssociateCarrierIpAddress(bool value) { m_associateCarrierIpAddressHasBeenSet = true; m_associateCarrierIpAddress = value; } /** *Indicates whether to associate a Carrier IP address with eth0 for a new * network interface. You 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, see Carrier * IP address in the Wavelength Developer Guide.
*/ inline AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails& 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 AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails& 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 AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails& 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 AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *A description for the network interface.
*/ inline AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *A description for the network interface.
*/ inline AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails& 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 AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails& 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 AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails& WithGroups(const Aws::VectorThe IDs of one or more security groups.
*/ inline AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails& WithGroups(Aws::VectorThe IDs of one or more security groups.
*/ inline AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails& AddGroups(const Aws::String& value) { m_groupsHasBeenSet = true; m_groups.push_back(value); return *this; } /** *The IDs of one or more security groups.
*/ inline AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails& 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 AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails& AddGroups(const char* value) { m_groupsHasBeenSet = true; m_groups.push_back(value); return *this; } /** *The type of network interface.
*/ inline const Aws::String& GetInterfaceType() const{ return m_interfaceType; } /** *The type of network interface.
*/ inline bool InterfaceTypeHasBeenSet() const { return m_interfaceTypeHasBeenSet; } /** *The type of network interface.
*/ inline void SetInterfaceType(const Aws::String& value) { m_interfaceTypeHasBeenSet = true; m_interfaceType = value; } /** *The type of network interface.
*/ inline void SetInterfaceType(Aws::String&& value) { m_interfaceTypeHasBeenSet = true; m_interfaceType = std::move(value); } /** *The type of network interface.
*/ inline void SetInterfaceType(const char* value) { m_interfaceTypeHasBeenSet = true; m_interfaceType.assign(value); } /** *The type of network interface.
*/ inline AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails& WithInterfaceType(const Aws::String& value) { SetInterfaceType(value); return *this;} /** *The type of network interface.
*/ inline AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails& WithInterfaceType(Aws::String&& value) { SetInterfaceType(std::move(value)); return *this;} /** *The type of network interface.
*/ inline AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails& WithInterfaceType(const char* value) { SetInterfaceType(value); return *this;} /** * The number of IPv4 prefixes to be automatically assigned to the network
* interface. You cannot use this option if you use the Ipv4Prefixes
* option.
The number of IPv4 prefixes to be automatically assigned to the network
* interface. You cannot use this option if you use the Ipv4Prefixes
* option.
The number of IPv4 prefixes to be automatically assigned to the network
* interface. You cannot use this option if you use the Ipv4Prefixes
* option.
The number of IPv4 prefixes to be automatically assigned to the network
* interface. You cannot use this option if you use the Ipv4Prefixes
* 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.
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 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 you use Ipv6Addresses
.
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 you use Ipv6Addresses
.
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 you use Ipv6Addresses
.
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 you use Ipv6Addresses
.
One or more specific IPv6 addresses from the IPv6 CIDR block range of your
* subnet. You can't use this option if you use Ipv6AddressCount
.
One or more specific IPv6 addresses from the IPv6 CIDR block range of your
* subnet. You can't use this option if you use Ipv6AddressCount
.
One or more specific IPv6 addresses from the IPv6 CIDR block range of your
* subnet. You can't use this option if you use Ipv6AddressCount
.
One or more specific IPv6 addresses from the IPv6 CIDR block range of your
* subnet. You can't use this option if you use Ipv6AddressCount
.
One or more specific IPv6 addresses from the IPv6 CIDR block range of your
* subnet. You can't use this option if you use Ipv6AddressCount
.
One or more specific IPv6 addresses from the IPv6 CIDR block range of your
* subnet. You can't use this option if you use Ipv6AddressCount
.
One or more specific IPv6 addresses from the IPv6 CIDR block range of your
* subnet. You can't use this option if you use Ipv6AddressCount
.
One or more specific IPv6 addresses from the IPv6 CIDR block range of your
* subnet. You can't use this option if you use Ipv6AddressCount
.
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.
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 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
.
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
.
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
.
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
.
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 AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails& WithNetworkInterfaceId(const Aws::String& value) { SetNetworkInterfaceId(value); return *this;} /** *The ID of the network interface.
*/ inline AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails& WithNetworkInterfaceId(Aws::String&& value) { SetNetworkInterfaceId(std::move(value)); return *this;} /** *The ID of the network interface.
*/ inline AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails& 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 AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails& WithPrivateIpAddress(const Aws::String& value) { SetPrivateIpAddress(value); return *this;} /** *The primary private IPv4 address of the network interface.
*/ inline AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails& WithPrivateIpAddress(Aws::String&& value) { SetPrivateIpAddress(std::move(value)); return *this;} /** *The primary private IPv4 address of the network interface.
*/ inline AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails& 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 AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails& WithPrivateIpAddresses(const Aws::VectorOne or more private IPv4 addresses.
*/ inline AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails& WithPrivateIpAddresses(Aws::VectorOne or more private IPv4 addresses.
*/ inline AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails& AddPrivateIpAddresses(const AwsEc2LaunchTemplateDataNetworkInterfaceSetPrivateIpAddressesDetails& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses.push_back(value); return *this; } /** *One or more private IPv4 addresses.
*/ inline AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails& AddPrivateIpAddresses(AwsEc2LaunchTemplateDataNetworkInterfaceSetPrivateIpAddressesDetails&& 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 AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails& 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 AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;} /** *The ID of the subnet for the network interface.
*/ inline AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;} /** *The ID of the subnet for the network interface.
*/ inline AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails& WithSubnetId(const char* value) { SetSubnetId(value); return *this;} private: bool m_associateCarrierIpAddress; bool m_associateCarrierIpAddressHasBeenSet = false; 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