@Generated(value="software.amazon.awssdk:codegen") public final class LaunchTemplateInstanceNetworkInterfaceSpecificationRequest extends Object implements SdkPojo, Serializable, ToCopyableBuilder<LaunchTemplateInstanceNetworkInterfaceSpecificationRequest.Builder,LaunchTemplateInstanceNetworkInterfaceSpecificationRequest>
The parameters for a network interface.
| Modifier and Type | Class and Description |
|---|---|
static interface |
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
associateCarrierIpAddress()
Associates 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 LaunchTemplateInstanceNetworkInterfaceSpecificationRequest.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()
Returns true if the Groups property was specified by the sender (it may be empty), or false if the sender did not
specify the value (it will be empty).
|
int |
hashCode() |
boolean |
hasIpv4Prefixes()
Returns true if the Ipv4Prefixes property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
boolean |
hasIpv6Addresses()
Returns true if the Ipv6Addresses property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
boolean |
hasIpv6Prefixes()
Returns true if the Ipv6Prefixes property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
boolean |
hasPrivateIpAddresses()
Returns true if the PrivateIpAddresses property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
String |
interfaceType()
The type of network interface.
|
Integer |
ipv4PrefixCount()
The number of IPv4 delegated prefixes to be automatically assigned to the network interface.
|
List<Ipv4PrefixSpecificationRequest> |
ipv4Prefixes()
One or more IPv4 delegated prefixes to be assigned to the network interface.
|
Integer |
ipv6AddressCount()
The number of IPv6 addresses to assign to a network interface.
|
List<InstanceIpv6AddressRequest> |
ipv6Addresses()
One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet.
|
Integer |
ipv6PrefixCount()
The number of IPv6 delegated prefixes to be automatically assigned to the network interface.
|
List<Ipv6PrefixSpecificationRequest> |
ipv6Prefixes()
One or more IPv6 delegated 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<PrivateIpAddressSpecification> |
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 LaunchTemplateInstanceNetworkInterfaceSpecificationRequest.Builder> |
serializableBuilderClass() |
String |
subnetId()
The ID of the subnet for the network interface.
|
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final 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.
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 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()
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.
You can use hasGroups() to see if a value was sent in this field.
public final 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 Elastic Compute Cloud 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 Elastic Compute Cloud User Guide.
If you are not creating an EFA, specify interface or omit this parameter.
Valid values: interface | efa
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 specifying specific IPv6 addresses.
public final boolean hasIpv6Addresses()
public final List<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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasIpv6Addresses() to see if a value was sent in this field.
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()
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.
You can use hasPrivateIpAddresses() to see if a value was sent in this field.
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 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.
public final boolean hasIpv4Prefixes()
public final List<Ipv4PrefixSpecificationRequest> ipv4Prefixes()
One or more IPv4 delegated 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.
You can use hasIpv4Prefixes() to see if a value was sent in this field.
Ipv4PrefixCount option.public final Integer ipv4PrefixCount()
The number of IPv4 delegated prefixes to be automatically assigned to the network interface. You cannot use this
option if you use the Ipv4Prefix option.
Ipv4Prefix option.public final boolean hasIpv6Prefixes()
public final List<Ipv6PrefixSpecificationRequest> ipv6Prefixes()
One or more IPv6 delegated 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.
You can use hasIpv6Prefixes() to see if a value was sent in this field.
Ipv6PrefixCount option.public final Integer ipv6PrefixCount()
The number of IPv6 delegated prefixes to be automatically assigned to the network interface. You cannot use this
option if you use the Ipv6Prefix option.
Ipv6Prefix option.public LaunchTemplateInstanceNetworkInterfaceSpecificationRequest.Builder toBuilder()
public static LaunchTemplateInstanceNetworkInterfaceSpecificationRequest.Builder builder()
public static Class<? extends LaunchTemplateInstanceNetworkInterfaceSpecificationRequest.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.