Class AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails
- All Implemented Interfaces:
Serializable
,SdkPojo
,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.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
-
Method Summary
Modifier and TypeMethodDescriptionfinal Boolean
Indicates whether to associate a Carrier IP address with eth0 for a new network interface.final Boolean
Associates a public IPv4 address with eth0 for a new network interface.builder()
final Boolean
Indicates whether the network interface is deleted when the instance is terminated.final String
A description for the network interface.final Integer
The device index for the network interface attachment.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) groups()
The IDs of one or more security groups.final boolean
For responses, this returns true if the service returned a value for the Groups property.final int
hashCode()
final boolean
For responses, this returns true if the service returned a value for the Ipv4Prefixes property.final boolean
For responses, this returns true if the service returned a value for the Ipv6Addresses property.final boolean
For responses, this returns true if the service returned a value for the Ipv6Prefixes property.final boolean
For responses, this returns true if the service returned a value for the PrivateIpAddresses property.final String
The type of network interface.final Integer
The number of IPv4 prefixes to be automatically assigned to the network interface.One or more IPv4 prefixes to be assigned to the network interface.final Integer
The number of IPv6 addresses to assign to a network interface.One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet.final Integer
The number of IPv6 prefixes to be automatically assigned to the network interface.One or more IPv6 prefixes to be assigned to the network interface.final Integer
The index of the network card.final String
The ID of the network interface.final String
The primary private IPv4 address of the network interface.One or more private IPv4 addresses.final Integer
The number of secondary private IPv4 addresses to assign to a network interface.static Class
<? extends AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails.Builder> final String
subnetId()
The ID of the subnet for the network interface.Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
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.
- Returns:
- 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.
-
associatePublicIpAddress
Associates a public IPv4 address with eth0 for a new network interface.
- Returns:
- Associates a public IPv4 address with eth0 for a new network interface.
-
deleteOnTermination
Indicates whether the network interface is deleted when the instance is terminated.
- Returns:
- Indicates whether the network interface is deleted when the instance is terminated.
-
description
A description for the network interface.
- Returns:
- A description for the network interface.
-
deviceIndex
The device index for the network interface attachment.
- Returns:
- The device index for the network interface attachment.
-
hasGroups
public final boolean hasGroups()For responses, this returns true if the service returned a value for the Groups property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
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. -
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.- Returns:
- The IDs of one or more security groups.
-
interfaceType
The type of network interface.
- Returns:
- The type of network interface.
-
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.- Returns:
- The number of IPv4 prefixes to be automatically assigned to the network interface. You cannot use this
option if you use the
Ipv4Prefixes
option.
-
hasIpv4Prefixes
public final boolean hasIpv4Prefixes()For responses, this returns true if the service returned a value for the Ipv4Prefixes property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
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. -
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.- Returns:
- One or more IPv4 prefixes to be assigned to the network interface. You cannot use this option if you use
the
Ipv4PrefixCount
option.
-
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
.- Returns:
- 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
.
-
hasIpv6Addresses
public final boolean hasIpv6Addresses()For responses, this returns true if the service returned a value for the Ipv6Addresses property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
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. -
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.- Returns:
- 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
.
-
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.- Returns:
- The number of IPv6 prefixes to be automatically assigned to the network interface. You cannot use this
option if you use the
Ipv6Prefix
option.
-
hasIpv6Prefixes
public final boolean hasIpv6Prefixes()For responses, this returns true if the service returned a value for the Ipv6Prefixes property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
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. -
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.- Returns:
- One or more IPv6 prefixes to be assigned to the network interface. You cannot use this option if you use
the
Ipv6PrefixCount
option.
-
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 index0
.- Returns:
- 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 index0
.
-
networkInterfaceId
The ID of the network interface.
- Returns:
- The ID of the network interface.
-
privateIpAddress
The primary private IPv4 address of the network interface.
- Returns:
- The primary private IPv4 address of the network interface.
-
hasPrivateIpAddresses
public final boolean hasPrivateIpAddresses()For responses, this returns true if the service returned a value for the PrivateIpAddresses property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
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. -
privateIpAddresses
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.- Returns:
- One or more private IPv4 addresses.
-
secondaryPrivateIpAddressCount
The number of secondary private IPv4 addresses to assign to a network interface.
- Returns:
- The number of secondary private IPv4 addresses to assign to a network interface.
-
subnetId
The ID of the subnet for the network interface.
- Returns:
- The ID of the subnet for the network interface.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails.Builder,
AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
public static Class<? extends AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails.Builder> serializableBuilderClass() -
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-