@Generated(value="software.amazon.awssdk:codegen") public final class AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails.Builder,AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails>
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.
| Modifier and Type | Class and Description |
|---|---|
static interface |
AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails.Builder |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
associateCarrierIpAddress()
Indicates whether to associate a Carrier IP address with eth0 for a new network interface.
|
Boolean |
associatePublicIpAddress()
Associates a public IPv4 address with eth0 for a new network interface.
|
static AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails.Builder |
builder() |
Boolean |
deleteOnTermination()
Indicates whether the network interface is deleted when the instance is terminated.
|
String |
description()
A description for the network interface.
|
Integer |
deviceIndex()
The device index for the network interface attachment.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
List<String> |
groups()
The IDs of one or more security groups.
|
boolean |
hasGroups()
For responses, this returns true if the service returned a value for the Groups property.
|
int |
hashCode() |
boolean |
hasIpv4Prefixes()
For responses, this returns true if the service returned a value for the Ipv4Prefixes property.
|
boolean |
hasIpv6Addresses()
For responses, this returns true if the service returned a value for the Ipv6Addresses property.
|
boolean |
hasIpv6Prefixes()
For responses, this returns true if the service returned a value for the Ipv6Prefixes property.
|
boolean |
hasPrivateIpAddresses()
For responses, this returns true if the service returned a value for the PrivateIpAddresses property.
|
String |
interfaceType()
The type of network interface.
|
Integer |
ipv4PrefixCount()
The number of IPv4 prefixes to be automatically assigned to the network interface.
|
List<AwsEc2LaunchTemplateDataNetworkInterfaceSetIpv4PrefixesDetails> |
ipv4Prefixes()
One or more IPv4 prefixes to be assigned to the network interface.
|
Integer |
ipv6AddressCount()
The number of IPv6 addresses to assign to a network interface.
|
List<AwsEc2LaunchTemplateDataNetworkInterfaceSetIpv6AddressesDetails> |
ipv6Addresses()
One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet.
|
Integer |
ipv6PrefixCount()
The number of IPv6 prefixes to be automatically assigned to the network interface.
|
List<AwsEc2LaunchTemplateDataNetworkInterfaceSetIpv6PrefixesDetails> |
ipv6Prefixes()
One or more IPv6 prefixes to be assigned to the network interface.
|
Integer |
networkCardIndex()
The index of the network card.
|
String |
networkInterfaceId()
The ID of the network interface.
|
String |
privateIpAddress()
The primary private IPv4 address of the network interface.
|
List<AwsEc2LaunchTemplateDataNetworkInterfaceSetPrivateIpAddressesDetails> |
privateIpAddresses()
One or more private IPv4 addresses.
|
List<SdkField<?>> |
sdkFields() |
Integer |
secondaryPrivateIpAddressCount()
The number of secondary private IPv4 addresses to assign to a network interface.
|
static Class<? extends AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails.Builder> |
serializableBuilderClass() |
String |
subnetId()
The ID of the subnet for the network interface.
|
AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final 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.
public final Boolean associatePublicIpAddress()
Associates a public IPv4 address with eth0 for a new network interface.
public final Boolean deleteOnTermination()
Indicates whether the network interface is deleted when the instance is terminated.
public final String description()
A description for the network interface.
public final Integer deviceIndex()
The device index for the network interface attachment.
public final boolean hasGroups()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final List<String> groups()
The IDs of one or more security groups.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasGroups() method.
public final String interfaceType()
The type of network interface.
public final 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.
Ipv4Prefixes option.public final boolean hasIpv4Prefixes()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasIpv4Prefixes() method.
Ipv4PrefixCount option.public final 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.
Ipv6Addresses.public final boolean hasIpv6Addresses()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasIpv6Addresses() method.
Ipv6AddressCount.public final 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.
Ipv6Prefix option.public final boolean hasIpv6Prefixes()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasIpv6Prefixes() method.
Ipv6PrefixCount option.public final 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.
0. The default is network card index
0.public final String networkInterfaceId()
The ID of the network interface.
public final String privateIpAddress()
The primary private IPv4 address of the network interface.
public final boolean hasPrivateIpAddresses()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<AwsEc2LaunchTemplateDataNetworkInterfaceSetPrivateIpAddressesDetails> privateIpAddresses()
One or more private IPv4 addresses.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasPrivateIpAddresses() method.
public final Integer secondaryPrivateIpAddressCount()
The number of secondary private IPv4 addresses to assign to a network interface.
public final String subnetId()
The ID of the subnet for the network interface.
public AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails.Builder toBuilder()
public static AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails.Builder builder()
public static Class<? extends AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.