Class LaunchTemplateInstanceNetworkInterfaceSpecification
- java.lang.Object
-
- software.amazon.awssdk.services.ec2.model.LaunchTemplateInstanceNetworkInterfaceSpecification
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<LaunchTemplateInstanceNetworkInterfaceSpecification.Builder,LaunchTemplateInstanceNetworkInterfaceSpecification>
@Generated("software.amazon.awssdk:codegen") public final class LaunchTemplateInstanceNetworkInterfaceSpecification extends Object implements SdkPojo, Serializable, ToCopyableBuilder<LaunchTemplateInstanceNetworkInterfaceSpecification.Builder,LaunchTemplateInstanceNetworkInterfaceSpecification>
Describes a network interface.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
LaunchTemplateInstanceNetworkInterfaceSpecification.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Boolean
associateCarrierIpAddress()
Indicates whether to associate a Carrier IP address with eth0 for a new network interface.Boolean
associatePublicIpAddress()
Indicates whether to associate a public IPv4 address with eth0 for a new network interface.static LaunchTemplateInstanceNetworkInterfaceSpecification.Builder
builder()
ConnectionTrackingSpecification
connectionTrackingSpecification()
A security group connection tracking specification that enables you to set the timeout for connection tracking on an Elastic network interface.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.LaunchTemplateEnaSrdSpecification
enaSrdSpecification()
Contains the ENA Express settings for instances launched from your launch template.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 that Amazon Web Services automatically assigned to the network interface.List<Ipv4PrefixSpecificationResponse>
ipv4Prefixes()
One or more IPv4 prefixes assigned to the network interface.Integer
ipv6AddressCount()
The number of IPv6 addresses for the network interface.List<InstanceIpv6Address>
ipv6Addresses()
The IPv6 addresses for the network interface.Integer
ipv6PrefixCount()
The number of IPv6 prefixes that Amazon Web Services automatically assigned to the network interface.List<Ipv6PrefixSpecificationResponse>
ipv6Prefixes()
One or more IPv6 prefixes assigned to the network interface.Integer
networkCardIndex()
The index of the network card.String
networkInterfaceId()
The ID of the network interface.Boolean
primaryIpv6()
The primary IPv6 address of the network interface.String
privateIpAddress()
The primary private IPv4 address of the network interface.List<PrivateIpAddressSpecification>
privateIpAddresses()
One or more private IPv4 addresses.List<SdkField<?>>
sdkFields()
Integer
secondaryPrivateIpAddressCount()
The number of secondary private IPv4 addresses for the network interface.static Class<? extends LaunchTemplateInstanceNetworkInterfaceSpecification.Builder>
serializableBuilderClass()
String
subnetId()
The ID of the subnet for the network interface.LaunchTemplateInstanceNetworkInterfaceSpecification.Builder
toBuilder()
String
toString()
Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
associateCarrierIpAddress
public final Boolean associateCarrierIpAddress()
Indicates whether to associate a Carrier IP address with eth0 for a new network interface.
Use this option when you launch an instance in a Wavelength Zone and want to associate a Carrier IP address with the network interface. For more information about Carrier IP addresses, see Carrier IP addresses in the Wavelength Developer Guide.
- Returns:
- Indicates whether to associate a Carrier IP address with eth0 for a new network interface.
Use this option when you launch an instance in a Wavelength Zone and want to associate a Carrier IP address with the network interface. For more information about Carrier IP addresses, see Carrier IP addresses in the Wavelength Developer Guide.
-
associatePublicIpAddress
public final Boolean associatePublicIpAddress()
Indicates whether to associate 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.
- Returns:
- Indicates whether to associate 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.
-
deleteOnTermination
public final Boolean 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
public final String description()
A description for the network interface.
- Returns:
- A description for the network interface.
-
deviceIndex
public final Integer 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
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.- Returns:
- The IDs of one or more security groups.
-
interfaceType
public final String interfaceType()
The type of network interface.
- Returns:
- The type of network interface.
-
ipv6AddressCount
public final Integer ipv6AddressCount()
The number of IPv6 addresses for the network interface.
- Returns:
- The number of IPv6 addresses for the network interface.
-
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
public final List<InstanceIpv6Address> ipv6Addresses()
The IPv6 addresses for the network interface.
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:
- The IPv6 addresses for the network interface.
-
networkInterfaceId
public final String networkInterfaceId()
The ID of the network interface.
- Returns:
- The ID of the network interface.
-
privateIpAddress
public final String 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<PrivateIpAddressSpecification> 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
public final Integer secondaryPrivateIpAddressCount()
The number of secondary private IPv4 addresses for the network interface.
- Returns:
- The number of secondary private IPv4 addresses for the network interface.
-
subnetId
public final String subnetId()
The ID of the subnet for the network interface.
- Returns:
- The ID of the subnet for the network interface.
-
networkCardIndex
public final Integer networkCardIndex()
The index of the network card.
- Returns:
- The index of the network card.
-
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
public final List<Ipv4PrefixSpecificationResponse> ipv4Prefixes()
One or more IPv4 prefixes assigned to the network interface.
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 assigned to the network interface.
-
ipv4PrefixCount
public final Integer ipv4PrefixCount()
The number of IPv4 prefixes that Amazon Web Services automatically assigned to the network interface.
- Returns:
- The number of IPv4 prefixes that Amazon Web Services automatically assigned to the network interface.
-
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
public final List<Ipv6PrefixSpecificationResponse> ipv6Prefixes()
One or more IPv6 prefixes assigned to the network interface.
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 assigned to the network interface.
-
ipv6PrefixCount
public final Integer ipv6PrefixCount()
The number of IPv6 prefixes that Amazon Web Services automatically assigned to the network interface.
- Returns:
- The number of IPv6 prefixes that Amazon Web Services automatically assigned to the network interface.
-
primaryIpv6
public final 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.
- Returns:
- 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.
-
enaSrdSpecification
public final LaunchTemplateEnaSrdSpecification enaSrdSpecification()
Contains the ENA Express settings for instances launched from your launch template.
- Returns:
- Contains the ENA Express settings for instances launched from your launch template.
-
connectionTrackingSpecification
public final ConnectionTrackingSpecification 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.
- Returns:
- 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.
-
toBuilder
public LaunchTemplateInstanceNetworkInterfaceSpecification.Builder toBuilder()
-
builder
public static LaunchTemplateInstanceNetworkInterfaceSpecification.Builder builder()
-
serializableBuilderClass
public static Class<? extends LaunchTemplateInstanceNetworkInterfaceSpecification.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in interfaceSdkPojo
-
toString
public final String 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.
-
-