Interface CreateNatGatewayRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateNatGatewayRequest.Builder,CreateNatGatewayRequest>,Ec2Request.Builder,SdkBuilder<CreateNatGatewayRequest.Builder,CreateNatGatewayRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateNatGatewayRequest
public static interface CreateNatGatewayRequest.Builder extends Ec2Request.Builder, SdkPojo, CopyableBuilder<CreateNatGatewayRequest.Builder,CreateNatGatewayRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CreateNatGatewayRequest.BuilderallocationId(String allocationId)[Public NAT gateways only] The allocation ID of an Elastic IP address to associate with the NAT gateway.CreateNatGatewayRequest.BuilderclientToken(String clientToken)Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.CreateNatGatewayRequest.BuilderconnectivityType(String connectivityType)Indicates whether the NAT gateway supports public or private connectivity.CreateNatGatewayRequest.BuilderconnectivityType(ConnectivityType connectivityType)Indicates whether the NAT gateway supports public or private connectivity.CreateNatGatewayRequest.BuilderdryRun(Boolean dryRun)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response.CreateNatGatewayRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateNatGatewayRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)CreateNatGatewayRequest.BuilderprivateIpAddress(String privateIpAddress)The private IPv4 address to assign to the NAT gateway.CreateNatGatewayRequest.BuildersecondaryAllocationIds(String... secondaryAllocationIds)Secondary EIP allocation IDs.CreateNatGatewayRequest.BuildersecondaryAllocationIds(Collection<String> secondaryAllocationIds)Secondary EIP allocation IDs.CreateNatGatewayRequest.BuildersecondaryPrivateIpAddressCount(Integer secondaryPrivateIpAddressCount)[Private NAT gateway only] The number of secondary private IPv4 addresses you want to assign to the NAT gateway.CreateNatGatewayRequest.BuildersecondaryPrivateIpAddresses(String... secondaryPrivateIpAddresses)Secondary private IPv4 addresses.CreateNatGatewayRequest.BuildersecondaryPrivateIpAddresses(Collection<String> secondaryPrivateIpAddresses)Secondary private IPv4 addresses.CreateNatGatewayRequest.BuildersubnetId(String subnetId)The ID of the subnet in which to create the NAT gateway.CreateNatGatewayRequest.BuildertagSpecifications(Collection<TagSpecification> tagSpecifications)The tags to assign to the NAT gateway.CreateNatGatewayRequest.BuildertagSpecifications(Consumer<TagSpecification.Builder>... tagSpecifications)The tags to assign to the NAT gateway.CreateNatGatewayRequest.BuildertagSpecifications(TagSpecification... tagSpecifications)The tags to assign to the NAT gateway.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Request.Builder
build
-
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
-
allocationId
CreateNatGatewayRequest.Builder allocationId(String allocationId)
[Public NAT gateways only] The allocation ID of an Elastic IP address to associate with the NAT gateway. You cannot specify an Elastic IP address with a private NAT gateway. If the Elastic IP address is associated with another resource, you must first disassociate it.
- Parameters:
allocationId- [Public NAT gateways only] The allocation ID of an Elastic IP address to associate with the NAT gateway. You cannot specify an Elastic IP address with a private NAT gateway. If the Elastic IP address is associated with another resource, you must first disassociate it.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientToken
CreateNatGatewayRequest.Builder clientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to ensure idempotency.
Constraint: Maximum 64 ASCII characters.
- Parameters:
clientToken- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to ensure idempotency.Constraint: Maximum 64 ASCII characters.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dryRun
CreateNatGatewayRequest.Builder dryRun(Boolean dryRun)
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation. Otherwise, it isUnauthorizedOperation.- Parameters:
dryRun- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response isDryRunOperation. Otherwise, it isUnauthorizedOperation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subnetId
CreateNatGatewayRequest.Builder subnetId(String subnetId)
The ID of the subnet in which to create the NAT gateway.
- Parameters:
subnetId- The ID of the subnet in which to create the NAT gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagSpecifications
CreateNatGatewayRequest.Builder tagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to assign to the NAT gateway.
- Parameters:
tagSpecifications- The tags to assign to the NAT gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagSpecifications
CreateNatGatewayRequest.Builder tagSpecifications(TagSpecification... tagSpecifications)
The tags to assign to the NAT gateway.
- Parameters:
tagSpecifications- The tags to assign to the NAT gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagSpecifications
CreateNatGatewayRequest.Builder tagSpecifications(Consumer<TagSpecification.Builder>... tagSpecifications)
The tags to assign to the NAT gateway.
This is a convenience method that creates an instance of theTagSpecification.Builderavoiding the need to create one manually viaTagSpecification.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tagSpecifications(List.) - Parameters:
tagSpecifications- a consumer that will call methods onTagSpecification.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#tagSpecifications(java.util.Collection)
-
connectivityType
CreateNatGatewayRequest.Builder connectivityType(String connectivityType)
Indicates whether the NAT gateway supports public or private connectivity. The default is public connectivity.
- Parameters:
connectivityType- Indicates whether the NAT gateway supports public or private connectivity. The default is public connectivity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ConnectivityType,ConnectivityType
-
connectivityType
CreateNatGatewayRequest.Builder connectivityType(ConnectivityType connectivityType)
Indicates whether the NAT gateway supports public or private connectivity. The default is public connectivity.
- Parameters:
connectivityType- Indicates whether the NAT gateway supports public or private connectivity. The default is public connectivity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ConnectivityType,ConnectivityType
-
privateIpAddress
CreateNatGatewayRequest.Builder privateIpAddress(String privateIpAddress)
The private IPv4 address to assign to the NAT gateway. If you don't provide an address, a private IPv4 address will be automatically assigned.
- Parameters:
privateIpAddress- The private IPv4 address to assign to the NAT gateway. If you don't provide an address, a private IPv4 address will be automatically assigned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
secondaryAllocationIds
CreateNatGatewayRequest.Builder secondaryAllocationIds(Collection<String> secondaryAllocationIds)
Secondary EIP allocation IDs. For more information, see Create a NAT gateway in the Amazon VPC User Guide.
- Parameters:
secondaryAllocationIds- Secondary EIP allocation IDs. For more information, see Create a NAT gateway in the Amazon VPC User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
secondaryAllocationIds
CreateNatGatewayRequest.Builder secondaryAllocationIds(String... secondaryAllocationIds)
Secondary EIP allocation IDs. For more information, see Create a NAT gateway in the Amazon VPC User Guide.
- Parameters:
secondaryAllocationIds- Secondary EIP allocation IDs. For more information, see Create a NAT gateway in the Amazon VPC User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
secondaryPrivateIpAddresses
CreateNatGatewayRequest.Builder secondaryPrivateIpAddresses(Collection<String> secondaryPrivateIpAddresses)
Secondary private IPv4 addresses. For more information about secondary addresses, see Create a NAT gateway in the Amazon VPC User Guide.
- Parameters:
secondaryPrivateIpAddresses- Secondary private IPv4 addresses. For more information about secondary addresses, see Create a NAT gateway in the Amazon VPC User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
secondaryPrivateIpAddresses
CreateNatGatewayRequest.Builder secondaryPrivateIpAddresses(String... secondaryPrivateIpAddresses)
Secondary private IPv4 addresses. For more information about secondary addresses, see Create a NAT gateway in the Amazon VPC User Guide.
- Parameters:
secondaryPrivateIpAddresses- Secondary private IPv4 addresses. For more information about secondary addresses, see Create a NAT gateway in the Amazon VPC User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
secondaryPrivateIpAddressCount
CreateNatGatewayRequest.Builder secondaryPrivateIpAddressCount(Integer secondaryPrivateIpAddressCount)
[Private NAT gateway only] The number of secondary private IPv4 addresses you want to assign to the NAT gateway. For more information about secondary addresses, see Create a NAT gateway in the Amazon VPC User Guide.
- Parameters:
secondaryPrivateIpAddressCount- [Private NAT gateway only] The number of secondary private IPv4 addresses you want to assign to the NAT gateway. For more information about secondary addresses, see Create a NAT gateway in the Amazon VPC User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateNatGatewayRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateNatGatewayRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-