@Generated(value="com.amazonaws:aws-java-sdk-code-generator") 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.
|
ProvisionedBandwidth |
getProvisionedBandwidth()
Reserved.
|
String |
getState()
The state of the NAT gateway.
|
String |
getSubnetId()
The ID of the subnet in which the NAT gateway is located.
|
List<Tag> |
getTags()
The tags for the NAT gateway.
|
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 |
setProvisionedBandwidth(ProvisionedBandwidth provisionedBandwidth)
Reserved.
|
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 |
setTags(Collection<Tag> tags)
The tags for the NAT gateway.
|
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 |
withProvisionedBandwidth(ProvisionedBandwidth provisionedBandwidth)
Reserved.
|
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 |
withTags(Collection<Tag> tags)
The tags for the NAT gateway.
|
NatGateway |
withTags(Tag... tags)
The tags for the NAT gateway.
|
NatGateway |
withVpcId(String vpcId)
The ID of the VPC in which the NAT gateway is located.
|
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 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
| InvalidSubnetID.NotFound
)
failureCode
- If the NAT gateway could not be created, specifies the error code for the failure. (
InsufficientFreeAddressesInSubnet
| Gateway.NotAttached
|
InvalidAllocationID.NotFound
| Resource.AlreadyAssociated
|
InternalError
| InvalidSubnetID.NotFound
)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
| InvalidSubnetID.NotFound
)
InsufficientFreeAddressesInSubnet
| Gateway.NotAttached
|
InvalidAllocationID.NotFound
| Resource.AlreadyAssociated
|
InternalError
| InvalidSubnetID.NotFound
)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
| InvalidSubnetID.NotFound
)
failureCode
- If the NAT gateway could not be created, specifies the error code for the failure. (
InsufficientFreeAddressesInSubnet
| Gateway.NotAttached
|
InvalidAllocationID.NotFound
| Resource.AlreadyAssociated
|
InternalError
| InvalidSubnetID.NotFound
)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.
For InsufficientFreeAddressesInSubnet: "Subnet has insufficient free addresses to create this NAT gateway"
For Gateway.NotAttached: "Network vpc-xxxxxxxx has no Internet gateway attached"
For InvalidAllocationID.NotFound: "Elastic IP address eipalloc-xxxxxxxx could not be associated with this NAT gateway"
For Resource.AlreadyAssociated: "Elastic IP address eipalloc-xxxxxxxx is already associated"
For InternalError: "Network interface eni-xxxxxxxx, created and used internally by this NAT gateway is in an invalid state. Please try again."
For InvalidSubnetID.NotFound: "The specified subnet subnet-xxxxxxxx does not exist or could not be found."
failureMessage
- If the NAT gateway could not be created, specifies the error message for the failure, that corresponds to
the error code.
For InsufficientFreeAddressesInSubnet: "Subnet has insufficient free addresses to create this NAT gateway"
For Gateway.NotAttached: "Network vpc-xxxxxxxx has no Internet gateway attached"
For InvalidAllocationID.NotFound: "Elastic IP address eipalloc-xxxxxxxx could not be associated with this NAT gateway"
For Resource.AlreadyAssociated: "Elastic IP address eipalloc-xxxxxxxx is already associated"
For InternalError: "Network interface eni-xxxxxxxx, created and used internally by this NAT gateway is in an invalid state. Please try again."
For InvalidSubnetID.NotFound: "The specified subnet subnet-xxxxxxxx does not exist or could not be found."
public String getFailureMessage()
If the NAT gateway could not be created, specifies the error message for the failure, that corresponds to the error code.
For InsufficientFreeAddressesInSubnet: "Subnet has insufficient free addresses to create this NAT gateway"
For Gateway.NotAttached: "Network vpc-xxxxxxxx has no Internet gateway attached"
For InvalidAllocationID.NotFound: "Elastic IP address eipalloc-xxxxxxxx could not be associated with this NAT gateway"
For Resource.AlreadyAssociated: "Elastic IP address eipalloc-xxxxxxxx is already associated"
For InternalError: "Network interface eni-xxxxxxxx, created and used internally by this NAT gateway is in an invalid state. Please try again."
For InvalidSubnetID.NotFound: "The specified subnet subnet-xxxxxxxx does not exist or could not be found."
For InsufficientFreeAddressesInSubnet: "Subnet has insufficient free addresses to create this NAT gateway"
For Gateway.NotAttached: "Network vpc-xxxxxxxx has no Internet gateway attached"
For InvalidAllocationID.NotFound: "Elastic IP address eipalloc-xxxxxxxx could not be associated with this NAT gateway"
For Resource.AlreadyAssociated: "Elastic IP address eipalloc-xxxxxxxx is already associated"
For InternalError: "Network interface eni-xxxxxxxx, created and used internally by this NAT gateway is in an invalid state. Please try again."
For InvalidSubnetID.NotFound: "The specified subnet subnet-xxxxxxxx does not exist or could not be found."
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.
For InsufficientFreeAddressesInSubnet: "Subnet has insufficient free addresses to create this NAT gateway"
For Gateway.NotAttached: "Network vpc-xxxxxxxx has no Internet gateway attached"
For InvalidAllocationID.NotFound: "Elastic IP address eipalloc-xxxxxxxx could not be associated with this NAT gateway"
For Resource.AlreadyAssociated: "Elastic IP address eipalloc-xxxxxxxx is already associated"
For InternalError: "Network interface eni-xxxxxxxx, created and used internally by this NAT gateway is in an invalid state. Please try again."
For InvalidSubnetID.NotFound: "The specified subnet subnet-xxxxxxxx does not exist or could not be found."
failureMessage
- If the NAT gateway could not be created, specifies the error message for the failure, that corresponds to
the error code.
For InsufficientFreeAddressesInSubnet: "Subnet has insufficient free addresses to create this NAT gateway"
For Gateway.NotAttached: "Network vpc-xxxxxxxx has no Internet gateway attached"
For InvalidAllocationID.NotFound: "Elastic IP address eipalloc-xxxxxxxx could not be associated with this NAT gateway"
For Resource.AlreadyAssociated: "Elastic IP address eipalloc-xxxxxxxx is already associated"
For InternalError: "Network interface eni-xxxxxxxx, created and used internally by this NAT gateway is in an invalid state. Please try again."
For InvalidSubnetID.NotFound: "The specified subnet subnet-xxxxxxxx does not exist or could not be found."
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 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 setProvisionedBandwidth(ProvisionedBandwidth provisionedBandwidth)
Reserved. If you need to sustain traffic greater than the documented limits, contact us through the Support Center.
provisionedBandwidth
- Reserved. If you need to sustain traffic greater than the documented limits,
contact us through the Support Center.public ProvisionedBandwidth getProvisionedBandwidth()
Reserved. If you need to sustain traffic greater than the documented limits, contact us through the Support Center.
public NatGateway withProvisionedBandwidth(ProvisionedBandwidth provisionedBandwidth)
Reserved. If you need to sustain traffic greater than the documented limits, contact us through the Support Center.
provisionedBandwidth
- Reserved. If you need to sustain traffic greater than the documented limits,
contact us through the Support Center.public void setState(String state)
The state of the NAT gateway.
pending
: The NAT gateway is being created and is not ready to process traffic.
failed
: The NAT gateway could not be created. Check the failureCode
and
failureMessage
fields for the reason.
available
: The NAT gateway is able to process traffic. This status remains until you delete the NAT
gateway, and does not indicate the health of the NAT gateway.
deleting
: The NAT gateway is in the process of being terminated and may still be processing traffic.
deleted
: The NAT gateway has been terminated and is no longer processing traffic.
state
- The state of the NAT gateway.
pending
: The NAT gateway is being created and is not ready to process traffic.
failed
: The NAT gateway could not be created. Check the failureCode
and
failureMessage
fields for the reason.
available
: The NAT gateway is able to process traffic. This status remains until you delete
the NAT gateway, and does not indicate the health of the NAT gateway.
deleting
: The NAT gateway is in the process of being terminated and may still be processing
traffic.
deleted
: The NAT gateway has been terminated and is no longer processing traffic.
NatGatewayState
public String getState()
The state of the NAT gateway.
pending
: The NAT gateway is being created and is not ready to process traffic.
failed
: The NAT gateway could not be created. Check the failureCode
and
failureMessage
fields for the reason.
available
: The NAT gateway is able to process traffic. This status remains until you delete the NAT
gateway, and does not indicate the health of the NAT gateway.
deleting
: The NAT gateway is in the process of being terminated and may still be processing traffic.
deleted
: The NAT gateway has been terminated and is no longer processing traffic.
pending
: The NAT gateway is being created and is not ready to process traffic.
failed
: The NAT gateway could not be created. Check the failureCode
and
failureMessage
fields for the reason.
available
: The NAT gateway is able to process traffic. This status remains until you delete
the NAT gateway, and does not indicate the health of the NAT gateway.
deleting
: The NAT gateway is in the process of being terminated and may still be processing
traffic.
deleted
: The NAT gateway has been terminated and is no longer processing traffic.
NatGatewayState
public NatGateway withState(String state)
The state of the NAT gateway.
pending
: The NAT gateway is being created and is not ready to process traffic.
failed
: The NAT gateway could not be created. Check the failureCode
and
failureMessage
fields for the reason.
available
: The NAT gateway is able to process traffic. This status remains until you delete the NAT
gateway, and does not indicate the health of the NAT gateway.
deleting
: The NAT gateway is in the process of being terminated and may still be processing traffic.
deleted
: The NAT gateway has been terminated and is no longer processing traffic.
state
- The state of the NAT gateway.
pending
: The NAT gateway is being created and is not ready to process traffic.
failed
: The NAT gateway could not be created. Check the failureCode
and
failureMessage
fields for the reason.
available
: The NAT gateway is able to process traffic. This status remains until you delete
the NAT gateway, and does not indicate the health of the NAT gateway.
deleting
: The NAT gateway is in the process of being terminated and may still be processing
traffic.
deleted
: The NAT gateway has been terminated and is no longer processing traffic.
NatGatewayState
public void setState(NatGatewayState state)
The state of the NAT gateway.
pending
: The NAT gateway is being created and is not ready to process traffic.
failed
: The NAT gateway could not be created. Check the failureCode
and
failureMessage
fields for the reason.
available
: The NAT gateway is able to process traffic. This status remains until you delete the NAT
gateway, and does not indicate the health of the NAT gateway.
deleting
: The NAT gateway is in the process of being terminated and may still be processing traffic.
deleted
: The NAT gateway has been terminated and is no longer processing traffic.
state
- The state of the NAT gateway.
pending
: The NAT gateway is being created and is not ready to process traffic.
failed
: The NAT gateway could not be created. Check the failureCode
and
failureMessage
fields for the reason.
available
: The NAT gateway is able to process traffic. This status remains until you delete
the NAT gateway, and does not indicate the health of the NAT gateway.
deleting
: The NAT gateway is in the process of being terminated and may still be processing
traffic.
deleted
: The NAT gateway has been terminated and is no longer processing traffic.
NatGatewayState
public NatGateway withState(NatGatewayState state)
The state of the NAT gateway.
pending
: The NAT gateway is being created and is not ready to process traffic.
failed
: The NAT gateway could not be created. Check the failureCode
and
failureMessage
fields for the reason.
available
: The NAT gateway is able to process traffic. This status remains until you delete the NAT
gateway, and does not indicate the health of the NAT gateway.
deleting
: The NAT gateway is in the process of being terminated and may still be processing traffic.
deleted
: The NAT gateway has been terminated and is no longer processing traffic.
state
- The state of the NAT gateway.
pending
: The NAT gateway is being created and is not ready to process traffic.
failed
: The NAT gateway could not be created. Check the failureCode
and
failureMessage
fields for the reason.
available
: The NAT gateway is able to process traffic. This status remains until you delete
the NAT gateway, and does not indicate the health of the NAT gateway.
deleting
: The NAT gateway is in the process of being terminated and may still be processing
traffic.
deleted
: The NAT gateway has been terminated and is no longer processing traffic.
NatGatewayState
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 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 List<Tag> getTags()
The tags for the NAT gateway.
public void setTags(Collection<Tag> tags)
The tags for the NAT gateway.
tags
- The tags for the NAT gateway.public NatGateway withTags(Tag... tags)
The tags for the NAT gateway.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- The tags for the NAT gateway.public NatGateway withTags(Collection<Tag> tags)
The tags for the NAT gateway.
tags
- The tags for the NAT gateway.public String toString()
toString
in class Object
Object.toString()
public NatGateway clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.