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 void setVpcId(String vpcId)
The ID of the VPC in which the NAT gateway is located.
vpcId
- The ID of the VPC in which the NAT gateway is located.public String getVpcId()
The ID of the VPC in which the NAT gateway is located.
public NatGateway withVpcId(String vpcId)
The ID of the VPC in which the NAT gateway is located.
vpcId
- The ID of the VPC in which the NAT gateway is located.public void setSubnetId(String subnetId)
The ID of the subnet in which the NAT gateway is located.
subnetId
- The ID of the subnet in which the NAT gateway is located.public String getSubnetId()
The ID of the subnet in which the NAT gateway is located.
public NatGateway withSubnetId(String subnetId)
The ID of the subnet in which the NAT gateway is located.
subnetId
- The ID of the subnet in which the NAT gateway is located.public void setNatGatewayId(String natGatewayId)
The ID of the NAT gateway.
natGatewayId
- The ID of the NAT gateway.public String getNatGatewayId()
The ID of the NAT gateway.
public NatGateway withNatGatewayId(String natGatewayId)
The ID of the NAT gateway.
natGatewayId
- The ID of the NAT gateway.public void setCreateTime(Date createTime)
The date and time the NAT gateway was created.
createTime
- The date and time the NAT gateway was created.public Date getCreateTime()
The date and time the NAT gateway was created.
public NatGateway withCreateTime(Date createTime)
The date and time the NAT gateway was created.
createTime
- The date and time the NAT gateway was created.public void setDeleteTime(Date deleteTime)
The date and time the NAT gateway was deleted, if applicable.
deleteTime
- The date and time the NAT gateway was deleted, if applicable.public Date getDeleteTime()
The date and time the NAT gateway was deleted, if applicable.
public NatGateway withDeleteTime(Date deleteTime)
The date and time the NAT gateway was deleted, if applicable.
deleteTime
- The date and time the NAT gateway was deleted, if applicable.public List<NatGatewayAddress> getNatGatewayAddresses()
Information about the IP addresses and network interface associated with the NAT gateway.
public void setNatGatewayAddresses(Collection<NatGatewayAddress> natGatewayAddresses)
Information about the IP addresses and network interface associated with the NAT gateway.
natGatewayAddresses
- Information about the IP addresses and network interface
associated with the NAT gateway.public NatGateway withNatGatewayAddresses(NatGatewayAddress... natGatewayAddresses)
Information about the IP addresses and network interface associated with the NAT gateway.
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.
natGatewayAddresses
- Information about the IP addresses and network interface
associated with the NAT gateway.public NatGateway withNatGatewayAddresses(Collection<NatGatewayAddress> natGatewayAddresses)
Information about the IP addresses and network interface associated with the NAT gateway.
natGatewayAddresses
- Information about the IP addresses and network interface
associated with the NAT gateway.public void setState(String state)
The state of the NAT gateway.
state
- The state of the NAT gateway.NatGatewayState
public String getState()
The state of the NAT gateway.
NatGatewayState
public NatGateway withState(String state)
The state of the NAT gateway.
state
- The state of the NAT gateway.NatGatewayState
public void setState(NatGatewayState state)
The state of the NAT gateway.
state
- The state of the NAT gateway.NatGatewayState
public NatGateway withState(NatGatewayState state)
The state of the NAT gateway.
state
- The state of the NAT gateway.NatGatewayState
public void setFailureCode(String failureCode)
If the NAT gateway could not be created, specifies the error code for the
failure. (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 String getFailureCode()
If the NAT gateway could not be created, specifies the error code for the
failure. (InsufficientFreeAddressesInSubnet
|
Gateway.NotAttached
|
InvalidAllocationID.NotFound
|
Resource.AlreadyAssociated
| InternalError
)
InsufficientFreeAddressesInSubnet
| Gateway.NotAttached
|
InvalidAllocationID.NotFound
|
Resource.AlreadyAssociated
|
InternalError
)public NatGateway withFailureCode(String failureCode)
If the NAT gateway could not be created, specifies the error code for the
failure. (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 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.
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 String getFailureMessage()
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.
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)
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.
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.