@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails extends Object implements Serializable, Cloneable, StructuredPojo
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.
Constructor and Description |
---|
AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails() |
Modifier and Type | Method and Description |
---|---|
AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails |
clone() |
boolean |
equals(Object obj) |
Boolean |
getAssociateCarrierIpAddress()
Indicates whether to associate 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.
|
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.
|
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<AwsEc2LaunchTemplateDataNetworkInterfaceSetIpv4PrefixesDetails> |
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<AwsEc2LaunchTemplateDataNetworkInterfaceSetIpv6AddressesDetails> |
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<AwsEc2LaunchTemplateDataNetworkInterfaceSetIpv6PrefixesDetails> |
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.
|
String |
getPrivateIpAddress()
The primary private IPv4 address of the network interface.
|
List<AwsEc2LaunchTemplateDataNetworkInterfaceSetPrivateIpAddressesDetails> |
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()
Indicates whether to associate 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.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAssociateCarrierIpAddress(Boolean associateCarrierIpAddress)
Indicates whether to associate 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 |
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 |
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<AwsEc2LaunchTemplateDataNetworkInterfaceSetIpv4PrefixesDetails> 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<AwsEc2LaunchTemplateDataNetworkInterfaceSetIpv6AddressesDetails> 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<AwsEc2LaunchTemplateDataNetworkInterfaceSetIpv6PrefixesDetails> 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 |
setPrivateIpAddress(String privateIpAddress)
The primary private IPv4 address of the network interface.
|
void |
setPrivateIpAddresses(Collection<AwsEc2LaunchTemplateDataNetworkInterfaceSetPrivateIpAddressesDetails> 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.
|
AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails |
withAssociateCarrierIpAddress(Boolean associateCarrierIpAddress)
Indicates whether to associate a Carrier IP address with eth0 for a new network interface.
|
AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails |
withAssociatePublicIpAddress(Boolean associatePublicIpAddress)
Associates a public IPv4 address with eth0 for a new network interface.
|
AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails |
withDeleteOnTermination(Boolean deleteOnTermination)
Indicates whether the network interface is deleted when the instance is terminated.
|
AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails |
withDescription(String description)
A description for the network interface.
|
AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails |
withDeviceIndex(Integer deviceIndex)
The device index for the network interface attachment.
|
AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails |
withGroups(Collection<String> groups)
The IDs of one or more security groups.
|
AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails |
withGroups(String... groups)
The IDs of one or more security groups.
|
AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails |
withInterfaceType(String interfaceType)
The type of network interface.
|
AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails |
withIpv4PrefixCount(Integer ipv4PrefixCount)
The number of IPv4 prefixes to be automatically assigned to the network interface.
|
AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails |
withIpv4Prefixes(AwsEc2LaunchTemplateDataNetworkInterfaceSetIpv4PrefixesDetails... ipv4Prefixes)
One or more IPv4 prefixes to be assigned to the network interface.
|
AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails |
withIpv4Prefixes(Collection<AwsEc2LaunchTemplateDataNetworkInterfaceSetIpv4PrefixesDetails> ipv4Prefixes)
One or more IPv4 prefixes to be assigned to the network interface.
|
AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails |
withIpv6AddressCount(Integer ipv6AddressCount)
The number of IPv6 addresses to assign to a network interface.
|
AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails |
withIpv6Addresses(AwsEc2LaunchTemplateDataNetworkInterfaceSetIpv6AddressesDetails... ipv6Addresses)
One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet.
|
AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails |
withIpv6Addresses(Collection<AwsEc2LaunchTemplateDataNetworkInterfaceSetIpv6AddressesDetails> ipv6Addresses)
One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet.
|
AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails |
withIpv6PrefixCount(Integer ipv6PrefixCount)
The number of IPv6 prefixes to be automatically assigned to the network interface.
|
AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails |
withIpv6Prefixes(AwsEc2LaunchTemplateDataNetworkInterfaceSetIpv6PrefixesDetails... ipv6Prefixes)
One or more IPv6 prefixes to be assigned to the network interface.
|
AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails |
withIpv6Prefixes(Collection<AwsEc2LaunchTemplateDataNetworkInterfaceSetIpv6PrefixesDetails> ipv6Prefixes)
One or more IPv6 prefixes to be assigned to the network interface.
|
AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails |
withNetworkCardIndex(Integer networkCardIndex)
The index of the network card.
|
AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails |
withNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface.
|
AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails |
withPrivateIpAddress(String privateIpAddress)
The primary private IPv4 address of the network interface.
|
AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails |
withPrivateIpAddresses(AwsEc2LaunchTemplateDataNetworkInterfaceSetPrivateIpAddressesDetails... privateIpAddresses)
One or more private IPv4 addresses.
|
AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails |
withPrivateIpAddresses(Collection<AwsEc2LaunchTemplateDataNetworkInterfaceSetPrivateIpAddressesDetails> privateIpAddresses)
One or more private IPv4 addresses.
|
AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails |
withSecondaryPrivateIpAddressCount(Integer secondaryPrivateIpAddressCount)
The number of secondary private IPv4 addresses to assign to a network interface.
|
AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails |
withSubnetId(String subnetId)
The ID of the subnet for the network interface.
|
public AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails()
public void setAssociateCarrierIpAddress(Boolean 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.
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.public Boolean getAssociateCarrierIpAddress()
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.
public AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails withAssociateCarrierIpAddress(Boolean 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.
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.public Boolean isAssociateCarrierIpAddress()
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.
public void setAssociatePublicIpAddress(Boolean associatePublicIpAddress)
Associates a public IPv4 address with eth0 for a new network interface.
associatePublicIpAddress
- Associates a public IPv4 address with eth0 for a new network interface.public Boolean getAssociatePublicIpAddress()
Associates a public IPv4 address with eth0 for a new network interface.
public AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails withAssociatePublicIpAddress(Boolean associatePublicIpAddress)
Associates a public IPv4 address with eth0 for a new network interface.
associatePublicIpAddress
- Associates a public IPv4 address with eth0 for a new network interface.public Boolean isAssociatePublicIpAddress()
Associates a public IPv4 address with eth0 for a new network interface.
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 AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails 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 AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails 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.
deviceIndex
- The device index for the network interface attachment.public Integer getDeviceIndex()
The device index for the network interface attachment.
public AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails withDeviceIndex(Integer deviceIndex)
The device index for the network interface attachment.
deviceIndex
- The device index for the network interface attachment.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 AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails 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 AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails 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.
interfaceType
- The type of network interface.public String getInterfaceType()
The type of network interface.
public AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails withInterfaceType(String interfaceType)
The type of network interface.
interfaceType
- The type of network interface.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 Ipv4Prefixes
option.
ipv4PrefixCount
- The number of IPv4 prefixes to be automatically assigned to the network interface. You cannot use this
option if you use the Ipv4Prefixes
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 Ipv4Prefixes
option.
Ipv4Prefixes
option.public AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails 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 Ipv4Prefixes
option.
ipv4PrefixCount
- The number of IPv4 prefixes to be automatically assigned to the network interface. You cannot use this
option if you use the Ipv4Prefixes
option.public List<AwsEc2LaunchTemplateDataNetworkInterfaceSetIpv4PrefixesDetails> 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<AwsEc2LaunchTemplateDataNetworkInterfaceSetIpv4PrefixesDetails> 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 AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails withIpv4Prefixes(AwsEc2LaunchTemplateDataNetworkInterfaceSetIpv4PrefixesDetails... 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 AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails withIpv4Prefixes(Collection<AwsEc2LaunchTemplateDataNetworkInterfaceSetIpv4PrefixesDetails> 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 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 you use Ipv6Addresses
.
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 you use Ipv6Addresses
.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 you use Ipv6Addresses
.
Ipv6Addresses
.public AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails 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 you use Ipv6Addresses
.
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 you use Ipv6Addresses
.public List<AwsEc2LaunchTemplateDataNetworkInterfaceSetIpv6AddressesDetails> getIpv6Addresses()
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
.
Ipv6AddressCount
.public void setIpv6Addresses(Collection<AwsEc2LaunchTemplateDataNetworkInterfaceSetIpv6AddressesDetails> 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
.
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
.public AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails withIpv6Addresses(AwsEc2LaunchTemplateDataNetworkInterfaceSetIpv6AddressesDetails... 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
.
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 use Ipv6AddressCount
.public AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails withIpv6Addresses(Collection<AwsEc2LaunchTemplateDataNetworkInterfaceSetIpv6AddressesDetails> 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
.
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
.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 AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails 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 List<AwsEc2LaunchTemplateDataNetworkInterfaceSetIpv6PrefixesDetails> 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<AwsEc2LaunchTemplateDataNetworkInterfaceSetIpv6PrefixesDetails> 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 AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails withIpv6Prefixes(AwsEc2LaunchTemplateDataNetworkInterfaceSetIpv6PrefixesDetails... 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 AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails withIpv6Prefixes(Collection<AwsEc2LaunchTemplateDataNetworkInterfaceSetIpv6PrefixesDetails> 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 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
.
0
. The default is network card index
0
.public AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails 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 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 AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails 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 AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails withPrivateIpAddress(String privateIpAddress)
The primary private IPv4 address of the network interface.
privateIpAddress
- The primary private IPv4 address of the network interface.public List<AwsEc2LaunchTemplateDataNetworkInterfaceSetPrivateIpAddressesDetails> getPrivateIpAddresses()
One or more private IPv4 addresses.
public void setPrivateIpAddresses(Collection<AwsEc2LaunchTemplateDataNetworkInterfaceSetPrivateIpAddressesDetails> privateIpAddresses)
One or more private IPv4 addresses.
privateIpAddresses
- One or more private IPv4 addresses.public AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails withPrivateIpAddresses(AwsEc2LaunchTemplateDataNetworkInterfaceSetPrivateIpAddressesDetails... 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 AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails withPrivateIpAddresses(Collection<AwsEc2LaunchTemplateDataNetworkInterfaceSetPrivateIpAddressesDetails> 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 AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails 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 AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails withSubnetId(String subnetId)
The ID of the subnet for the network interface.
subnetId
- The ID of the subnet for the network interface.public String toString()
toString
in class Object
Object.toString()
public AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.