@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateNatGatewayRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<CreateNatGatewayRequest>
NOOP
Constructor and Description |
---|
CreateNatGatewayRequest() |
Modifier and Type | Method and Description |
---|---|
CreateNatGatewayRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getAllocationId()
[Public NAT gateways only] The allocation ID of an Elastic IP address to associate with the NAT gateway.
|
String |
getClientToken()
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
String |
getConnectivityType()
Indicates whether the NAT gateway supports public or private connectivity.
|
Request<CreateNatGatewayRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
String |
getPrivateIpAddress()
The private IPv4 address to assign to the NAT gateway.
|
List<String> |
getSecondaryAllocationIds()
Secondary EIP allocation IDs.
|
Integer |
getSecondaryPrivateIpAddressCount()
[Private NAT gateway only] The number of secondary private IPv4 addresses you want to assign to the NAT gateway.
|
List<String> |
getSecondaryPrivateIpAddresses()
Secondary private IPv4 addresses.
|
String |
getSubnetId()
The ID of the subnet in which to create the NAT gateway.
|
List<TagSpecification> |
getTagSpecifications()
The tags to assign to the NAT gateway.
|
int |
hashCode() |
void |
setAllocationId(String allocationId)
[Public NAT gateways only] The allocation ID of an Elastic IP address to associate with the NAT gateway.
|
void |
setClientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
void |
setConnectivityType(String connectivityType)
Indicates whether the NAT gateway supports public or private connectivity.
|
void |
setPrivateIpAddress(String privateIpAddress)
The private IPv4 address to assign to the NAT gateway.
|
void |
setSecondaryAllocationIds(Collection<String> secondaryAllocationIds)
Secondary EIP allocation IDs.
|
void |
setSecondaryPrivateIpAddressCount(Integer secondaryPrivateIpAddressCount)
[Private NAT gateway only] The number of secondary private IPv4 addresses you want to assign to the NAT gateway.
|
void |
setSecondaryPrivateIpAddresses(Collection<String> secondaryPrivateIpAddresses)
Secondary private IPv4 addresses.
|
void |
setSubnetId(String subnetId)
The ID of the subnet in which to create the NAT gateway.
|
void |
setTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to assign to the NAT gateway.
|
String |
toString()
Returns a string representation of this object.
|
CreateNatGatewayRequest |
withAllocationId(String allocationId)
[Public NAT gateways only] The allocation ID of an Elastic IP address to associate with the NAT gateway.
|
CreateNatGatewayRequest |
withClientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
CreateNatGatewayRequest |
withConnectivityType(ConnectivityType connectivityType)
Indicates whether the NAT gateway supports public or private connectivity.
|
CreateNatGatewayRequest |
withConnectivityType(String connectivityType)
Indicates whether the NAT gateway supports public or private connectivity.
|
CreateNatGatewayRequest |
withPrivateIpAddress(String privateIpAddress)
The private IPv4 address to assign to the NAT gateway.
|
CreateNatGatewayRequest |
withSecondaryAllocationIds(Collection<String> secondaryAllocationIds)
Secondary EIP allocation IDs.
|
CreateNatGatewayRequest |
withSecondaryAllocationIds(String... secondaryAllocationIds)
Secondary EIP allocation IDs.
|
CreateNatGatewayRequest |
withSecondaryPrivateIpAddressCount(Integer secondaryPrivateIpAddressCount)
[Private NAT gateway only] The number of secondary private IPv4 addresses you want to assign to the NAT gateway.
|
CreateNatGatewayRequest |
withSecondaryPrivateIpAddresses(Collection<String> secondaryPrivateIpAddresses)
Secondary private IPv4 addresses.
|
CreateNatGatewayRequest |
withSecondaryPrivateIpAddresses(String... secondaryPrivateIpAddresses)
Secondary private IPv4 addresses.
|
CreateNatGatewayRequest |
withSubnetId(String subnetId)
The ID of the subnet in which to create the NAT gateway.
|
CreateNatGatewayRequest |
withTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to assign to the NAT gateway.
|
CreateNatGatewayRequest |
withTagSpecifications(TagSpecification... tagSpecifications)
The tags to assign to the NAT gateway.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setAllocationId(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.
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.public String getAllocationId()
[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.
public CreateNatGatewayRequest withAllocationId(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.
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.public void setClientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring idempotency.
Constraint: Maximum 64 ASCII characters.
clientToken
- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more
information, see Ensuring
idempotency.
Constraint: Maximum 64 ASCII characters.
public String getClientToken()
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring idempotency.
Constraint: Maximum 64 ASCII characters.
Constraint: Maximum 64 ASCII characters.
public CreateNatGatewayRequest withClientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring idempotency.
Constraint: Maximum 64 ASCII characters.
clientToken
- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more
information, see Ensuring
idempotency.
Constraint: Maximum 64 ASCII characters.
public void setSubnetId(String subnetId)
The ID of the subnet in which to create the NAT gateway.
subnetId
- The ID of the subnet in which to create the NAT gateway.public String getSubnetId()
The ID of the subnet in which to create the NAT gateway.
public CreateNatGatewayRequest withSubnetId(String subnetId)
The ID of the subnet in which to create the NAT gateway.
subnetId
- The ID of the subnet in which to create the NAT gateway.public List<TagSpecification> getTagSpecifications()
The tags to assign to the NAT gateway.
public void setTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to assign to the NAT gateway.
tagSpecifications
- The tags to assign to the NAT gateway.public CreateNatGatewayRequest withTagSpecifications(TagSpecification... tagSpecifications)
The tags to assign to the NAT gateway.
NOTE: This method appends the values to the existing list (if any). Use
setTagSpecifications(java.util.Collection)
or withTagSpecifications(java.util.Collection)
if
you want to override the existing values.
tagSpecifications
- The tags to assign to the NAT gateway.public CreateNatGatewayRequest withTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to assign to the NAT gateway.
tagSpecifications
- The tags to assign to the NAT gateway.public void setConnectivityType(String connectivityType)
Indicates whether the NAT gateway supports public or private connectivity. The default is public connectivity.
connectivityType
- Indicates whether the NAT gateway supports public or private connectivity. The default is public
connectivity.ConnectivityType
public String getConnectivityType()
Indicates whether the NAT gateway supports public or private connectivity. The default is public connectivity.
ConnectivityType
public CreateNatGatewayRequest withConnectivityType(String connectivityType)
Indicates whether the NAT gateway supports public or private connectivity. The default is public connectivity.
connectivityType
- Indicates whether the NAT gateway supports public or private connectivity. The default is public
connectivity.ConnectivityType
public CreateNatGatewayRequest withConnectivityType(ConnectivityType connectivityType)
Indicates whether the NAT gateway supports public or private connectivity. The default is public connectivity.
connectivityType
- Indicates whether the NAT gateway supports public or private connectivity. The default is public
connectivity.ConnectivityType
public void setPrivateIpAddress(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.
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.public String getPrivateIpAddress()
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.
public CreateNatGatewayRequest withPrivateIpAddress(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.
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.public List<String> getSecondaryAllocationIds()
Secondary EIP allocation IDs. For more information, see Create a NAT gateway in the Amazon VPC User Guide.
public void setSecondaryAllocationIds(Collection<String> secondaryAllocationIds)
Secondary EIP allocation IDs. For more information, see Create a NAT gateway in the Amazon VPC User Guide.
secondaryAllocationIds
- Secondary EIP allocation IDs. For more information, see Create a
NAT gateway in the Amazon VPC User Guide.public CreateNatGatewayRequest withSecondaryAllocationIds(String... secondaryAllocationIds)
Secondary EIP allocation IDs. For more information, see Create a NAT gateway in the Amazon VPC User Guide.
NOTE: This method appends the values to the existing list (if any). Use
setSecondaryAllocationIds(java.util.Collection)
or
withSecondaryAllocationIds(java.util.Collection)
if you want to override the existing values.
secondaryAllocationIds
- Secondary EIP allocation IDs. For more information, see Create a
NAT gateway in the Amazon VPC User Guide.public CreateNatGatewayRequest withSecondaryAllocationIds(Collection<String> secondaryAllocationIds)
Secondary EIP allocation IDs. For more information, see Create a NAT gateway in the Amazon VPC User Guide.
secondaryAllocationIds
- Secondary EIP allocation IDs. For more information, see Create a
NAT gateway in the Amazon VPC User Guide.public List<String> getSecondaryPrivateIpAddresses()
Secondary private IPv4 addresses. For more information about secondary addresses, see Create a NAT gateway in the Amazon VPC User Guide.
public void setSecondaryPrivateIpAddresses(Collection<String> secondaryPrivateIpAddresses)
Secondary private IPv4 addresses. For more information about secondary addresses, see Create a NAT gateway in the Amazon VPC User Guide.
secondaryPrivateIpAddresses
- Secondary private IPv4 addresses. For more information about secondary addresses, see Create a
NAT gateway in the Amazon VPC User Guide.public CreateNatGatewayRequest withSecondaryPrivateIpAddresses(String... secondaryPrivateIpAddresses)
Secondary private IPv4 addresses. For more information about secondary addresses, see Create a NAT gateway in the Amazon VPC User Guide.
NOTE: This method appends the values to the existing list (if any). Use
setSecondaryPrivateIpAddresses(java.util.Collection)
or
withSecondaryPrivateIpAddresses(java.util.Collection)
if you want to override the existing values.
secondaryPrivateIpAddresses
- Secondary private IPv4 addresses. For more information about secondary addresses, see Create a
NAT gateway in the Amazon VPC User Guide.public CreateNatGatewayRequest withSecondaryPrivateIpAddresses(Collection<String> secondaryPrivateIpAddresses)
Secondary private IPv4 addresses. For more information about secondary addresses, see Create a NAT gateway in the Amazon VPC User Guide.
secondaryPrivateIpAddresses
- Secondary private IPv4 addresses. For more information about secondary addresses, see Create a
NAT gateway in the Amazon VPC User Guide.public void setSecondaryPrivateIpAddressCount(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.
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.public Integer getSecondaryPrivateIpAddressCount()
[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.
public CreateNatGatewayRequest withSecondaryPrivateIpAddressCount(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.
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.public Request<CreateNatGatewayRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<CreateNatGatewayRequest>
public String toString()
toString
in class Object
Object.toString()
public CreateNatGatewayRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()