Interface AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails.Builder,
,AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails> SdkBuilder<AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails.Builder,
,AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails> SdkPojo
- Enclosing class:
AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails
-
Method Summary
Modifier and TypeMethodDescriptionassociateCarrierIpAddress
(Boolean associateCarrierIpAddress) Indicates whether to associate a Carrier IP address with eth0 for a new network interface.associatePublicIpAddress
(Boolean associatePublicIpAddress) Associates a public IPv4 address with eth0 for a new network interface.deleteOnTermination
(Boolean deleteOnTermination) Indicates whether the network interface is deleted when the instance is terminated.description
(String description) A description for the network interface.deviceIndex
(Integer deviceIndex) The device index for the network interface attachment.The IDs of one or more security groups.groups
(Collection<String> groups) The IDs of one or more security groups.interfaceType
(String interfaceType) The type of network interface.ipv4PrefixCount
(Integer ipv4PrefixCount) The number of IPv4 prefixes to be automatically assigned to the network interface.ipv4Prefixes
(Collection<AwsEc2LaunchTemplateDataNetworkInterfaceSetIpv4PrefixesDetails> ipv4Prefixes) One or more IPv4 prefixes to be assigned to the network interface.ipv4Prefixes
(Consumer<AwsEc2LaunchTemplateDataNetworkInterfaceSetIpv4PrefixesDetails.Builder>... ipv4Prefixes) One or more IPv4 prefixes to be assigned to the network interface.One or more IPv4 prefixes to be assigned to the network interface.ipv6AddressCount
(Integer ipv6AddressCount) The number of IPv6 addresses to assign to a network interface.ipv6Addresses
(Collection<AwsEc2LaunchTemplateDataNetworkInterfaceSetIpv6AddressesDetails> ipv6Addresses) One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet.ipv6Addresses
(Consumer<AwsEc2LaunchTemplateDataNetworkInterfaceSetIpv6AddressesDetails.Builder>... ipv6Addresses) One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet.ipv6Addresses
(AwsEc2LaunchTemplateDataNetworkInterfaceSetIpv6AddressesDetails... ipv6Addresses) One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet.ipv6PrefixCount
(Integer ipv6PrefixCount) The number of IPv6 prefixes to be automatically assigned to the network interface.ipv6Prefixes
(Collection<AwsEc2LaunchTemplateDataNetworkInterfaceSetIpv6PrefixesDetails> ipv6Prefixes) One or more IPv6 prefixes to be assigned to the network interface.ipv6Prefixes
(Consumer<AwsEc2LaunchTemplateDataNetworkInterfaceSetIpv6PrefixesDetails.Builder>... ipv6Prefixes) One or more IPv6 prefixes to be assigned to the network interface.One or more IPv6 prefixes to be assigned to the network interface.networkCardIndex
(Integer networkCardIndex) The index of the network card.networkInterfaceId
(String networkInterfaceId) The ID of the network interface.privateIpAddress
(String privateIpAddress) The primary private IPv4 address of the network interface.privateIpAddresses
(Collection<AwsEc2LaunchTemplateDataNetworkInterfaceSetPrivateIpAddressesDetails> privateIpAddresses) One or more private IPv4 addresses.privateIpAddresses
(Consumer<AwsEc2LaunchTemplateDataNetworkInterfaceSetPrivateIpAddressesDetails.Builder>... privateIpAddresses) One or more private IPv4 addresses.privateIpAddresses
(AwsEc2LaunchTemplateDataNetworkInterfaceSetPrivateIpAddressesDetails... privateIpAddresses) One or more private IPv4 addresses.secondaryPrivateIpAddressCount
(Integer secondaryPrivateIpAddressCount) The number of secondary private IPv4 addresses to assign to a network interface.The ID of the subnet for the network interface.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 Details
-
associateCarrierIpAddress
AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails.Builder associateCarrierIpAddress(Boolean 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.
- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-
associatePublicIpAddress
AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails.Builder associatePublicIpAddress(Boolean associatePublicIpAddress) Associates a public IPv4 address with eth0 for a new network interface.
- Parameters:
associatePublicIpAddress
- Associates a public IPv4 address with eth0 for a new network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deleteOnTermination
AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails.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
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
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
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
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
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.
-
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.- Parameters:
ipv4PrefixCount
- The number of IPv4 prefixes to be automatically assigned to the network interface. You cannot use this option if you use theIpv4Prefixes
option.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipv4Prefixes
AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails.Builder ipv4Prefixes(Collection<AwsEc2LaunchTemplateDataNetworkInterfaceSetIpv4PrefixesDetails> 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
AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails.Builder ipv4Prefixes(AwsEc2LaunchTemplateDataNetworkInterfaceSetIpv4PrefixesDetails... 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
AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails.Builder ipv4Prefixes(Consumer<AwsEc2LaunchTemplateDataNetworkInterfaceSetIpv4PrefixesDetails.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.AwsEc2LaunchTemplateDataNetworkInterfaceSetIpv4PrefixesDetails.Builder
avoiding the need to create one manually viaAwsEc2LaunchTemplateDataNetworkInterfaceSetIpv4PrefixesDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toipv4Prefixes(List<AwsEc2LaunchTemplateDataNetworkInterfaceSetIpv4PrefixesDetails>)
.- Parameters:
ipv4Prefixes
- a consumer that will call methods onAwsEc2LaunchTemplateDataNetworkInterfaceSetIpv4PrefixesDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
ipv6AddressCount
AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails.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 you use
Ipv6Addresses
.- 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 you useIpv6Addresses
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipv6Addresses
AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails.Builder ipv6Addresses(Collection<AwsEc2LaunchTemplateDataNetworkInterfaceSetIpv6AddressesDetails> 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
.- 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 useIpv6AddressCount
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipv6Addresses
AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails.Builder ipv6Addresses(AwsEc2LaunchTemplateDataNetworkInterfaceSetIpv6AddressesDetails... 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
.- 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 useIpv6AddressCount
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipv6Addresses
AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails.Builder ipv6Addresses(Consumer<AwsEc2LaunchTemplateDataNetworkInterfaceSetIpv6AddressesDetails.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 use
This is a convenience method that creates an instance of theIpv6AddressCount
.AwsEc2LaunchTemplateDataNetworkInterfaceSetIpv6AddressesDetails.Builder
avoiding the need to create one manually viaAwsEc2LaunchTemplateDataNetworkInterfaceSetIpv6AddressesDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toipv6Addresses(List<AwsEc2LaunchTemplateDataNetworkInterfaceSetIpv6AddressesDetails>)
.- Parameters:
ipv6Addresses
- a consumer that will call methods onAwsEc2LaunchTemplateDataNetworkInterfaceSetIpv6AddressesDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
-
ipv6Prefixes
AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails.Builder ipv6Prefixes(Collection<AwsEc2LaunchTemplateDataNetworkInterfaceSetIpv6PrefixesDetails> 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
AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails.Builder ipv6Prefixes(AwsEc2LaunchTemplateDataNetworkInterfaceSetIpv6PrefixesDetails... 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
AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails.Builder ipv6Prefixes(Consumer<AwsEc2LaunchTemplateDataNetworkInterfaceSetIpv6PrefixesDetails.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.AwsEc2LaunchTemplateDataNetworkInterfaceSetIpv6PrefixesDetails.Builder
avoiding the need to create one manually viaAwsEc2LaunchTemplateDataNetworkInterfaceSetIpv6PrefixesDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toipv6Prefixes(List<AwsEc2LaunchTemplateDataNetworkInterfaceSetIpv6PrefixesDetails>)
.- Parameters:
ipv6Prefixes
- a consumer that will call methods onAwsEc2LaunchTemplateDataNetworkInterfaceSetIpv6PrefixesDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
networkCardIndex
AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails.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 index0
.- 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 index0
. The default is network card index0
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkInterfaceId
AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails.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
AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails.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
AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails.Builder privateIpAddresses(Collection<AwsEc2LaunchTemplateDataNetworkInterfaceSetPrivateIpAddressesDetails> 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
AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails.Builder privateIpAddresses(AwsEc2LaunchTemplateDataNetworkInterfaceSetPrivateIpAddressesDetails... 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
AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails.Builder privateIpAddresses(Consumer<AwsEc2LaunchTemplateDataNetworkInterfaceSetPrivateIpAddressesDetails.Builder>... privateIpAddresses) One or more private IPv4 addresses.
This is a convenience method that creates an instance of theAwsEc2LaunchTemplateDataNetworkInterfaceSetPrivateIpAddressesDetails.Builder
avoiding the need to create one manually viaAwsEc2LaunchTemplateDataNetworkInterfaceSetPrivateIpAddressesDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toprivateIpAddresses(List<AwsEc2LaunchTemplateDataNetworkInterfaceSetPrivateIpAddressesDetails>)
.- Parameters:
privateIpAddresses
- a consumer that will call methods onAwsEc2LaunchTemplateDataNetworkInterfaceSetPrivateIpAddressesDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
secondaryPrivateIpAddressCount
AwsEc2LaunchTemplateDataNetworkInterfaceSetDetails.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
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.
-