Class CreateNatGatewayRequest
- All Implemented Interfaces:
ReadLimitInfo
,DryRunSupportedRequest<CreateNatGatewayRequest>
,Serializable
,Cloneable
Contains the parameters for CreateNatGateway.
- See Also:
-
Field Summary
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates a shallow clone of this request.boolean
The allocation ID of an Elastic IP address to associate with the NAT gateway.Unique, case-sensitive identifier you provide to ensure the idempotency of the request.This method is intended for internal use only.The subnet in which to create the NAT gateway.int
hashCode()
void
setAllocationId
(String allocationId) The allocation ID of an Elastic IP address to associate with the NAT gateway.void
setClientToken
(String clientToken) Unique, case-sensitive identifier you provide to ensure the idempotency of the request.void
setSubnetId
(String subnetId) The subnet in which to create the NAT gateway.toString()
Returns a string representation of this object; useful for testing and debugging.withAllocationId
(String allocationId) The allocation ID of an Elastic IP address to associate with the NAT gateway.withClientToken
(String clientToken) Unique, case-sensitive identifier you provide to ensure the idempotency of the request.withSubnetId
(String subnetId) The subnet in which to create the NAT gateway.Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
Constructor Details
-
CreateNatGatewayRequest
public CreateNatGatewayRequest()
-
-
Method Details
-
setSubnetId
The subnet in which to create the NAT gateway.
- Parameters:
subnetId
- The subnet in which to create the NAT gateway.
-
getSubnetId
The subnet in which to create the NAT gateway.
- Returns:
- The subnet in which to create the NAT gateway.
-
withSubnetId
The subnet in which to create the NAT gateway.
- Parameters:
subnetId
- The subnet in which to create the NAT gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAllocationId
The allocation ID of an Elastic IP address to associate with the NAT gateway. If the Elastic IP address is associated with another resource, you must first disassociate it.
- Parameters:
allocationId
- The allocation ID of an Elastic IP address to associate with the NAT gateway. If the Elastic IP address is associated with another resource, you must first disassociate it.
-
getAllocationId
The allocation ID of an Elastic IP address to associate with the NAT gateway. If the Elastic IP address is associated with another resource, you must first disassociate it.
- Returns:
- The allocation ID of an Elastic IP address to associate with the NAT gateway. If the Elastic IP address is associated with another resource, you must first disassociate it.
-
withAllocationId
The allocation ID of an Elastic IP address to associate with the NAT gateway. If the Elastic IP address is associated with another resource, you must first disassociate it.
- Parameters:
allocationId
- The allocation ID of an Elastic IP address to associate with the 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.
-
setClientToken
Unique, case-sensitive identifier 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 you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency.Constraint: Maximum 64 ASCII characters.
-
getClientToken
Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency.
Constraint: Maximum 64 ASCII characters.
- Returns:
- Unique, case-sensitive identifier you provide to ensure the
idempotency of the request. For more information, see How to Ensure Idempotency.
Constraint: Maximum 64 ASCII characters.
-
withClientToken
Unique, case-sensitive identifier 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 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.
-
getDryRunRequest
This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run.- Specified by:
getDryRunRequest
in interfaceDryRunSupportedRequest<CreateNatGatewayRequest>
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
-