/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes a network interface.See Also:
AWS
* API Reference
Indicates whether to associate 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; } /** *Indicates whether to associate 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; } /** *Indicates whether to associate 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; } /** *Indicates whether to associate 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 LaunchTemplateInstanceNetworkInterfaceSpecification& WithAssociateCarrierIpAddress(bool value) { SetAssociateCarrierIpAddress(value); return *this;} /** *Indicates whether to associate a public IPv4 address with eth0 for a new * network interface.
*/ inline bool GetAssociatePublicIpAddress() const{ return m_associatePublicIpAddress; } /** *Indicates whether to associate a public IPv4 address with eth0 for a new * network interface.
*/ inline bool AssociatePublicIpAddressHasBeenSet() const { return m_associatePublicIpAddressHasBeenSet; } /** *Indicates whether to associate a public IPv4 address with eth0 for a new * network interface.
*/ inline void SetAssociatePublicIpAddress(bool value) { m_associatePublicIpAddressHasBeenSet = true; m_associatePublicIpAddress = value; } /** *Indicates whether to associate a public IPv4 address with eth0 for a new * network interface.
*/ inline LaunchTemplateInstanceNetworkInterfaceSpecification& 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 LaunchTemplateInstanceNetworkInterfaceSpecification& 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 LaunchTemplateInstanceNetworkInterfaceSpecification& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *A description for the network interface.
*/ inline LaunchTemplateInstanceNetworkInterfaceSpecification& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *A description for the network interface.
*/ inline LaunchTemplateInstanceNetworkInterfaceSpecification& 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 LaunchTemplateInstanceNetworkInterfaceSpecification& 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 LaunchTemplateInstanceNetworkInterfaceSpecification& WithGroups(const Aws::VectorThe IDs of one or more security groups.
*/ inline LaunchTemplateInstanceNetworkInterfaceSpecification& WithGroups(Aws::VectorThe IDs of one or more security groups.
*/ inline LaunchTemplateInstanceNetworkInterfaceSpecification& AddGroups(const Aws::String& value) { m_groupsHasBeenSet = true; m_groups.push_back(value); return *this; } /** *The IDs of one or more security groups.
*/ inline LaunchTemplateInstanceNetworkInterfaceSpecification& 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 LaunchTemplateInstanceNetworkInterfaceSpecification& 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 LaunchTemplateInstanceNetworkInterfaceSpecification& WithInterfaceType(const Aws::String& value) { SetInterfaceType(value); return *this;} /** *The type of network interface.
*/ inline LaunchTemplateInstanceNetworkInterfaceSpecification& WithInterfaceType(Aws::String&& value) { SetInterfaceType(std::move(value)); return *this;} /** *The type of network interface.
*/ inline LaunchTemplateInstanceNetworkInterfaceSpecification& WithInterfaceType(const char* value) { SetInterfaceType(value); return *this;} /** *The number of IPv6 addresses for the network interface.
*/ inline int GetIpv6AddressCount() const{ return m_ipv6AddressCount; } /** *The number of IPv6 addresses for the network interface.
*/ inline bool Ipv6AddressCountHasBeenSet() const { return m_ipv6AddressCountHasBeenSet; } /** *The number of IPv6 addresses for the network interface.
*/ inline void SetIpv6AddressCount(int value) { m_ipv6AddressCountHasBeenSet = true; m_ipv6AddressCount = value; } /** *The number of IPv6 addresses for the network interface.
*/ inline LaunchTemplateInstanceNetworkInterfaceSpecification& WithIpv6AddressCount(int value) { SetIpv6AddressCount(value); return *this;} /** *The IPv6 addresses for the network interface.
*/ inline const Aws::VectorThe IPv6 addresses for the network interface.
*/ inline bool Ipv6AddressesHasBeenSet() const { return m_ipv6AddressesHasBeenSet; } /** *The IPv6 addresses for the network interface.
*/ inline void SetIpv6Addresses(const Aws::VectorThe IPv6 addresses for the network interface.
*/ inline void SetIpv6Addresses(Aws::VectorThe IPv6 addresses for the network interface.
*/ inline LaunchTemplateInstanceNetworkInterfaceSpecification& WithIpv6Addresses(const Aws::VectorThe IPv6 addresses for the network interface.
*/ inline LaunchTemplateInstanceNetworkInterfaceSpecification& WithIpv6Addresses(Aws::VectorThe IPv6 addresses for the network interface.
*/ inline LaunchTemplateInstanceNetworkInterfaceSpecification& AddIpv6Addresses(const InstanceIpv6Address& value) { m_ipv6AddressesHasBeenSet = true; m_ipv6Addresses.push_back(value); return *this; } /** *The IPv6 addresses for the network interface.
*/ inline LaunchTemplateInstanceNetworkInterfaceSpecification& AddIpv6Addresses(InstanceIpv6Address&& 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 LaunchTemplateInstanceNetworkInterfaceSpecification& WithNetworkInterfaceId(const Aws::String& value) { SetNetworkInterfaceId(value); return *this;} /** *The ID of the network interface.
*/ inline LaunchTemplateInstanceNetworkInterfaceSpecification& WithNetworkInterfaceId(Aws::String&& value) { SetNetworkInterfaceId(std::move(value)); return *this;} /** *The ID of the network interface.
*/ inline LaunchTemplateInstanceNetworkInterfaceSpecification& 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 LaunchTemplateInstanceNetworkInterfaceSpecification& WithPrivateIpAddress(const Aws::String& value) { SetPrivateIpAddress(value); return *this;} /** *The primary private IPv4 address of the network interface.
*/ inline LaunchTemplateInstanceNetworkInterfaceSpecification& WithPrivateIpAddress(Aws::String&& value) { SetPrivateIpAddress(std::move(value)); return *this;} /** *The primary private IPv4 address of the network interface.
*/ inline LaunchTemplateInstanceNetworkInterfaceSpecification& 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 LaunchTemplateInstanceNetworkInterfaceSpecification& WithPrivateIpAddresses(const Aws::VectorOne or more private IPv4 addresses.
*/ inline LaunchTemplateInstanceNetworkInterfaceSpecification& WithPrivateIpAddresses(Aws::VectorOne or more private IPv4 addresses.
*/ inline LaunchTemplateInstanceNetworkInterfaceSpecification& AddPrivateIpAddresses(const PrivateIpAddressSpecification& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses.push_back(value); return *this; } /** *One or more private IPv4 addresses.
*/ inline LaunchTemplateInstanceNetworkInterfaceSpecification& AddPrivateIpAddresses(PrivateIpAddressSpecification&& value) { m_privateIpAddressesHasBeenSet = true; m_privateIpAddresses.push_back(std::move(value)); return *this; } /** *The number of secondary private IPv4 addresses for the network interface.
*/ inline int GetSecondaryPrivateIpAddressCount() const{ return m_secondaryPrivateIpAddressCount; } /** *The number of secondary private IPv4 addresses for the network interface.
*/ inline bool SecondaryPrivateIpAddressCountHasBeenSet() const { return m_secondaryPrivateIpAddressCountHasBeenSet; } /** *The number of secondary private IPv4 addresses for the network interface.
*/ inline void SetSecondaryPrivateIpAddressCount(int value) { m_secondaryPrivateIpAddressCountHasBeenSet = true; m_secondaryPrivateIpAddressCount = value; } /** *The number of secondary private IPv4 addresses for the network interface.
*/ inline LaunchTemplateInstanceNetworkInterfaceSpecification& 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 LaunchTemplateInstanceNetworkInterfaceSpecification& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;} /** *The ID of the subnet for the network interface.
*/ inline LaunchTemplateInstanceNetworkInterfaceSpecification& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;} /** *The ID of the subnet for the network interface.
*/ inline LaunchTemplateInstanceNetworkInterfaceSpecification& WithSubnetId(const char* value) { SetSubnetId(value); return *this;} /** *The index of the network card.
*/ inline int GetNetworkCardIndex() const{ return m_networkCardIndex; } /** *The index of the network card.
*/ inline bool NetworkCardIndexHasBeenSet() const { return m_networkCardIndexHasBeenSet; } /** *The index of the network card.
*/ inline void SetNetworkCardIndex(int value) { m_networkCardIndexHasBeenSet = true; m_networkCardIndex = value; } /** *The index of the network card.
*/ inline LaunchTemplateInstanceNetworkInterfaceSpecification& WithNetworkCardIndex(int value) { SetNetworkCardIndex(value); return *this;} /** *One or more IPv4 prefixes assigned to the network interface.
*/ inline const Aws::VectorOne or more IPv4 prefixes assigned to the network interface.
*/ inline bool Ipv4PrefixesHasBeenSet() const { return m_ipv4PrefixesHasBeenSet; } /** *One or more IPv4 prefixes assigned to the network interface.
*/ inline void SetIpv4Prefixes(const Aws::VectorOne or more IPv4 prefixes assigned to the network interface.
*/ inline void SetIpv4Prefixes(Aws::VectorOne or more IPv4 prefixes assigned to the network interface.
*/ inline LaunchTemplateInstanceNetworkInterfaceSpecification& WithIpv4Prefixes(const Aws::VectorOne or more IPv4 prefixes assigned to the network interface.
*/ inline LaunchTemplateInstanceNetworkInterfaceSpecification& WithIpv4Prefixes(Aws::VectorOne or more IPv4 prefixes assigned to the network interface.
*/ inline LaunchTemplateInstanceNetworkInterfaceSpecification& AddIpv4Prefixes(const Ipv4PrefixSpecificationResponse& value) { m_ipv4PrefixesHasBeenSet = true; m_ipv4Prefixes.push_back(value); return *this; } /** *One or more IPv4 prefixes assigned to the network interface.
*/ inline LaunchTemplateInstanceNetworkInterfaceSpecification& AddIpv4Prefixes(Ipv4PrefixSpecificationResponse&& value) { m_ipv4PrefixesHasBeenSet = true; m_ipv4Prefixes.push_back(std::move(value)); return *this; } /** *The number of IPv4 prefixes that Amazon Web Services automatically assigned * to the network interface.
*/ inline int GetIpv4PrefixCount() const{ return m_ipv4PrefixCount; } /** *The number of IPv4 prefixes that Amazon Web Services automatically assigned * to the network interface.
*/ inline bool Ipv4PrefixCountHasBeenSet() const { return m_ipv4PrefixCountHasBeenSet; } /** *The number of IPv4 prefixes that Amazon Web Services automatically assigned * to the network interface.
*/ inline void SetIpv4PrefixCount(int value) { m_ipv4PrefixCountHasBeenSet = true; m_ipv4PrefixCount = value; } /** *The number of IPv4 prefixes that Amazon Web Services automatically assigned * to the network interface.
*/ inline LaunchTemplateInstanceNetworkInterfaceSpecification& WithIpv4PrefixCount(int value) { SetIpv4PrefixCount(value); return *this;} /** *One or more IPv6 prefixes assigned to the network interface.
*/ inline const Aws::VectorOne or more IPv6 prefixes assigned to the network interface.
*/ inline bool Ipv6PrefixesHasBeenSet() const { return m_ipv6PrefixesHasBeenSet; } /** *One or more IPv6 prefixes assigned to the network interface.
*/ inline void SetIpv6Prefixes(const Aws::VectorOne or more IPv6 prefixes assigned to the network interface.
*/ inline void SetIpv6Prefixes(Aws::VectorOne or more IPv6 prefixes assigned to the network interface.
*/ inline LaunchTemplateInstanceNetworkInterfaceSpecification& WithIpv6Prefixes(const Aws::VectorOne or more IPv6 prefixes assigned to the network interface.
*/ inline LaunchTemplateInstanceNetworkInterfaceSpecification& WithIpv6Prefixes(Aws::VectorOne or more IPv6 prefixes assigned to the network interface.
*/ inline LaunchTemplateInstanceNetworkInterfaceSpecification& AddIpv6Prefixes(const Ipv6PrefixSpecificationResponse& value) { m_ipv6PrefixesHasBeenSet = true; m_ipv6Prefixes.push_back(value); return *this; } /** *One or more IPv6 prefixes assigned to the network interface.
*/ inline LaunchTemplateInstanceNetworkInterfaceSpecification& AddIpv6Prefixes(Ipv6PrefixSpecificationResponse&& value) { m_ipv6PrefixesHasBeenSet = true; m_ipv6Prefixes.push_back(std::move(value)); return *this; } /** *The number of IPv6 prefixes that Amazon Web Services automatically assigned * to the network interface.
*/ inline int GetIpv6PrefixCount() const{ return m_ipv6PrefixCount; } /** *The number of IPv6 prefixes that Amazon Web Services automatically assigned * to the network interface.
*/ inline bool Ipv6PrefixCountHasBeenSet() const { return m_ipv6PrefixCountHasBeenSet; } /** *The number of IPv6 prefixes that Amazon Web Services automatically assigned * to the network interface.
*/ inline void SetIpv6PrefixCount(int value) { m_ipv6PrefixCountHasBeenSet = true; m_ipv6PrefixCount = value; } /** *The number of IPv6 prefixes that Amazon Web Services automatically assigned * to the network interface.
*/ inline LaunchTemplateInstanceNetworkInterfaceSpecification& WithIpv6PrefixCount(int value) { SetIpv6PrefixCount(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