Class CreateNatGatewayRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.ec2.model.CreateNatGatewayRequest
-
- All Implemented Interfaces:
ReadLimitInfo,DryRunSupportedRequest<CreateNatGatewayRequest>,Serializable,Cloneable
public class CreateNatGatewayRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<CreateNatGatewayRequest>
Contains the parameters for CreateNatGateway.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description CreateNatGatewayRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateNatGatewayRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)StringgetAllocationId()The allocation ID of an Elastic IP address to associate with the NAT gateway.StringgetClientToken()Unique, case-sensitive identifier you provide to ensure the idempotency of the request.Request<CreateNatGatewayRequest>getDryRunRequest()This method is intended for internal use only.StringgetSubnetId()The subnet in which to create the NAT gateway.inthashCode()voidsetAllocationId(String allocationId)The allocation ID of an Elastic IP address to associate with the NAT gateway.voidsetClientToken(String clientToken)Unique, case-sensitive identifier you provide to ensure the idempotency of the request.voidsetSubnetId(String subnetId)The subnet in which to create the NAT gateway.StringtoString()Returns a string representation of this object; useful for testing and debugging.CreateNatGatewayRequestwithAllocationId(String allocationId)The allocation ID of an Elastic IP address to associate with the NAT gateway.CreateNatGatewayRequestwithClientToken(String clientToken)Unique, case-sensitive identifier you provide to ensure the idempotency of the request.CreateNatGatewayRequestwithSubnetId(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
-
-
-
-
Method Detail
-
setSubnetId
public void setSubnetId(String subnetId)
The subnet in which to create the NAT gateway.
- Parameters:
subnetId- The subnet in which to create the NAT gateway.
-
getSubnetId
public String getSubnetId()
The subnet in which to create the NAT gateway.
- Returns:
- The subnet in which to create the NAT gateway.
-
withSubnetId
public CreateNatGatewayRequest withSubnetId(String subnetId)
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
public void setAllocationId(String 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.
- 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
public String 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
public CreateNatGatewayRequest withAllocationId(String 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.
- 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
public void setClientToken(String 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.
- 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
public String 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
public CreateNatGatewayRequest withClientToken(String 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.
- 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
public Request<CreateNatGatewayRequest> getDryRunRequest()
This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run.- Specified by:
getDryRunRequestin interfaceDryRunSupportedRequest<CreateNatGatewayRequest>
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public CreateNatGatewayRequest clone()
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
Object.clone()
-
-