public class CreateNatGatewayRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable, DryRunSupportedRequest<CreateNatGatewayRequest>
Contains the parameters for CreateNatGateway.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
allocationId
The allocation ID of an Elastic IP address to associate with the NAT
gateway.
|
private java.lang.String |
clientToken
Unique, case-sensitive identifier you provide to ensure the idempotency
of the request.
|
private java.lang.String |
subnetId
The subnet in which to create the NAT gateway.
|
NOOP
Constructor and Description |
---|
CreateNatGatewayRequest() |
Modifier and Type | Method and Description |
---|---|
CreateNatGatewayRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAllocationId()
The allocation ID of an Elastic IP address to associate with the NAT
gateway.
|
java.lang.String |
getClientToken()
Unique, case-sensitive identifier you provide to ensure the idempotency
of the request.
|
Request<CreateNatGatewayRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
java.lang.String |
getSubnetId()
The subnet in which to create the NAT gateway.
|
int |
hashCode() |
void |
setAllocationId(java.lang.String allocationId)
The allocation ID of an Elastic IP address to associate with the NAT
gateway.
|
void |
setClientToken(java.lang.String clientToken)
Unique, case-sensitive identifier you provide to ensure the idempotency
of the request.
|
void |
setSubnetId(java.lang.String subnetId)
The subnet in which to create the NAT gateway.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateNatGatewayRequest |
withAllocationId(java.lang.String allocationId)
The allocation ID of an Elastic IP address to associate with the NAT
gateway.
|
CreateNatGatewayRequest |
withClientToken(java.lang.String clientToken)
Unique, case-sensitive identifier you provide to ensure the idempotency
of the request.
|
CreateNatGatewayRequest |
withSubnetId(java.lang.String subnetId)
The subnet in which to create the NAT gateway.
|
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
private java.lang.String subnetId
The subnet in which to create the NAT gateway.
private java.lang.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.
private java.lang.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.
public void setSubnetId(java.lang.String subnetId)
The subnet in which to create the NAT gateway.
subnetId
- The subnet in which to create the NAT gateway.public java.lang.String getSubnetId()
The subnet in which to create the NAT gateway.
public CreateNatGatewayRequest withSubnetId(java.lang.String subnetId)
The subnet in which to create the NAT gateway.
subnetId
- The subnet in which to create the NAT gateway.public void setAllocationId(java.lang.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.
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.public java.lang.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.
public CreateNatGatewayRequest withAllocationId(java.lang.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.
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.public void setClientToken(java.lang.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.
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.
public java.lang.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.
Constraint: Maximum 64 ASCII characters.
public CreateNatGatewayRequest withClientToken(java.lang.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.
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.
public Request<CreateNatGatewayRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<CreateNatGatewayRequest>
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public CreateNatGatewayRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()