Interface InstanceNetworkInterfaceSpecification.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<InstanceNetworkInterfaceSpecification.Builder,InstanceNetworkInterfaceSpecification>,SdkBuilder<InstanceNetworkInterfaceSpecification.Builder,InstanceNetworkInterfaceSpecification>,SdkPojo
- Enclosing class:
- InstanceNetworkInterfaceSpecification
public static interface InstanceNetworkInterfaceSpecification.Builder extends SdkPojo, CopyableBuilder<InstanceNetworkInterfaceSpecification.Builder,InstanceNetworkInterfaceSpecification>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description InstanceNetworkInterfaceSpecification.BuilderassociateCarrierIpAddress(Boolean associateCarrierIpAddress)Indicates whether to assign a carrier IP address to the network interface.InstanceNetworkInterfaceSpecification.BuilderassociatePublicIpAddress(Boolean associatePublicIpAddress)Indicates whether to assign a public IPv4 address to an instance you launch in a VPC.default InstanceNetworkInterfaceSpecification.BuilderconnectionTrackingSpecification(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.InstanceNetworkInterfaceSpecification.BuilderconnectionTrackingSpecification(ConnectionTrackingSpecificationRequest connectionTrackingSpecification)A security group connection tracking specification that enables you to set the timeout for connection tracking on an Elastic network interface.InstanceNetworkInterfaceSpecification.BuilderdeleteOnTermination(Boolean deleteOnTermination)If set totrue, the interface is deleted when the instance is terminated.InstanceNetworkInterfaceSpecification.Builderdescription(String description)The description of the network interface.InstanceNetworkInterfaceSpecification.BuilderdeviceIndex(Integer deviceIndex)The position of the network interface in the attachment order.default InstanceNetworkInterfaceSpecification.BuilderenaSrdSpecification(Consumer<EnaSrdSpecificationRequest.Builder> enaSrdSpecification)Specifies the ENA Express settings for the network interface that's attached to the instance.InstanceNetworkInterfaceSpecification.BuilderenaSrdSpecification(EnaSrdSpecificationRequest enaSrdSpecification)Specifies the ENA Express settings for the network interface that's attached to the instance.InstanceNetworkInterfaceSpecification.Buildergroups(String... groups)The IDs of the security groups for the network interface.InstanceNetworkInterfaceSpecification.Buildergroups(Collection<String> groups)The IDs of the security groups for the network interface.InstanceNetworkInterfaceSpecification.BuilderinterfaceType(String interfaceType)The type of network interface.InstanceNetworkInterfaceSpecification.Builderipv4PrefixCount(Integer ipv4PrefixCount)The number of IPv4 delegated prefixes to be automatically assigned to the network interface.InstanceNetworkInterfaceSpecification.Builderipv4Prefixes(Collection<Ipv4PrefixSpecificationRequest> ipv4Prefixes)The IPv4 delegated prefixes to be assigned to the network interface.InstanceNetworkInterfaceSpecification.Builderipv4Prefixes(Consumer<Ipv4PrefixSpecificationRequest.Builder>... ipv4Prefixes)The IPv4 delegated prefixes to be assigned to the network interface.InstanceNetworkInterfaceSpecification.Builderipv4Prefixes(Ipv4PrefixSpecificationRequest... ipv4Prefixes)The IPv4 delegated prefixes to be assigned to the network interface.InstanceNetworkInterfaceSpecification.Builderipv6AddressCount(Integer ipv6AddressCount)A number of IPv6 addresses to assign to the network interface.InstanceNetworkInterfaceSpecification.Builderipv6Addresses(Collection<InstanceIpv6Address> ipv6Addresses)The IPv6 addresses to assign to the network interface.InstanceNetworkInterfaceSpecification.Builderipv6Addresses(Consumer<InstanceIpv6Address.Builder>... ipv6Addresses)The IPv6 addresses to assign to the network interface.InstanceNetworkInterfaceSpecification.Builderipv6Addresses(InstanceIpv6Address... ipv6Addresses)The IPv6 addresses to assign to the network interface.InstanceNetworkInterfaceSpecification.Builderipv6PrefixCount(Integer ipv6PrefixCount)The number of IPv6 delegated prefixes to be automatically assigned to the network interface.InstanceNetworkInterfaceSpecification.Builderipv6Prefixes(Collection<Ipv6PrefixSpecificationRequest> ipv6Prefixes)The IPv6 delegated prefixes to be assigned to the network interface.InstanceNetworkInterfaceSpecification.Builderipv6Prefixes(Consumer<Ipv6PrefixSpecificationRequest.Builder>... ipv6Prefixes)The IPv6 delegated prefixes to be assigned to the network interface.InstanceNetworkInterfaceSpecification.Builderipv6Prefixes(Ipv6PrefixSpecificationRequest... ipv6Prefixes)The IPv6 delegated prefixes to be assigned to the network interface.InstanceNetworkInterfaceSpecification.BuildernetworkCardIndex(Integer networkCardIndex)The index of the network card.InstanceNetworkInterfaceSpecification.BuildernetworkInterfaceId(String networkInterfaceId)The ID of the network interface.InstanceNetworkInterfaceSpecification.BuilderprimaryIpv6(Boolean primaryIpv6)The primary IPv6 address of the network interface.InstanceNetworkInterfaceSpecification.BuilderprivateIpAddress(String privateIpAddress)The private IPv4 address of the network interface.InstanceNetworkInterfaceSpecification.BuilderprivateIpAddresses(Collection<PrivateIpAddressSpecification> privateIpAddresses)The private IPv4 addresses to assign to the network interface.InstanceNetworkInterfaceSpecification.BuilderprivateIpAddresses(Consumer<PrivateIpAddressSpecification.Builder>... privateIpAddresses)The private IPv4 addresses to assign to the network interface.InstanceNetworkInterfaceSpecification.BuilderprivateIpAddresses(PrivateIpAddressSpecification... privateIpAddresses)The private IPv4 addresses to assign to the network interface.InstanceNetworkInterfaceSpecification.BuildersecondaryPrivateIpAddressCount(Integer secondaryPrivateIpAddressCount)The number of secondary private IPv4 addresses.InstanceNetworkInterfaceSpecification.BuildersubnetId(String subnetId)The ID of the subnet associated with 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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
associatePublicIpAddress
InstanceNetworkInterfaceSpecification.Builder associatePublicIpAddress(Boolean associatePublicIpAddress)
Indicates whether to assign a public IPv4 address to an instance you launch in a VPC. The public IP address can only be assigned to a network interface for eth0, and can only be assigned to a new network interface, not an existing one. You cannot specify more than one network interface in the request. If launching into a default subnet, the default value is
true.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.
- Parameters:
associatePublicIpAddress- Indicates whether to assign a public IPv4 address to an instance you launch in a VPC. The public IP address can only be assigned to a network interface for eth0, and can only be assigned to a new network interface, not an existing one. You cannot specify more than one network interface in the request. If launching into a default subnet, the default value istrue.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:
- Returns a reference to this object so that method calls can be chained together.
-
deleteOnTermination
InstanceNetworkInterfaceSpecification.Builder deleteOnTermination(Boolean deleteOnTermination)
If set to
true, the interface is deleted when the instance is terminated. You can specifytrueonly if creating a new network interface when launching an instance.- Parameters:
deleteOnTermination- If set totrue, the interface is deleted when the instance is terminated. You can specifytrueonly if creating a new network interface when launching an instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
InstanceNetworkInterfaceSpecification.Builder description(String description)
The description of the network interface. Applies only if creating a network interface when launching an instance.
- Parameters:
description- The description of the network interface. Applies only if creating a network interface when launching an instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deviceIndex
InstanceNetworkInterfaceSpecification.Builder deviceIndex(Integer deviceIndex)
The position of the network interface in the attachment order. A primary network interface has a device index of 0.
If you specify a network interface when launching an instance, you must specify the device index.
- Parameters:
deviceIndex- The position of the network interface in the attachment order. A primary network interface has a device index of 0.If you specify a network interface when launching an instance, you must specify the device index.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groups
InstanceNetworkInterfaceSpecification.Builder groups(Collection<String> groups)
The IDs of the security groups for the network interface. Applies only if creating a network interface when launching an instance.
- Parameters:
groups- The IDs of the security groups for the network interface. Applies only if creating a network interface when launching an instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groups
InstanceNetworkInterfaceSpecification.Builder groups(String... groups)
The IDs of the security groups for the network interface. Applies only if creating a network interface when launching an instance.
- Parameters:
groups- The IDs of the security groups for the network interface. Applies only if creating a network interface when launching an instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipv6AddressCount
InstanceNetworkInterfaceSpecification.Builder ipv6AddressCount(Integer ipv6AddressCount)
A number of IPv6 addresses to assign to the network interface. Amazon EC2 chooses the IPv6 addresses from the range of the subnet. You cannot specify this option and the option to assign specific IPv6 addresses in the same request. You can specify this option if you've specified a minimum number of instances to launch.
- Parameters:
ipv6AddressCount- A number of IPv6 addresses to assign to the network interface. Amazon EC2 chooses the IPv6 addresses from the range of the subnet. You cannot specify this option and the option to assign specific IPv6 addresses in the same request. You can specify this option if you've specified a minimum number of instances to launch.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipv6Addresses
InstanceNetworkInterfaceSpecification.Builder ipv6Addresses(Collection<InstanceIpv6Address> ipv6Addresses)
The IPv6 addresses to assign to the network interface. You cannot specify this option and the option to assign a number of IPv6 addresses in the same request. You cannot specify this option if you've specified a minimum number of instances to launch.
- Parameters:
ipv6Addresses- The IPv6 addresses to assign to the network interface. You cannot specify this option and the option to assign a number of IPv6 addresses in the same request. You cannot specify this option if you've specified a minimum number of instances to launch.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipv6Addresses
InstanceNetworkInterfaceSpecification.Builder ipv6Addresses(InstanceIpv6Address... ipv6Addresses)
The IPv6 addresses to assign to the network interface. You cannot specify this option and the option to assign a number of IPv6 addresses in the same request. You cannot specify this option if you've specified a minimum number of instances to launch.
- Parameters:
ipv6Addresses- The IPv6 addresses to assign to the network interface. You cannot specify this option and the option to assign a number of IPv6 addresses in the same request. You cannot specify this option if you've specified a minimum number of instances to launch.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipv6Addresses
InstanceNetworkInterfaceSpecification.Builder ipv6Addresses(Consumer<InstanceIpv6Address.Builder>... ipv6Addresses)
The IPv6 addresses to assign to the network interface. You cannot specify this option and the option to assign a number of IPv6 addresses in the same request. You cannot specify this option if you've specified a minimum number of instances to launch.
This is a convenience method that creates an instance of theInstanceIpv6Address.Builderavoiding the need to create one manually viaInstanceIpv6Address.builder().When the
Consumercompletes,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
InstanceNetworkInterfaceSpecification.Builder networkInterfaceId(String networkInterfaceId)
The ID of the network interface.
If you are creating a Spot Fleet, omit this parameter because you can’t specify a network interface ID in a launch specification.
- Parameters:
networkInterfaceId- The ID of the network interface.If you are creating a Spot Fleet, omit this parameter because you can’t specify a network interface ID in a launch specification.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
privateIpAddress
InstanceNetworkInterfaceSpecification.Builder privateIpAddress(String privateIpAddress)
The private IPv4 address of the network interface. Applies only if creating a network interface when launching an instance. You cannot specify this option if you're launching more than one instance in a RunInstances request.
- Parameters:
privateIpAddress- The private IPv4 address of the network interface. Applies only if creating a network interface when launching an instance. You cannot specify this option if you're launching more than one instance in a RunInstances request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
privateIpAddresses
InstanceNetworkInterfaceSpecification.Builder privateIpAddresses(Collection<PrivateIpAddressSpecification> privateIpAddresses)
The private IPv4 addresses to assign to the network interface. Only one private IPv4 address can be designated as primary. You cannot specify this option if you're launching more than one instance in a RunInstances request.
- Parameters:
privateIpAddresses- The private IPv4 addresses to assign to the network interface. Only one private IPv4 address can be designated as primary. You cannot specify this option if you're launching more than one instance in a RunInstances request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
privateIpAddresses
InstanceNetworkInterfaceSpecification.Builder privateIpAddresses(PrivateIpAddressSpecification... privateIpAddresses)
The private IPv4 addresses to assign to the network interface. Only one private IPv4 address can be designated as primary. You cannot specify this option if you're launching more than one instance in a RunInstances request.
- Parameters:
privateIpAddresses- The private IPv4 addresses to assign to the network interface. Only one private IPv4 address can be designated as primary. You cannot specify this option if you're launching more than one instance in a RunInstances request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
privateIpAddresses
InstanceNetworkInterfaceSpecification.Builder privateIpAddresses(Consumer<PrivateIpAddressSpecification.Builder>... privateIpAddresses)
The private IPv4 addresses to assign to the network interface. Only one private IPv4 address can be designated as primary. You cannot specify this option if you're launching more than one instance in a RunInstances request.
This is a convenience method that creates an instance of thePrivateIpAddressSpecification.Builderavoiding the need to create one manually viaPrivateIpAddressSpecification.builder().When the
Consumercompletes,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
InstanceNetworkInterfaceSpecification.Builder secondaryPrivateIpAddressCount(Integer secondaryPrivateIpAddressCount)
The number of secondary private IPv4 addresses. You can’t specify this parameter and also specify a secondary private IP address using the
PrivateIpAddressparameter.- Parameters:
secondaryPrivateIpAddressCount- The number of secondary private IPv4 addresses. You can’t specify this parameter and also specify a secondary private IP address using thePrivateIpAddressparameter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subnetId
InstanceNetworkInterfaceSpecification.Builder subnetId(String subnetId)
The ID of the subnet associated with the network interface. Applies only if creating a network interface when launching an instance.
- Parameters:
subnetId- The ID of the subnet associated with the network interface. Applies only if creating a network interface when launching an instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
associateCarrierIpAddress
InstanceNetworkInterfaceSpecification.Builder associateCarrierIpAddress(Boolean associateCarrierIpAddress)
Indicates whether to assign a carrier IP address to the network interface.
You can only assign a carrier IP address to a network interface that is in a subnet in a Wavelength Zone. For more information about carrier IP addresses, see Carrier IP address in the Amazon Web Services Wavelength Developer Guide.
- Parameters:
associateCarrierIpAddress- Indicates whether to assign a carrier IP address to the network interface.You can only assign a carrier IP address to a network interface that is in a subnet in a Wavelength Zone. For more information about carrier IP addresses, see Carrier IP address in the Amazon Web Services Wavelength Developer Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
interfaceType
InstanceNetworkInterfaceSpecification.Builder interfaceType(String interfaceType)
The type of network interface.
If you specify
efa-only, do not assign any IP addresses to the network interface. EFA-only network interfaces do not support IP addresses.Valid values:
interface|efa|efa-only- Parameters:
interfaceType- The type of network interface.If you specify
efa-only, do not assign any IP addresses to the network interface. EFA-only network interfaces do not support IP addresses.Valid values:
interface|efa|efa-only- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkCardIndex
InstanceNetworkInterfaceSpecification.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.
If you are using RequestSpotInstances to create Spot Instances, omit this parameter because you can’t specify the network card index when using this API. To specify the network card index, use RunInstances.
- 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.If you are using RequestSpotInstances to create Spot Instances, omit this parameter because you can’t specify the network card index when using this API. To specify the network card index, use RunInstances.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipv4Prefixes
InstanceNetworkInterfaceSpecification.Builder ipv4Prefixes(Collection<Ipv4PrefixSpecificationRequest> ipv4Prefixes)
The IPv4 delegated prefixes to be assigned to the network interface. You cannot use this option if you use the
Ipv4PrefixCountoption.- Parameters:
ipv4Prefixes- The IPv4 delegated prefixes to be assigned to the network interface. You cannot use this option if you use theIpv4PrefixCountoption.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipv4Prefixes
InstanceNetworkInterfaceSpecification.Builder ipv4Prefixes(Ipv4PrefixSpecificationRequest... ipv4Prefixes)
The IPv4 delegated prefixes to be assigned to the network interface. You cannot use this option if you use the
Ipv4PrefixCountoption.- Parameters:
ipv4Prefixes- The IPv4 delegated prefixes to be assigned to the network interface. You cannot use this option if you use theIpv4PrefixCountoption.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipv4Prefixes
InstanceNetworkInterfaceSpecification.Builder ipv4Prefixes(Consumer<Ipv4PrefixSpecificationRequest.Builder>... ipv4Prefixes)
The IPv4 delegated 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 theIpv4PrefixCountoption.Ipv4PrefixSpecificationRequest.Builderavoiding the need to create one manually viaIpv4PrefixSpecificationRequest.builder().When the
Consumercompletes,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
InstanceNetworkInterfaceSpecification.Builder ipv4PrefixCount(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
Ipv4Prefixoption.- Parameters:
ipv4PrefixCount- The number of IPv4 delegated prefixes to be automatically assigned to the network interface. You cannot use this option if you use theIpv4Prefixoption.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipv6Prefixes
InstanceNetworkInterfaceSpecification.Builder ipv6Prefixes(Collection<Ipv6PrefixSpecificationRequest> ipv6Prefixes)
The IPv6 delegated prefixes to be assigned to the network interface. You cannot use this option if you use the
Ipv6PrefixCountoption.- Parameters:
ipv6Prefixes- The IPv6 delegated prefixes to be assigned to the network interface. You cannot use this option if you use theIpv6PrefixCountoption.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipv6Prefixes
InstanceNetworkInterfaceSpecification.Builder ipv6Prefixes(Ipv6PrefixSpecificationRequest... ipv6Prefixes)
The IPv6 delegated prefixes to be assigned to the network interface. You cannot use this option if you use the
Ipv6PrefixCountoption.- Parameters:
ipv6Prefixes- The IPv6 delegated prefixes to be assigned to the network interface. You cannot use this option if you use theIpv6PrefixCountoption.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipv6Prefixes
InstanceNetworkInterfaceSpecification.Builder ipv6Prefixes(Consumer<Ipv6PrefixSpecificationRequest.Builder>... ipv6Prefixes)
The IPv6 delegated 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 theIpv6PrefixCountoption.Ipv6PrefixSpecificationRequest.Builderavoiding the need to create one manually viaIpv6PrefixSpecificationRequest.builder().When the
Consumercompletes,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
InstanceNetworkInterfaceSpecification.Builder ipv6PrefixCount(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
Ipv6Prefixoption.- Parameters:
ipv6PrefixCount- The number of IPv6 delegated prefixes to be automatically assigned to the network interface. You cannot use this option if you use theIpv6Prefixoption.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
primaryIpv6
InstanceNetworkInterfaceSpecification.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
InstanceNetworkInterfaceSpecification.Builder enaSrdSpecification(EnaSrdSpecificationRequest enaSrdSpecification)
Specifies the ENA Express settings for the network interface that's attached to the instance.
- Parameters:
enaSrdSpecification- Specifies the ENA Express settings for the network interface that's attached to the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
enaSrdSpecification
default InstanceNetworkInterfaceSpecification.Builder enaSrdSpecification(Consumer<EnaSrdSpecificationRequest.Builder> enaSrdSpecification)
Specifies the ENA Express settings for the network interface that's attached to the instance.
This is a convenience method that creates an instance of theEnaSrdSpecificationRequest.Builderavoiding the need to create one manually viaEnaSrdSpecificationRequest.builder().When the
Consumercompletes,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
InstanceNetworkInterfaceSpecification.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 EC2 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 EC2 User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
connectionTrackingSpecification
default InstanceNetworkInterfaceSpecification.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 EC2 User Guide.
This is a convenience method that creates an instance of theConnectionTrackingSpecificationRequest.Builderavoiding the need to create one manually viaConnectionTrackingSpecificationRequest.builder().When the
Consumercompletes,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)
-
-