Interface LaunchTemplateInstanceNetworkInterfaceSpecification.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<LaunchTemplateInstanceNetworkInterfaceSpecification.Builder,LaunchTemplateInstanceNetworkInterfaceSpecification>
,SdkBuilder<LaunchTemplateInstanceNetworkInterfaceSpecification.Builder,LaunchTemplateInstanceNetworkInterfaceSpecification>
,SdkPojo
- Enclosing class:
- LaunchTemplateInstanceNetworkInterfaceSpecification
public static interface LaunchTemplateInstanceNetworkInterfaceSpecification.Builder extends SdkPojo, CopyableBuilder<LaunchTemplateInstanceNetworkInterfaceSpecification.Builder,LaunchTemplateInstanceNetworkInterfaceSpecification>
-
-
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
LaunchTemplateInstanceNetworkInterfaceSpecification.Builder associateCarrierIpAddress(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.
- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-
associatePublicIpAddress
LaunchTemplateInstanceNetworkInterfaceSpecification.Builder associatePublicIpAddress(Boolean associatePublicIpAddress)
Indicates whether to associate 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
- Indicates whether to associate 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
LaunchTemplateInstanceNetworkInterfaceSpecification.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
LaunchTemplateInstanceNetworkInterfaceSpecification.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
LaunchTemplateInstanceNetworkInterfaceSpecification.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
LaunchTemplateInstanceNetworkInterfaceSpecification.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
LaunchTemplateInstanceNetworkInterfaceSpecification.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
LaunchTemplateInstanceNetworkInterfaceSpecification.Builder interfaceType(String interfaceType)
The type of network interface.
- Parameters:
interfaceType
- The type of network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipv6AddressCount
LaunchTemplateInstanceNetworkInterfaceSpecification.Builder ipv6AddressCount(Integer ipv6AddressCount)
The number of IPv6 addresses for the network interface.
- Parameters:
ipv6AddressCount
- The number of IPv6 addresses for the network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipv6Addresses
LaunchTemplateInstanceNetworkInterfaceSpecification.Builder ipv6Addresses(Collection<InstanceIpv6Address> ipv6Addresses)
The IPv6 addresses for the network interface.
- Parameters:
ipv6Addresses
- The IPv6 addresses for the network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipv6Addresses
LaunchTemplateInstanceNetworkInterfaceSpecification.Builder ipv6Addresses(InstanceIpv6Address... ipv6Addresses)
The IPv6 addresses for the network interface.
- Parameters:
ipv6Addresses
- The IPv6 addresses for the network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipv6Addresses
LaunchTemplateInstanceNetworkInterfaceSpecification.Builder ipv6Addresses(Consumer<InstanceIpv6Address.Builder>... ipv6Addresses)
The IPv6 addresses for the network interface.
This is a convenience method that creates an instance of theInstanceIpv6Address.Builder
avoiding the need to create one manually viaInstanceIpv6Address.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 onInstanceIpv6Address.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#ipv6Addresses(java.util.Collection
)
-
networkInterfaceId
LaunchTemplateInstanceNetworkInterfaceSpecification.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
LaunchTemplateInstanceNetworkInterfaceSpecification.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
LaunchTemplateInstanceNetworkInterfaceSpecification.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
LaunchTemplateInstanceNetworkInterfaceSpecification.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
LaunchTemplateInstanceNetworkInterfaceSpecification.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
LaunchTemplateInstanceNetworkInterfaceSpecification.Builder secondaryPrivateIpAddressCount(Integer secondaryPrivateIpAddressCount)
The number of secondary private IPv4 addresses for the network interface.
- Parameters:
secondaryPrivateIpAddressCount
- The number of secondary private IPv4 addresses for the network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subnetId
LaunchTemplateInstanceNetworkInterfaceSpecification.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
LaunchTemplateInstanceNetworkInterfaceSpecification.Builder networkCardIndex(Integer networkCardIndex)
The index of the network card.
- Parameters:
networkCardIndex
- The index of the network card.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipv4Prefixes
LaunchTemplateInstanceNetworkInterfaceSpecification.Builder ipv4Prefixes(Collection<Ipv4PrefixSpecificationResponse> ipv4Prefixes)
One or more IPv4 prefixes assigned to the network interface.
- Parameters:
ipv4Prefixes
- One or more IPv4 prefixes assigned to the network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipv4Prefixes
LaunchTemplateInstanceNetworkInterfaceSpecification.Builder ipv4Prefixes(Ipv4PrefixSpecificationResponse... ipv4Prefixes)
One or more IPv4 prefixes assigned to the network interface.
- Parameters:
ipv4Prefixes
- One or more IPv4 prefixes assigned to the network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipv4Prefixes
LaunchTemplateInstanceNetworkInterfaceSpecification.Builder ipv4Prefixes(Consumer<Ipv4PrefixSpecificationResponse.Builder>... ipv4Prefixes)
One or more IPv4 prefixes assigned to the network interface.
This is a convenience method that creates an instance of theIpv4PrefixSpecificationResponse.Builder
avoiding the need to create one manually viaIpv4PrefixSpecificationResponse.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 onIpv4PrefixSpecificationResponse.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#ipv4Prefixes(java.util.Collection
)
-
ipv4PrefixCount
LaunchTemplateInstanceNetworkInterfaceSpecification.Builder ipv4PrefixCount(Integer ipv4PrefixCount)
The number of IPv4 prefixes that Amazon Web Services automatically assigned to the network interface.
- Parameters:
ipv4PrefixCount
- The number of IPv4 prefixes that Amazon Web Services automatically assigned to the network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipv6Prefixes
LaunchTemplateInstanceNetworkInterfaceSpecification.Builder ipv6Prefixes(Collection<Ipv6PrefixSpecificationResponse> ipv6Prefixes)
One or more IPv6 prefixes assigned to the network interface.
- Parameters:
ipv6Prefixes
- One or more IPv6 prefixes assigned to the network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipv6Prefixes
LaunchTemplateInstanceNetworkInterfaceSpecification.Builder ipv6Prefixes(Ipv6PrefixSpecificationResponse... ipv6Prefixes)
One or more IPv6 prefixes assigned to the network interface.
- Parameters:
ipv6Prefixes
- One or more IPv6 prefixes assigned to the network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipv6Prefixes
LaunchTemplateInstanceNetworkInterfaceSpecification.Builder ipv6Prefixes(Consumer<Ipv6PrefixSpecificationResponse.Builder>... ipv6Prefixes)
One or more IPv6 prefixes assigned to the network interface.
This is a convenience method that creates an instance of theIpv6PrefixSpecificationResponse.Builder
avoiding the need to create one manually viaIpv6PrefixSpecificationResponse.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 onIpv6PrefixSpecificationResponse.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#ipv6Prefixes(java.util.Collection
)
-
ipv6PrefixCount
LaunchTemplateInstanceNetworkInterfaceSpecification.Builder ipv6PrefixCount(Integer ipv6PrefixCount)
The number of IPv6 prefixes that Amazon Web Services automatically assigned to the network interface.
- Parameters:
ipv6PrefixCount
- The number of IPv6 prefixes that Amazon Web Services automatically assigned to the network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
primaryIpv6
LaunchTemplateInstanceNetworkInterfaceSpecification.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
LaunchTemplateInstanceNetworkInterfaceSpecification.Builder enaSrdSpecification(LaunchTemplateEnaSrdSpecification enaSrdSpecification)
Contains the ENA Express settings for instances launched from your launch template.
- Parameters:
enaSrdSpecification
- Contains the ENA Express settings for instances launched from your launch template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
enaSrdSpecification
default LaunchTemplateInstanceNetworkInterfaceSpecification.Builder enaSrdSpecification(Consumer<LaunchTemplateEnaSrdSpecification.Builder> enaSrdSpecification)
Contains the ENA Express settings for instances launched from your launch template.
This is a convenience method that creates an instance of theLaunchTemplateEnaSrdSpecification.Builder
avoiding the need to create one manually viaLaunchTemplateEnaSrdSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toenaSrdSpecification(LaunchTemplateEnaSrdSpecification)
.- Parameters:
enaSrdSpecification
- a consumer that will call methods onLaunchTemplateEnaSrdSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
enaSrdSpecification(LaunchTemplateEnaSrdSpecification)
-
connectionTrackingSpecification
LaunchTemplateInstanceNetworkInterfaceSpecification.Builder connectionTrackingSpecification(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 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 LaunchTemplateInstanceNetworkInterfaceSpecification.Builder connectionTrackingSpecification(Consumer<ConnectionTrackingSpecification.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 theConnectionTrackingSpecification.Builder
avoiding the need to create one manually viaConnectionTrackingSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toconnectionTrackingSpecification(ConnectionTrackingSpecification)
.- Parameters:
connectionTrackingSpecification
- a consumer that will call methods onConnectionTrackingSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
connectionTrackingSpecification(ConnectionTrackingSpecification)
-
-