Interface LaunchTemplateInstanceNetworkInterfaceSpecificationRequest.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<LaunchTemplateInstanceNetworkInterfaceSpecificationRequest.Builder,LaunchTemplateInstanceNetworkInterfaceSpecificationRequest>
,SdkBuilder<LaunchTemplateInstanceNetworkInterfaceSpecificationRequest.Builder,LaunchTemplateInstanceNetworkInterfaceSpecificationRequest>
,SdkPojo
- Enclosing class:
- LaunchTemplateInstanceNetworkInterfaceSpecificationRequest
public static interface LaunchTemplateInstanceNetworkInterfaceSpecificationRequest.Builder extends SdkPojo, CopyableBuilder<LaunchTemplateInstanceNetworkInterfaceSpecificationRequest.Builder,LaunchTemplateInstanceNetworkInterfaceSpecificationRequest>
-
-
Method Summary
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
associateCarrierIpAddress
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest.Builder associateCarrierIpAddress(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.
- Parameters:
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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
associatePublicIpAddress
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest.Builder associatePublicIpAddress(Boolean associatePublicIpAddress)
Associates a public IPv4 address with eth0 for a new network interface.
Starting on February 1, 2024, Amazon Web Services will charge 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.
- Parameters:
associatePublicIpAddress
- Associates a public IPv4 address with eth0 for a new network interface.Starting on February 1, 2024, Amazon Web Services will charge 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:
- Returns a reference to this object so that method calls can be chained together.
-
deleteOnTermination
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest.Builder deleteOnTermination(Boolean deleteOnTermination)
Indicates whether the network interface is deleted when the instance is terminated.
- Parameters:
deleteOnTermination
- Indicates whether the network interface is deleted when the instance is terminated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest.Builder description(String description)
A description for the network interface.
- Parameters:
description
- A description for the network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deviceIndex
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest.Builder deviceIndex(Integer deviceIndex)
The device index for the network interface attachment.
- Parameters:
deviceIndex
- The device index for the network interface attachment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groups
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest.Builder groups(Collection<String> groups)
The IDs of one or more security groups.
- Parameters:
groups
- The IDs of one or more security groups.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groups
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest.Builder groups(String... groups)
The IDs of one or more security groups.
- Parameters:
groups
- The IDs of one or more security groups.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
interfaceType
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest.Builder interfaceType(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
- Parameters:
interfaceType
- The type of network interface. To create an Elastic Fabric Adapter (EFA), specifyefa
. 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
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipv6AddressCount
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest.Builder ipv6AddressCount(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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipv6Addresses
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest.Builder ipv6Addresses(Collection<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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipv6Addresses
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest.Builder ipv6Addresses(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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipv6Addresses
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest.Builder ipv6Addresses(Consumer<InstanceIpv6AddressRequest.Builder>... 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.
This is a convenience method that creates an instance of theInstanceIpv6AddressRequest.Builder
avoiding the need to create one manually viaInstanceIpv6AddressRequest.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#ipv6Addresses(List
.) - Parameters:
ipv6Addresses
- a consumer that will call methods onInstanceIpv6AddressRequest.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#ipv6Addresses(java.util.Collection
)
-
networkInterfaceId
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest.Builder networkInterfaceId(String networkInterfaceId)
The ID of the network interface.
- Parameters:
networkInterfaceId
- The ID of the network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
privateIpAddress
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest.Builder privateIpAddress(String privateIpAddress)
The primary private IPv4 address of the network interface.
- Parameters:
privateIpAddress
- The primary private IPv4 address of the network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
privateIpAddresses
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest.Builder privateIpAddresses(Collection<PrivateIpAddressSpecification> privateIpAddresses)
One or more private IPv4 addresses.
- Parameters:
privateIpAddresses
- One or more private IPv4 addresses.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
privateIpAddresses
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest.Builder privateIpAddresses(PrivateIpAddressSpecification... privateIpAddresses)
One or more private IPv4 addresses.
- Parameters:
privateIpAddresses
- One or more private IPv4 addresses.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
privateIpAddresses
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest.Builder privateIpAddresses(Consumer<PrivateIpAddressSpecification.Builder>... privateIpAddresses)
One or more private IPv4 addresses.
This is a convenience method that creates an instance of thePrivateIpAddressSpecification.Builder
avoiding the need to create one manually viaPrivateIpAddressSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#privateIpAddresses(List
.) - Parameters:
privateIpAddresses
- a consumer that will call methods onPrivateIpAddressSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#privateIpAddresses(java.util.Collection
)
-
secondaryPrivateIpAddressCount
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest.Builder secondaryPrivateIpAddressCount(Integer secondaryPrivateIpAddressCount)
The number of secondary private IPv4 addresses to assign to a network interface.
- Parameters:
secondaryPrivateIpAddressCount
- The number of secondary private IPv4 addresses to assign to a network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subnetId
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest.Builder subnetId(String subnetId)
The ID of the subnet for the network interface.
- Parameters:
subnetId
- The ID of the subnet for the network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkCardIndex
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest.Builder networkCardIndex(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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipv4Prefixes
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest.Builder ipv4Prefixes(Collection<Ipv4PrefixSpecificationRequest> ipv4Prefixes)
One or more IPv4 prefixes to be assigned to the network interface. You cannot use this option if you use the
Ipv4PrefixCount
option.- Parameters:
ipv4Prefixes
- One or more IPv4 prefixes to be assigned to the network interface. You cannot use this option if you use theIpv4PrefixCount
option.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipv4Prefixes
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest.Builder ipv4Prefixes(Ipv4PrefixSpecificationRequest... ipv4Prefixes)
One or more IPv4 prefixes to be assigned to the network interface. You cannot use this option if you use the
Ipv4PrefixCount
option.- Parameters:
ipv4Prefixes
- One or more IPv4 prefixes to be assigned to the network interface. You cannot use this option if you use theIpv4PrefixCount
option.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipv4Prefixes
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest.Builder ipv4Prefixes(Consumer<Ipv4PrefixSpecificationRequest.Builder>... ipv4Prefixes)
One or more IPv4 prefixes to be assigned to the network interface. You cannot use this option if you use the
This is a convenience method that creates an instance of theIpv4PrefixCount
option.Ipv4PrefixSpecificationRequest.Builder
avoiding the need to create one manually viaIpv4PrefixSpecificationRequest.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#ipv4Prefixes(List
.) - Parameters:
ipv4Prefixes
- a consumer that will call methods onIpv4PrefixSpecificationRequest.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#ipv4Prefixes(java.util.Collection
)
-
ipv4PrefixCount
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest.Builder ipv4PrefixCount(Integer ipv4PrefixCount)
The number of IPv4 prefixes to be automatically assigned to the network interface. You cannot use this option if you use the
Ipv4Prefix
option.- Parameters:
ipv4PrefixCount
- The number of IPv4 prefixes to be automatically assigned to the network interface. You cannot use this option if you use theIpv4Prefix
option.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipv6Prefixes
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest.Builder ipv6Prefixes(Collection<Ipv6PrefixSpecificationRequest> ipv6Prefixes)
One or more IPv6 prefixes to be assigned to the network interface. You cannot use this option if you use the
Ipv6PrefixCount
option.- Parameters:
ipv6Prefixes
- One or more IPv6 prefixes to be assigned to the network interface. You cannot use this option if you use theIpv6PrefixCount
option.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipv6Prefixes
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest.Builder ipv6Prefixes(Ipv6PrefixSpecificationRequest... ipv6Prefixes)
One or more IPv6 prefixes to be assigned to the network interface. You cannot use this option if you use the
Ipv6PrefixCount
option.- Parameters:
ipv6Prefixes
- One or more IPv6 prefixes to be assigned to the network interface. You cannot use this option if you use theIpv6PrefixCount
option.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipv6Prefixes
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest.Builder ipv6Prefixes(Consumer<Ipv6PrefixSpecificationRequest.Builder>... ipv6Prefixes)
One or more IPv6 prefixes to be assigned to the network interface. You cannot use this option if you use the
This is a convenience method that creates an instance of theIpv6PrefixCount
option.Ipv6PrefixSpecificationRequest.Builder
avoiding the need to create one manually viaIpv6PrefixSpecificationRequest.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#ipv6Prefixes(List
.) - Parameters:
ipv6Prefixes
- a consumer that will call methods onIpv6PrefixSpecificationRequest.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#ipv6Prefixes(java.util.Collection
)
-
ipv6PrefixCount
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest.Builder ipv6PrefixCount(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.- Parameters:
ipv6PrefixCount
- The number of IPv6 prefixes to be automatically assigned to the network interface. You cannot use this option if you use theIpv6Prefix
option.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
primaryIpv6
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest.Builder primaryIpv6(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.
- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-
enaSrdSpecification
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest.Builder enaSrdSpecification(EnaSrdSpecificationRequest enaSrdSpecification)
Configure ENA Express settings for your launch template.
- Parameters:
enaSrdSpecification
- Configure ENA Express settings for your launch template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
enaSrdSpecification
default LaunchTemplateInstanceNetworkInterfaceSpecificationRequest.Builder enaSrdSpecification(Consumer<EnaSrdSpecificationRequest.Builder> enaSrdSpecification)
Configure ENA Express settings for your launch template.
This is a convenience method that creates an instance of theEnaSrdSpecificationRequest.Builder
avoiding the need to create one manually viaEnaSrdSpecificationRequest.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toenaSrdSpecification(EnaSrdSpecificationRequest)
.- Parameters:
enaSrdSpecification
- a consumer that will call methods onEnaSrdSpecificationRequest.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
enaSrdSpecification(EnaSrdSpecificationRequest)
-
connectionTrackingSpecification
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest.Builder connectionTrackingSpecification(ConnectionTrackingSpecificationRequest 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 Connection tracking timeouts in the Amazon Elastic Compute Cloud User Guide.
- Parameters:
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 Connection tracking timeouts in the Amazon Elastic Compute Cloud User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
connectionTrackingSpecification
default LaunchTemplateInstanceNetworkInterfaceSpecificationRequest.Builder connectionTrackingSpecification(Consumer<ConnectionTrackingSpecificationRequest.Builder> 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 Connection tracking timeouts in the Amazon Elastic Compute Cloud User Guide.
This is a convenience method that creates an instance of theConnectionTrackingSpecificationRequest.Builder
avoiding the need to create one manually viaConnectionTrackingSpecificationRequest.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toconnectionTrackingSpecification(ConnectionTrackingSpecificationRequest)
.- Parameters:
connectionTrackingSpecification
- a consumer that will call methods onConnectionTrackingSpecificationRequest.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
connectionTrackingSpecification(ConnectionTrackingSpecificationRequest)
-
-