public class NatGateway
extends java.lang.Object
implements java.io.Serializable
Describes a NAT gateway.
Constructor and Description |
---|
NatGateway() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.util.Date |
getCreateTime()
The date and time the NAT gateway was created.
|
java.util.Date |
getDeleteTime()
The date and time the NAT gateway was deleted, if applicable.
|
java.lang.String |
getFailureCode()
If the NAT gateway could not be created, specifies the error code for
the failure.
|
java.lang.String |
getFailureMessage()
If the NAT gateway could not be created, specifies the error message
for the failure, that corresponds to the error code.
|
java.util.List<NatGatewayAddress> |
getNatGatewayAddresses()
Information about the IP addresses and network interface associated
with the NAT gateway.
|
java.lang.String |
getNatGatewayId()
The ID of the NAT gateway.
|
ProvisionedBandwidth |
getProvisionedBandwidth()
Reserved.
|
java.lang.String |
getState()
The state of the NAT gateway.
|
java.lang.String |
getSubnetId()
The ID of the subnet in which the NAT gateway is located.
|
java.lang.String |
getVpcId()
The ID of the VPC in which the NAT gateway is located.
|
int |
hashCode() |
void |
setCreateTime(java.util.Date createTime)
The date and time the NAT gateway was created.
|
void |
setDeleteTime(java.util.Date deleteTime)
The date and time the NAT gateway was deleted, if applicable.
|
void |
setFailureCode(java.lang.String failureCode)
If the NAT gateway could not be created, specifies the error code for
the failure.
|
void |
setFailureMessage(java.lang.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(java.util.Collection<NatGatewayAddress> natGatewayAddresses)
Information about the IP addresses and network interface associated
with the NAT gateway.
|
void |
setNatGatewayId(java.lang.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(java.lang.String state)
The state of the NAT gateway.
|
void |
setSubnetId(java.lang.String subnetId)
The ID of the subnet in which the NAT gateway is located.
|
void |
setVpcId(java.lang.String vpcId)
The ID of the VPC in which the NAT gateway is located.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
NatGateway |
withCreateTime(java.util.Date createTime)
The date and time the NAT gateway was created.
|
NatGateway |
withDeleteTime(java.util.Date deleteTime)
The date and time the NAT gateway was deleted, if applicable.
|
NatGateway |
withFailureCode(java.lang.String failureCode)
If the NAT gateway could not be created, specifies the error code for
the failure.
|
NatGateway |
withFailureMessage(java.lang.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(java.util.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(java.lang.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(java.lang.String state)
The state of the NAT gateway.
|
NatGateway |
withSubnetId(java.lang.String subnetId)
The ID of the subnet in which the NAT gateway is located.
|
NatGateway |
withVpcId(java.lang.String vpcId)
The ID of the VPC in which the NAT gateway is located.
|
public java.lang.String getVpcId()
public void setVpcId(java.lang.String vpcId)
vpcId
- The ID of the VPC in which the NAT gateway is located.public NatGateway withVpcId(java.lang.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 java.lang.String getSubnetId()
public void setSubnetId(java.lang.String subnetId)
subnetId
- The ID of the subnet in which the NAT gateway is located.public NatGateway withSubnetId(java.lang.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 java.lang.String getNatGatewayId()
public void setNatGatewayId(java.lang.String natGatewayId)
natGatewayId
- The ID of the NAT gateway.public NatGateway withNatGatewayId(java.lang.String natGatewayId)
Returns a reference to this object so that method calls can be chained together.
natGatewayId
- The ID of the NAT gateway.public java.util.Date getCreateTime()
public void setCreateTime(java.util.Date createTime)
createTime
- The date and time the NAT gateway was created.public NatGateway withCreateTime(java.util.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 java.util.Date getDeleteTime()
public void setDeleteTime(java.util.Date deleteTime)
deleteTime
- The date and time the NAT gateway was deleted, if applicable.public NatGateway withDeleteTime(java.util.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 java.util.List<NatGatewayAddress> getNatGatewayAddresses()
public void setNatGatewayAddresses(java.util.Collection<NatGatewayAddress> natGatewayAddresses)
natGatewayAddresses
- Information about the IP addresses and network interface associated
with the NAT gateway.public NatGateway withNatGatewayAddresses(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 NatGateway withNatGatewayAddresses(java.util.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 java.lang.String getState()
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.
Constraints:
Allowed Values: pending, failed, available, deleting, deleted
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(java.lang.String state)
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.
Constraints:
Allowed Values: pending, failed, available, deleting, deleted
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(java.lang.String state)
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.
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. 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)
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.
Constraints:
Allowed Values: pending, failed, available, deleting, deleted
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)
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.
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. 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 java.lang.String getFailureCode()
InsufficientFreeAddressesInSubnet
|
Gateway.NotAttached
|
InvalidAllocationID.NotFound
|
Resource.AlreadyAssociated
| InternalError
|
InvalidSubnetID.NotFound
)InsufficientFreeAddressesInSubnet
|
Gateway.NotAttached
|
InvalidAllocationID.NotFound
|
Resource.AlreadyAssociated
| InternalError
|
InvalidSubnetID.NotFound
)public void setFailureCode(java.lang.String failureCode)
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 NatGateway withFailureCode(java.lang.String failureCode)
InsufficientFreeAddressesInSubnet
|
Gateway.NotAttached
|
InvalidAllocationID.NotFound
|
Resource.AlreadyAssociated
| InternalError
|
InvalidSubnetID.NotFound
)
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
|
InvalidSubnetID.NotFound
)public java.lang.String getFailureMessage()
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 void setFailureMessage(java.lang.String failureMessage)
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 NatGateway withFailureMessage(java.lang.String failureMessage)
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."
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. 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 ProvisionedBandwidth getProvisionedBandwidth()
public void setProvisionedBandwidth(ProvisionedBandwidth provisionedBandwidth)
provisionedBandwidth
- Reserved. If you need to sustain traffic greater than the documented
limits, contact us through the Support
Center.public NatGateway withProvisionedBandwidth(ProvisionedBandwidth provisionedBandwidth)
Returns a reference to this object so that method calls can be chained together.
provisionedBandwidth
- Reserved. If you need to sustain traffic greater than the documented
limits, contact us through the Support
Center.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.