public class CreateNatGatewayRequest extends AmazonWebServiceRequest implements java.io.Serializable
CreateNatGateway operation
.
Creates a NAT gateway in the specified subnet. A NAT gateway can be used to enable instances in a private subnet to connect to the Internet. This action creates a network interface in the specified subnet with a private IP address from the IP address range of the subnet. For more information, see NAT Gateways in the Amazon Virtual Private Cloud User Guide .
Constructor and Description |
---|
CreateNatGatewayRequest() |
Modifier and Type | Method and Description |
---|---|
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.
|
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.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getSubnetId()
public void setSubnetId(java.lang.String subnetId)
subnetId
- The subnet in which to create the NAT gateway.public CreateNatGatewayRequest withSubnetId(java.lang.String subnetId)
Returns a reference to this object so that method calls can be chained together.
subnetId
- The subnet in which to create the NAT gateway.public java.lang.String getAllocationId()
public void setAllocationId(java.lang.String allocationId)
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 CreateNatGatewayRequest withAllocationId(java.lang.String allocationId)
Returns a reference to this object so that method calls can be chained together.
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 getClientToken()
Constraint: Maximum 64 ASCII characters.
Constraint: Maximum 64 ASCII characters.
public void setClientToken(java.lang.String clientToken)
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 CreateNatGatewayRequest withClientToken(java.lang.String clientToken)
Constraint: Maximum 64 ASCII characters.
Returns a reference to this object so that method calls can be chained together.
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 toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.