@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LaunchTemplateInstanceNetworkInterfaceSpecificationRequest extends Object implements Serializable, Cloneable
The parameters for a network interface.
Constructor and Description |
---|
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest() |
Modifier and Type | Method and Description |
---|---|
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest |
clone() |
boolean |
equals(Object obj) |
Boolean |
getAssociateCarrierIpAddress()
Associates a Carrier IP address with eth0 for a new network interface.
|
Boolean |
getAssociatePublicIpAddress()
Associates a public IPv4 address with eth0 for a new network interface.
|
ConnectionTrackingSpecificationRequest |
getConnectionTrackingSpecification()
A security group connection tracking specification that enables you to set the timeout for connection tracking on
an Elastic network interface.
|
Boolean |
getDeleteOnTermination()
Indicates whether the network interface is deleted when the instance is terminated.
|
String |
getDescription()
A description for the network interface.
|
Integer |
getDeviceIndex()
The device index for the network interface attachment.
|
EnaSrdSpecificationRequest |
getEnaSrdSpecification()
Configure ENA Express settings for your launch template.
|
List<String> |
getGroups()
The IDs of one or more security groups.
|
String |
getInterfaceType()
The type of network interface.
|
Integer |
getIpv4PrefixCount()
The number of IPv4 prefixes to be automatically assigned to the network interface.
|
List<Ipv4PrefixSpecificationRequest> |
getIpv4Prefixes()
One or more IPv4 prefixes to be assigned to the network interface.
|
Integer |
getIpv6AddressCount()
The number of IPv6 addresses to assign to a network interface.
|
List<InstanceIpv6AddressRequest> |
getIpv6Addresses()
One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet.
|
Integer |
getIpv6PrefixCount()
The number of IPv6 prefixes to be automatically assigned to the network interface.
|
List<Ipv6PrefixSpecificationRequest> |
getIpv6Prefixes()
One or more IPv6 prefixes to be assigned to the network interface.
|
Integer |
getNetworkCardIndex()
The index of the network card.
|
String |
getNetworkInterfaceId()
The ID of the network interface.
|
Boolean |
getPrimaryIpv6()
The primary IPv6 address of the network interface.
|
String |
getPrivateIpAddress()
The primary private IPv4 address of the network interface.
|
List<PrivateIpAddressSpecification> |
getPrivateIpAddresses()
One or more private IPv4 addresses.
|
Integer |
getSecondaryPrivateIpAddressCount()
The number of secondary private IPv4 addresses to assign to a network interface.
|
String |
getSubnetId()
The ID of the subnet for the network interface.
|
int |
hashCode() |
Boolean |
isAssociateCarrierIpAddress()
Associates a Carrier IP address with eth0 for a new network interface.
|
Boolean |
isAssociatePublicIpAddress()
Associates a public IPv4 address with eth0 for a new network interface.
|
Boolean |
isDeleteOnTermination()
Indicates whether the network interface is deleted when the instance is terminated.
|
Boolean |
isPrimaryIpv6()
The primary IPv6 address of the network interface.
|
void |
setAssociateCarrierIpAddress(Boolean associateCarrierIpAddress)
Associates a Carrier IP address with eth0 for a new network interface.
|
void |
setAssociatePublicIpAddress(Boolean associatePublicIpAddress)
Associates a public IPv4 address with eth0 for a new network interface.
|
void |
setConnectionTrackingSpecification(ConnectionTrackingSpecificationRequest connectionTrackingSpecification)
A security group connection tracking specification that enables you to set the timeout for connection tracking on
an Elastic network interface.
|
void |
setDeleteOnTermination(Boolean deleteOnTermination)
Indicates whether the network interface is deleted when the instance is terminated.
|
void |
setDescription(String description)
A description for the network interface.
|
void |
setDeviceIndex(Integer deviceIndex)
The device index for the network interface attachment.
|
void |
setEnaSrdSpecification(EnaSrdSpecificationRequest enaSrdSpecification)
Configure ENA Express settings for your launch template.
|
void |
setGroups(Collection<String> groups)
The IDs of one or more security groups.
|
void |
setInterfaceType(String interfaceType)
The type of network interface.
|
void |
setIpv4PrefixCount(Integer ipv4PrefixCount)
The number of IPv4 prefixes to be automatically assigned to the network interface.
|
void |
setIpv4Prefixes(Collection<Ipv4PrefixSpecificationRequest> ipv4Prefixes)
One or more IPv4 prefixes to be assigned to the network interface.
|
void |
setIpv6AddressCount(Integer ipv6AddressCount)
The number of IPv6 addresses to assign to a network interface.
|
void |
setIpv6Addresses(Collection<InstanceIpv6AddressRequest> ipv6Addresses)
One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet.
|
void |
setIpv6PrefixCount(Integer ipv6PrefixCount)
The number of IPv6 prefixes to be automatically assigned to the network interface.
|
void |
setIpv6Prefixes(Collection<Ipv6PrefixSpecificationRequest> ipv6Prefixes)
One or more IPv6 prefixes to be assigned to the network interface.
|
void |
setNetworkCardIndex(Integer networkCardIndex)
The index of the network card.
|
void |
setNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface.
|
void |
setPrimaryIpv6(Boolean primaryIpv6)
The primary IPv6 address of the network interface.
|
void |
setPrivateIpAddress(String privateIpAddress)
The primary private IPv4 address of the network interface.
|
void |
setPrivateIpAddresses(Collection<PrivateIpAddressSpecification> privateIpAddresses)
One or more private IPv4 addresses.
|
void |
setSecondaryPrivateIpAddressCount(Integer secondaryPrivateIpAddressCount)
The number of secondary private IPv4 addresses to assign to a network interface.
|
void |
setSubnetId(String subnetId)
The ID of the subnet for the network interface.
|
String |
toString()
Returns a string representation of this object.
|
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest |
withAssociateCarrierIpAddress(Boolean associateCarrierIpAddress)
Associates a Carrier IP address with eth0 for a new network interface.
|
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest |
withAssociatePublicIpAddress(Boolean associatePublicIpAddress)
Associates a public IPv4 address with eth0 for a new network interface.
|
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest |
withConnectionTrackingSpecification(ConnectionTrackingSpecificationRequest connectionTrackingSpecification)
A security group connection tracking specification that enables you to set the timeout for connection tracking on
an Elastic network interface.
|
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest |
withDeleteOnTermination(Boolean deleteOnTermination)
Indicates whether the network interface is deleted when the instance is terminated.
|
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest |
withDescription(String description)
A description for the network interface.
|
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest |
withDeviceIndex(Integer deviceIndex)
The device index for the network interface attachment.
|
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest |
withEnaSrdSpecification(EnaSrdSpecificationRequest enaSrdSpecification)
Configure ENA Express settings for your launch template.
|
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest |
withGroups(Collection<String> groups)
The IDs of one or more security groups.
|
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest |
withGroups(String... groups)
The IDs of one or more security groups.
|
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest |
withInterfaceType(String interfaceType)
The type of network interface.
|
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest |
withIpv4PrefixCount(Integer ipv4PrefixCount)
The number of IPv4 prefixes to be automatically assigned to the network interface.
|
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest |
withIpv4Prefixes(Collection<Ipv4PrefixSpecificationRequest> ipv4Prefixes)
One or more IPv4 prefixes to be assigned to the network interface.
|
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest |
withIpv4Prefixes(Ipv4PrefixSpecificationRequest... ipv4Prefixes)
One or more IPv4 prefixes to be assigned to the network interface.
|
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest |
withIpv6AddressCount(Integer ipv6AddressCount)
The number of IPv6 addresses to assign to a network interface.
|
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest |
withIpv6Addresses(Collection<InstanceIpv6AddressRequest> ipv6Addresses)
One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet.
|
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest |
withIpv6Addresses(InstanceIpv6AddressRequest... ipv6Addresses)
One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet.
|
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest |
withIpv6PrefixCount(Integer ipv6PrefixCount)
The number of IPv6 prefixes to be automatically assigned to the network interface.
|
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest |
withIpv6Prefixes(Collection<Ipv6PrefixSpecificationRequest> ipv6Prefixes)
One or more IPv6 prefixes to be assigned to the network interface.
|
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest |
withIpv6Prefixes(Ipv6PrefixSpecificationRequest... ipv6Prefixes)
One or more IPv6 prefixes to be assigned to the network interface.
|
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest |
withNetworkCardIndex(Integer networkCardIndex)
The index of the network card.
|
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest |
withNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface.
|
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest |
withPrimaryIpv6(Boolean primaryIpv6)
The primary IPv6 address of the network interface.
|
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest |
withPrivateIpAddress(String privateIpAddress)
The primary private IPv4 address of the network interface.
|
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest |
withPrivateIpAddresses(Collection<PrivateIpAddressSpecification> privateIpAddresses)
One or more private IPv4 addresses.
|
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest |
withPrivateIpAddresses(PrivateIpAddressSpecification... privateIpAddresses)
One or more private IPv4 addresses.
|
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest |
withSecondaryPrivateIpAddressCount(Integer secondaryPrivateIpAddressCount)
The number of secondary private IPv4 addresses to assign to a network interface.
|
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest |
withSubnetId(String subnetId)
The ID of the subnet for the network interface.
|
public LaunchTemplateInstanceNetworkInterfaceSpecificationRequest()
public void setAssociateCarrierIpAddress(Boolean 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.
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.
public Boolean getAssociateCarrierIpAddress()
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.
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.
public LaunchTemplateInstanceNetworkInterfaceSpecificationRequest withAssociateCarrierIpAddress(Boolean 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.
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.
public Boolean isAssociateCarrierIpAddress()
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.
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.
public void setAssociatePublicIpAddress(Boolean associatePublicIpAddress)
Associates a public IPv4 address with eth0 for a new network interface.
Amazon Web Services charges for all public IPv4 addresses, including public IPv4 addresses associated with running instances and Elastic IP addresses. For more information, see the Public IPv4 Address tab on the Amazon VPC pricing page.
associatePublicIpAddress
- Associates a public IPv4 address with eth0 for a new network interface.
Amazon Web Services charges for all public IPv4 addresses, including public IPv4 addresses associated with running instances and Elastic IP addresses. For more information, see the Public IPv4 Address tab on the Amazon VPC pricing page.
public Boolean getAssociatePublicIpAddress()
Associates a public IPv4 address with eth0 for a new network interface.
Amazon Web Services charges for all public IPv4 addresses, including public IPv4 addresses associated with running instances and Elastic IP addresses. For more information, see the Public IPv4 Address tab on the Amazon VPC pricing page.
Amazon Web Services charges for all public IPv4 addresses, including public IPv4 addresses associated with running instances and Elastic IP addresses. For more information, see the Public IPv4 Address tab on the Amazon VPC pricing page.
public LaunchTemplateInstanceNetworkInterfaceSpecificationRequest withAssociatePublicIpAddress(Boolean associatePublicIpAddress)
Associates a public IPv4 address with eth0 for a new network interface.
Amazon Web Services charges for all public IPv4 addresses, including public IPv4 addresses associated with running instances and Elastic IP addresses. For more information, see the Public IPv4 Address tab on the Amazon VPC pricing page.
associatePublicIpAddress
- Associates a public IPv4 address with eth0 for a new network interface.
Amazon Web Services charges for all public IPv4 addresses, including public IPv4 addresses associated with running instances and Elastic IP addresses. For more information, see the Public IPv4 Address tab on the Amazon VPC pricing page.
public Boolean isAssociatePublicIpAddress()
Associates a public IPv4 address with eth0 for a new network interface.
Amazon Web Services charges for all public IPv4 addresses, including public IPv4 addresses associated with running instances and Elastic IP addresses. For more information, see the Public IPv4 Address tab on the Amazon VPC pricing page.
Amazon Web Services charges for all public IPv4 addresses, including public IPv4 addresses associated with running instances and Elastic IP addresses. For more information, see the Public IPv4 Address tab on the Amazon VPC pricing page.
public void setDeleteOnTermination(Boolean deleteOnTermination)
Indicates whether the network interface is deleted when the instance is terminated.
deleteOnTermination
- Indicates whether the network interface is deleted when the instance is terminated.public Boolean getDeleteOnTermination()
Indicates whether the network interface is deleted when the instance is terminated.
public LaunchTemplateInstanceNetworkInterfaceSpecificationRequest withDeleteOnTermination(Boolean deleteOnTermination)
Indicates whether the network interface is deleted when the instance is terminated.
deleteOnTermination
- Indicates whether the network interface is deleted when the instance is terminated.public Boolean isDeleteOnTermination()
Indicates whether the network interface is deleted when the instance is terminated.
public void setDescription(String description)
A description for the network interface.
description
- A description for the network interface.public String getDescription()
A description for the network interface.
public LaunchTemplateInstanceNetworkInterfaceSpecificationRequest withDescription(String description)
A description for the network interface.
description
- A description for the network interface.public void setDeviceIndex(Integer deviceIndex)
The device index for the network interface attachment. Each network interface requires a device index. If you create a launch template that includes secondary network interfaces but not a primary network interface, then you must add a primary network interface as a launch parameter when you launch an instance from the template.
deviceIndex
- The device index for the network interface attachment. Each network interface requires a device index. If
you create a launch template that includes secondary network interfaces but not a primary network
interface, then you must add a primary network interface as a launch parameter when you launch an instance
from the template.public Integer getDeviceIndex()
The device index for the network interface attachment. Each network interface requires a device index. If you create a launch template that includes secondary network interfaces but not a primary network interface, then you must add a primary network interface as a launch parameter when you launch an instance from the template.
public LaunchTemplateInstanceNetworkInterfaceSpecificationRequest withDeviceIndex(Integer deviceIndex)
The device index for the network interface attachment. Each network interface requires a device index. If you create a launch template that includes secondary network interfaces but not a primary network interface, then you must add a primary network interface as a launch parameter when you launch an instance from the template.
deviceIndex
- The device index for the network interface attachment. Each network interface requires a device index. If
you create a launch template that includes secondary network interfaces but not a primary network
interface, then you must add a primary network interface as a launch parameter when you launch an instance
from the template.public List<String> getGroups()
The IDs of one or more security groups.
public void setGroups(Collection<String> groups)
The IDs of one or more security groups.
groups
- The IDs of one or more security groups.public LaunchTemplateInstanceNetworkInterfaceSpecificationRequest withGroups(String... groups)
The IDs of one or more security groups.
NOTE: This method appends the values to the existing list (if any). Use
setGroups(java.util.Collection)
or withGroups(java.util.Collection)
if you want to override the
existing values.
groups
- The IDs of one or more security groups.public LaunchTemplateInstanceNetworkInterfaceSpecificationRequest withGroups(Collection<String> groups)
The IDs of one or more security groups.
groups
- The IDs of one or more security groups.public void setInterfaceType(String interfaceType)
The type of network interface. To create an Elastic Fabric Adapter (EFA), specify efa
. For more
information, see Elastic Fabric
Adapter in the Amazon EC2 User Guide.
If you are not creating an EFA, specify interface
or omit this parameter.
Valid values: interface
| efa
interfaceType
- The type of network interface. To create an Elastic Fabric Adapter (EFA), specify efa
. For
more information, see Elastic
Fabric Adapter in the Amazon EC2 User Guide.
If you are not creating an EFA, specify interface
or omit this parameter.
Valid values: interface
| efa
public String getInterfaceType()
The type of network interface. To create an Elastic Fabric Adapter (EFA), specify efa
. For more
information, see Elastic Fabric
Adapter in the Amazon EC2 User Guide.
If you are not creating an EFA, specify interface
or omit this parameter.
Valid values: interface
| efa
efa
. For
more information, see Elastic
Fabric Adapter in the Amazon EC2 User Guide.
If you are not creating an EFA, specify interface
or omit this parameter.
Valid values: interface
| efa
public LaunchTemplateInstanceNetworkInterfaceSpecificationRequest withInterfaceType(String interfaceType)
The type of network interface. To create an Elastic Fabric Adapter (EFA), specify efa
. For more
information, see Elastic Fabric
Adapter in the Amazon EC2 User Guide.
If you are not creating an EFA, specify interface
or omit this parameter.
Valid values: interface
| efa
interfaceType
- The type of network interface. To create an Elastic Fabric Adapter (EFA), specify efa
. For
more information, see Elastic
Fabric Adapter in the Amazon EC2 User Guide.
If you are not creating an EFA, specify interface
or omit this parameter.
Valid values: interface
| efa
public void setIpv6AddressCount(Integer 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.
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.public Integer getIpv6AddressCount()
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.
public LaunchTemplateInstanceNetworkInterfaceSpecificationRequest withIpv6AddressCount(Integer 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.
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.public List<InstanceIpv6AddressRequest> getIpv6Addresses()
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.
public void setIpv6Addresses(Collection<InstanceIpv6AddressRequest> ipv6Addresses)
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.
ipv6Addresses
- 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.public LaunchTemplateInstanceNetworkInterfaceSpecificationRequest withIpv6Addresses(InstanceIpv6AddressRequest... ipv6Addresses)
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.
NOTE: This method appends the values to the existing list (if any). Use
setIpv6Addresses(java.util.Collection)
or withIpv6Addresses(java.util.Collection)
if you want
to override the existing values.
ipv6Addresses
- 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.public LaunchTemplateInstanceNetworkInterfaceSpecificationRequest withIpv6Addresses(Collection<InstanceIpv6AddressRequest> ipv6Addresses)
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.
ipv6Addresses
- 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.public void setNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface.
networkInterfaceId
- The ID of the network interface.public String getNetworkInterfaceId()
The ID of the network interface.
public LaunchTemplateInstanceNetworkInterfaceSpecificationRequest withNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface.
networkInterfaceId
- The ID of the network interface.public void setPrivateIpAddress(String privateIpAddress)
The primary private IPv4 address of the network interface.
privateIpAddress
- The primary private IPv4 address of the network interface.public String getPrivateIpAddress()
The primary private IPv4 address of the network interface.
public LaunchTemplateInstanceNetworkInterfaceSpecificationRequest withPrivateIpAddress(String privateIpAddress)
The primary private IPv4 address of the network interface.
privateIpAddress
- The primary private IPv4 address of the network interface.public List<PrivateIpAddressSpecification> getPrivateIpAddresses()
One or more private IPv4 addresses.
public void setPrivateIpAddresses(Collection<PrivateIpAddressSpecification> privateIpAddresses)
One or more private IPv4 addresses.
privateIpAddresses
- One or more private IPv4 addresses.public LaunchTemplateInstanceNetworkInterfaceSpecificationRequest withPrivateIpAddresses(PrivateIpAddressSpecification... privateIpAddresses)
One or more private IPv4 addresses.
NOTE: This method appends the values to the existing list (if any). Use
setPrivateIpAddresses(java.util.Collection)
or withPrivateIpAddresses(java.util.Collection)
if
you want to override the existing values.
privateIpAddresses
- One or more private IPv4 addresses.public LaunchTemplateInstanceNetworkInterfaceSpecificationRequest withPrivateIpAddresses(Collection<PrivateIpAddressSpecification> privateIpAddresses)
One or more private IPv4 addresses.
privateIpAddresses
- One or more private IPv4 addresses.public void setSecondaryPrivateIpAddressCount(Integer secondaryPrivateIpAddressCount)
The number of secondary private IPv4 addresses to assign to a network interface.
secondaryPrivateIpAddressCount
- The number of secondary private IPv4 addresses to assign to a network interface.public Integer getSecondaryPrivateIpAddressCount()
The number of secondary private IPv4 addresses to assign to a network interface.
public LaunchTemplateInstanceNetworkInterfaceSpecificationRequest withSecondaryPrivateIpAddressCount(Integer secondaryPrivateIpAddressCount)
The number of secondary private IPv4 addresses to assign to a network interface.
secondaryPrivateIpAddressCount
- The number of secondary private IPv4 addresses to assign to a network interface.public void setSubnetId(String subnetId)
The ID of the subnet for the network interface.
subnetId
- The ID of the subnet for the network interface.public String getSubnetId()
The ID of the subnet for the network interface.
public LaunchTemplateInstanceNetworkInterfaceSpecificationRequest withSubnetId(String subnetId)
The ID of the subnet for the network interface.
subnetId
- The ID of the subnet for the network interface.public void setNetworkCardIndex(Integer 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.
networkCardIndex
- The index of the network card. Some instance types support multiple network cards. The primary network
interface must be assigned to network card index 0. The default is network card index 0.public Integer getNetworkCardIndex()
The index of the network card. Some instance types support multiple network cards. The primary network interface must be assigned to network card index 0. The default is network card index 0.
public LaunchTemplateInstanceNetworkInterfaceSpecificationRequest withNetworkCardIndex(Integer 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.
networkCardIndex
- The index of the network card. Some instance types support multiple network cards. The primary network
interface must be assigned to network card index 0. The default is network card index 0.public List<Ipv4PrefixSpecificationRequest> getIpv4Prefixes()
One or more IPv4 prefixes to be assigned to the network interface. You cannot use this option if you use the
Ipv4PrefixCount
option.
Ipv4PrefixCount
option.public void setIpv4Prefixes(Collection<Ipv4PrefixSpecificationRequest> ipv4Prefixes)
One or more IPv4 prefixes to be assigned to the network interface. You cannot use this option if you use the
Ipv4PrefixCount
option.
ipv4Prefixes
- One or more IPv4 prefixes to be assigned to the network interface. You cannot use this option if you use
the Ipv4PrefixCount
option.public LaunchTemplateInstanceNetworkInterfaceSpecificationRequest withIpv4Prefixes(Ipv4PrefixSpecificationRequest... ipv4Prefixes)
One or more IPv4 prefixes to be assigned to the network interface. You cannot use this option if you use the
Ipv4PrefixCount
option.
NOTE: This method appends the values to the existing list (if any). Use
setIpv4Prefixes(java.util.Collection)
or withIpv4Prefixes(java.util.Collection)
if you want to
override the existing values.
ipv4Prefixes
- One or more IPv4 prefixes to be assigned to the network interface. You cannot use this option if you use
the Ipv4PrefixCount
option.public LaunchTemplateInstanceNetworkInterfaceSpecificationRequest withIpv4Prefixes(Collection<Ipv4PrefixSpecificationRequest> ipv4Prefixes)
One or more IPv4 prefixes to be assigned to the network interface. You cannot use this option if you use the
Ipv4PrefixCount
option.
ipv4Prefixes
- One or more IPv4 prefixes to be assigned to the network interface. You cannot use this option if you use
the Ipv4PrefixCount
option.public void setIpv4PrefixCount(Integer ipv4PrefixCount)
The number of IPv4 prefixes to be automatically assigned to the network interface. You cannot use this option if
you use the Ipv4Prefix
option.
ipv4PrefixCount
- The number of IPv4 prefixes to be automatically assigned to the network interface. You cannot use this
option if you use the Ipv4Prefix
option.public Integer getIpv4PrefixCount()
The number of IPv4 prefixes to be automatically assigned to the network interface. You cannot use this option if
you use the Ipv4Prefix
option.
Ipv4Prefix
option.public LaunchTemplateInstanceNetworkInterfaceSpecificationRequest withIpv4PrefixCount(Integer ipv4PrefixCount)
The number of IPv4 prefixes to be automatically assigned to the network interface. You cannot use this option if
you use the Ipv4Prefix
option.
ipv4PrefixCount
- The number of IPv4 prefixes to be automatically assigned to the network interface. You cannot use this
option if you use the Ipv4Prefix
option.public List<Ipv6PrefixSpecificationRequest> getIpv6Prefixes()
One or more IPv6 prefixes to be assigned to the network interface. You cannot use this option if you use the
Ipv6PrefixCount
option.
Ipv6PrefixCount
option.public void setIpv6Prefixes(Collection<Ipv6PrefixSpecificationRequest> ipv6Prefixes)
One or more IPv6 prefixes to be assigned to the network interface. You cannot use this option if you use the
Ipv6PrefixCount
option.
ipv6Prefixes
- One or more IPv6 prefixes to be assigned to the network interface. You cannot use this option if you use
the Ipv6PrefixCount
option.public LaunchTemplateInstanceNetworkInterfaceSpecificationRequest withIpv6Prefixes(Ipv6PrefixSpecificationRequest... ipv6Prefixes)
One or more IPv6 prefixes to be assigned to the network interface. You cannot use this option if you use the
Ipv6PrefixCount
option.
NOTE: This method appends the values to the existing list (if any). Use
setIpv6Prefixes(java.util.Collection)
or withIpv6Prefixes(java.util.Collection)
if you want to
override the existing values.
ipv6Prefixes
- One or more IPv6 prefixes to be assigned to the network interface. You cannot use this option if you use
the Ipv6PrefixCount
option.public LaunchTemplateInstanceNetworkInterfaceSpecificationRequest withIpv6Prefixes(Collection<Ipv6PrefixSpecificationRequest> ipv6Prefixes)
One or more IPv6 prefixes to be assigned to the network interface. You cannot use this option if you use the
Ipv6PrefixCount
option.
ipv6Prefixes
- One or more IPv6 prefixes to be assigned to the network interface. You cannot use this option if you use
the Ipv6PrefixCount
option.public void setIpv6PrefixCount(Integer ipv6PrefixCount)
The number of IPv6 prefixes to be automatically assigned to the network interface. You cannot use this option if
you use the Ipv6Prefix
option.
ipv6PrefixCount
- The number of IPv6 prefixes to be automatically assigned to the network interface. You cannot use this
option if you use the Ipv6Prefix
option.public Integer getIpv6PrefixCount()
The number of IPv6 prefixes to be automatically assigned to the network interface. You cannot use this option if
you use the Ipv6Prefix
option.
Ipv6Prefix
option.public LaunchTemplateInstanceNetworkInterfaceSpecificationRequest withIpv6PrefixCount(Integer ipv6PrefixCount)
The number of IPv6 prefixes to be automatically assigned to the network interface. You cannot use this option if
you use the Ipv6Prefix
option.
ipv6PrefixCount
- The number of IPv6 prefixes to be automatically assigned to the network interface. You cannot use this
option if you use the Ipv6Prefix
option.public void setPrimaryIpv6(Boolean primaryIpv6)
The primary IPv6 address of the network interface. When you enable an IPv6 GUA address to be a primary IPv6, the first IPv6 GUA will be made the primary IPv6 address until the instance is terminated or the network interface is detached. For more information about primary IPv6 addresses, see RunInstances.
primaryIpv6
- The primary IPv6 address of the network interface. When you enable an IPv6 GUA address to be a primary
IPv6, the first IPv6 GUA will be made the primary IPv6 address until the instance is terminated or the
network interface is detached. For more information about primary IPv6 addresses, see RunInstances.public Boolean getPrimaryIpv6()
The primary IPv6 address of the network interface. When you enable an IPv6 GUA address to be a primary IPv6, the first IPv6 GUA will be made the primary IPv6 address until the instance is terminated or the network interface is detached. For more information about primary IPv6 addresses, see RunInstances.
public LaunchTemplateInstanceNetworkInterfaceSpecificationRequest withPrimaryIpv6(Boolean primaryIpv6)
The primary IPv6 address of the network interface. When you enable an IPv6 GUA address to be a primary IPv6, the first IPv6 GUA will be made the primary IPv6 address until the instance is terminated or the network interface is detached. For more information about primary IPv6 addresses, see RunInstances.
primaryIpv6
- The primary IPv6 address of the network interface. When you enable an IPv6 GUA address to be a primary
IPv6, the first IPv6 GUA will be made the primary IPv6 address until the instance is terminated or the
network interface is detached. For more information about primary IPv6 addresses, see RunInstances.public Boolean isPrimaryIpv6()
The primary IPv6 address of the network interface. When you enable an IPv6 GUA address to be a primary IPv6, the first IPv6 GUA will be made the primary IPv6 address until the instance is terminated or the network interface is detached. For more information about primary IPv6 addresses, see RunInstances.
public void setEnaSrdSpecification(EnaSrdSpecificationRequest enaSrdSpecification)
Configure ENA Express settings for your launch template.
enaSrdSpecification
- Configure ENA Express settings for your launch template.public EnaSrdSpecificationRequest getEnaSrdSpecification()
Configure ENA Express settings for your launch template.
public LaunchTemplateInstanceNetworkInterfaceSpecificationRequest withEnaSrdSpecification(EnaSrdSpecificationRequest enaSrdSpecification)
Configure ENA Express settings for your launch template.
enaSrdSpecification
- Configure ENA Express settings for your launch template.public void setConnectionTrackingSpecification(ConnectionTrackingSpecificationRequest connectionTrackingSpecification)
A security group connection tracking specification that enables you to set the timeout for connection tracking on an Elastic network interface. For more information, see Idle connection tracking timeout in the Amazon EC2 User Guide.
connectionTrackingSpecification
- A security group connection tracking specification that enables you to set the timeout for connection
tracking on an Elastic network interface. For more information, see Idle connection tracking timeout in the Amazon EC2 User Guide.public ConnectionTrackingSpecificationRequest getConnectionTrackingSpecification()
A security group connection tracking specification that enables you to set the timeout for connection tracking on an Elastic network interface. For more information, see Idle connection tracking timeout in the Amazon EC2 User Guide.
public LaunchTemplateInstanceNetworkInterfaceSpecificationRequest withConnectionTrackingSpecification(ConnectionTrackingSpecificationRequest connectionTrackingSpecification)
A security group connection tracking specification that enables you to set the timeout for connection tracking on an Elastic network interface. For more information, see Idle connection tracking timeout in the Amazon EC2 User Guide.
connectionTrackingSpecification
- A security group connection tracking specification that enables you to set the timeout for connection
tracking on an Elastic network interface. For more information, see Idle connection tracking timeout in the Amazon EC2 User Guide.public String toString()
toString
in class Object
Object.toString()
public LaunchTemplateInstanceNetworkInterfaceSpecificationRequest clone()