public class NatGateway extends Object implements Serializable, Cloneable
Describes a NAT gateway.
Constructor and Description |
---|
NatGateway() |
Modifier and Type | Method and Description |
---|---|
NatGateway |
clone() |
boolean |
equals(Object obj) |
Date |
getCreateTime()
The date and time the NAT gateway was created.
|
Date |
getDeleteTime()
The date and time the NAT gateway was deleted, if applicable.
|
String |
getFailureCode()
If the NAT gateway could not be created, specifies the error code for
the failure.
|
String |
getFailureMessage()
If the NAT gateway could not be created, specifies the error message
for the failure, that corresponds to the error code.
|
List<NatGatewayAddress> |
getNatGatewayAddresses()
Information about the IP addresses and network interface associated
with the NAT gateway.
|
String |
getNatGatewayId()
The ID of the NAT gateway.
|
String |
getState()
The state of the NAT gateway.
|
String |
getSubnetId()
The ID of the subnet in which the NAT gateway is located.
|
String |
getVpcId()
The ID of the VPC in which the NAT gateway is located.
|
int |
hashCode() |
void |
setCreateTime(Date createTime)
The date and time the NAT gateway was created.
|
void |
setDeleteTime(Date deleteTime)
The date and time the NAT gateway was deleted, if applicable.
|
void |
setFailureCode(String failureCode)
If the NAT gateway could not be created, specifies the error code for
the failure.
|
void |
setFailureMessage(String failureMessage)
If the NAT gateway could not be created, specifies the error message
for the failure, that corresponds to the error code.
|
void |
setNatGatewayAddresses(Collection<NatGatewayAddress> natGatewayAddresses)
Information about the IP addresses and network interface associated
with the NAT gateway.
|
void |
setNatGatewayId(String natGatewayId)
The ID of the NAT gateway.
|
void |
setState(NatGatewayState state)
The state of the NAT gateway.
|
void |
setState(String state)
The state of the NAT gateway.
|
void |
setSubnetId(String subnetId)
The ID of the subnet in which the NAT gateway is located.
|
void |
setVpcId(String vpcId)
The ID of the VPC in which the NAT gateway is located.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
NatGateway |
withCreateTime(Date createTime)
The date and time the NAT gateway was created.
|
NatGateway |
withDeleteTime(Date deleteTime)
The date and time the NAT gateway was deleted, if applicable.
|
NatGateway |
withFailureCode(String failureCode)
If the NAT gateway could not be created, specifies the error code for
the failure.
|
NatGateway |
withFailureMessage(String failureMessage)
If the NAT gateway could not be created, specifies the error message
for the failure, that corresponds to the error code.
|
NatGateway |
withNatGatewayAddresses(Collection<NatGatewayAddress> natGatewayAddresses)
Information about the IP addresses and network interface associated
with the NAT gateway.
|
NatGateway |
withNatGatewayAddresses(NatGatewayAddress... natGatewayAddresses)
Information about the IP addresses and network interface associated
with the NAT gateway.
|
NatGateway |
withNatGatewayId(String natGatewayId)
The ID of the NAT gateway.
|
NatGateway |
withState(NatGatewayState state)
The state of the NAT gateway.
|
NatGateway |
withState(String state)
The state of the NAT gateway.
|
NatGateway |
withSubnetId(String subnetId)
The ID of the subnet in which the NAT gateway is located.
|
NatGateway |
withVpcId(String vpcId)
The ID of the VPC in which the NAT gateway is located.
|
public String getVpcId()
public void setVpcId(String vpcId)
vpcId
- The ID of the VPC in which the NAT gateway is located.public NatGateway withVpcId(String vpcId)
Returns a reference to this object so that method calls can be chained together.
vpcId
- The ID of the VPC in which the NAT gateway is located.public String getSubnetId()
public void setSubnetId(String subnetId)
subnetId
- The ID of the subnet in which the NAT gateway is located.public NatGateway withSubnetId(String subnetId)
Returns a reference to this object so that method calls can be chained together.
subnetId
- The ID of the subnet in which the NAT gateway is located.public String getNatGatewayId()
public void setNatGatewayId(String natGatewayId)
natGatewayId
- The ID of the NAT gateway.public NatGateway withNatGatewayId(String natGatewayId)
Returns a reference to this object so that method calls can be chained together.
natGatewayId
- The ID of the NAT gateway.public Date getCreateTime()
public void setCreateTime(Date createTime)
createTime
- The date and time the NAT gateway was created.public NatGateway withCreateTime(Date createTime)
Returns a reference to this object so that method calls can be chained together.
createTime
- The date and time the NAT gateway was created.public Date getDeleteTime()
public void setDeleteTime(Date deleteTime)
deleteTime
- The date and time the NAT gateway was deleted, if applicable.public NatGateway withDeleteTime(Date deleteTime)
Returns a reference to this object so that method calls can be chained together.
deleteTime
- The date and time the NAT gateway was deleted, if applicable.public List<NatGatewayAddress> getNatGatewayAddresses()
public void setNatGatewayAddresses(Collection<NatGatewayAddress> natGatewayAddresses)
natGatewayAddresses
- Information about the IP addresses and network interface associated
with the NAT gateway.public NatGateway withNatGatewayAddresses(NatGatewayAddress... natGatewayAddresses)
NOTE: This method appends the values to the existing list (if
any). Use setNatGatewayAddresses(java.util.Collection)
or
withNatGatewayAddresses(java.util.Collection)
if you want to
override the existing values.
Returns a reference to this object so that method calls can be chained together.
natGatewayAddresses
- Information about the IP addresses and network interface associated
with the NAT gateway.public NatGateway withNatGatewayAddresses(Collection<NatGatewayAddress> natGatewayAddresses)
Returns a reference to this object so that method calls can be chained together.
natGatewayAddresses
- Information about the IP addresses and network interface associated
with the NAT gateway.public String getState()
Constraints:
Allowed Values: pending, failed, available, deleting, deleted
NatGatewayState
public void setState(String state)
Constraints:
Allowed Values: pending, failed, available, deleting, deleted
state
- The state of the NAT gateway.NatGatewayState
public NatGateway withState(String state)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: pending, failed, available, deleting, deleted
state
- The state of the NAT gateway.NatGatewayState
public void setState(NatGatewayState state)
Constraints:
Allowed Values: pending, failed, available, deleting, deleted
state
- The state of the NAT gateway.NatGatewayState
public NatGateway withState(NatGatewayState state)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: pending, failed, available, deleting, deleted
state
- The state of the NAT gateway.NatGatewayState
public String getFailureCode()
InsufficientFreeAddressesInSubnet
|
Gateway.NotAttached
|
InvalidAllocationID.NotFound
|
Resource.AlreadyAssociated
| InternalError
)InsufficientFreeAddressesInSubnet
|
Gateway.NotAttached
|
InvalidAllocationID.NotFound
|
Resource.AlreadyAssociated
| InternalError
)public void setFailureCode(String failureCode)
InsufficientFreeAddressesInSubnet
|
Gateway.NotAttached
|
InvalidAllocationID.NotFound
|
Resource.AlreadyAssociated
| InternalError
)failureCode
- If the NAT gateway could not be created, specifies the error code for
the failure. (InsufficientFreeAddressesInSubnet
|
Gateway.NotAttached
|
InvalidAllocationID.NotFound
|
Resource.AlreadyAssociated
| InternalError
)public NatGateway withFailureCode(String failureCode)
InsufficientFreeAddressesInSubnet
|
Gateway.NotAttached
|
InvalidAllocationID.NotFound
|
Resource.AlreadyAssociated
| InternalError
)
Returns a reference to this object so that method calls can be chained together.
failureCode
- If the NAT gateway could not be created, specifies the error code for
the failure. (InsufficientFreeAddressesInSubnet
|
Gateway.NotAttached
|
InvalidAllocationID.NotFound
|
Resource.AlreadyAssociated
| InternalError
)public String getFailureMessage()
Subnet has insufficient free
addresses to create this NAT gateway
Network vpc-xxxxxxxx has no Internet
gateway attached
Elastic IP address eipalloc-xxxxxxxx could not be associated
with this NAT gateway
Elastic IP address eipalloc-xxxxxxxx is already
associated
Network interface
eni-xxxxxxxx, created and used internally by this NAT gateway is in an
invalid state. Please try again.
Subnet has insufficient free
addresses to create this NAT gateway
Network vpc-xxxxxxxx has no Internet
gateway attached
Elastic IP address eipalloc-xxxxxxxx could not be associated
with this NAT gateway
Elastic IP address eipalloc-xxxxxxxx is already
associated
Network interface
eni-xxxxxxxx, created and used internally by this NAT gateway is in an
invalid state. Please try again.
public void setFailureMessage(String failureMessage)
Subnet has insufficient free
addresses to create this NAT gateway
Network vpc-xxxxxxxx has no Internet
gateway attached
Elastic IP address eipalloc-xxxxxxxx could not be associated
with this NAT gateway
Elastic IP address eipalloc-xxxxxxxx is already
associated
Network interface
eni-xxxxxxxx, created and used internally by this NAT gateway is in an
invalid state. Please try again.
failureMessage
- If the NAT gateway could not be created, specifies the error message
for the failure, that corresponds to the error code. Subnet has insufficient free
addresses to create this NAT gateway
Network vpc-xxxxxxxx has no Internet
gateway attached
Elastic IP address eipalloc-xxxxxxxx could not be associated
with this NAT gateway
Elastic IP address eipalloc-xxxxxxxx is already
associated
Network interface
eni-xxxxxxxx, created and used internally by this NAT gateway is in an
invalid state. Please try again.
public NatGateway withFailureMessage(String failureMessage)
Subnet has insufficient free
addresses to create this NAT gateway
Network vpc-xxxxxxxx has no Internet
gateway attached
Elastic IP address eipalloc-xxxxxxxx could not be associated
with this NAT gateway
Elastic IP address eipalloc-xxxxxxxx is already
associated
Network interface
eni-xxxxxxxx, created and used internally by this NAT gateway is in an
invalid state. Please try again.
Returns a reference to this object so that method calls can be chained together.
failureMessage
- If the NAT gateway could not be created, specifies the error message
for the failure, that corresponds to the error code. Subnet has insufficient free
addresses to create this NAT gateway
Network vpc-xxxxxxxx has no Internet
gateway attached
Elastic IP address eipalloc-xxxxxxxx could not be associated
with this NAT gateway
Elastic IP address eipalloc-xxxxxxxx is already
associated
Network interface
eni-xxxxxxxx, created and used internally by this NAT gateway is in an
invalid state. Please try again.
public String toString()
toString
in class Object
Object.toString()
public NatGateway clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.