/* * Copyright 2010-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ package com.amazonaws.services.ec2.model; import java.io.Serializable; /** *
* Describes a NAT gateway. *
*/ public class NatGateway implements Serializable { /** * The ID of the VPC in which the NAT gateway is located. */ private String vpcId; /** * The ID of the subnet in which the NAT gateway is located. */ private String subnetId; /** * The ID of the NAT gateway. */ private String natGatewayId; /** * The date and time the NAT gateway was created. */ private java.util.Date createTime; /** * The date and time the NAT gateway was deleted, if applicable. */ private java.util.Date deleteTime; /** * Information about the IP addresses and network interface associated * with the NAT gateway. */ private com.amazonaws.internal.ListWithAutoConstructFlagpending
: 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
*/
private String state;
/**
* 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
)
*/
private String failureCode;
/**
* 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."
* Returns a reference to this object so that method calls can be chained together. * * @param vpcId The ID of the VPC in which the NAT gateway is located. * * @return A reference to this updated object so that method calls can be chained * together. */ public NatGateway withVpcId(String vpcId) { this.vpcId = vpcId; return this; } /** * The ID of the subnet in which the NAT gateway is located. * * @return The ID of the subnet in which the NAT gateway is located. */ public String getSubnetId() { return subnetId; } /** * The ID of the subnet in which the NAT gateway is located. * * @param subnetId The ID of the subnet in which the NAT gateway is located. */ public void setSubnetId(String subnetId) { this.subnetId = subnetId; } /** * The ID of the subnet in which the NAT gateway is located. *
* Returns a reference to this object so that method calls can be chained together. * * @param subnetId The ID of the subnet in which the NAT gateway is located. * * @return A reference to this updated object so that method calls can be chained * together. */ public NatGateway withSubnetId(String subnetId) { this.subnetId = subnetId; return this; } /** * The ID of the NAT gateway. * * @return The ID of the NAT gateway. */ public String getNatGatewayId() { return natGatewayId; } /** * The ID of the NAT gateway. * * @param natGatewayId The ID of the NAT gateway. */ public void setNatGatewayId(String natGatewayId) { this.natGatewayId = natGatewayId; } /** * The ID of the NAT gateway. *
* Returns a reference to this object so that method calls can be chained together. * * @param natGatewayId The ID of the NAT gateway. * * @return A reference to this updated object so that method calls can be chained * together. */ public NatGateway withNatGatewayId(String natGatewayId) { this.natGatewayId = natGatewayId; return this; } /** * The date and time the NAT gateway was created. * * @return The date and time the NAT gateway was created. */ public java.util.Date getCreateTime() { return createTime; } /** * The date and time the NAT gateway was created. * * @param createTime The date and time the NAT gateway was created. */ public void setCreateTime(java.util.Date createTime) { this.createTime = createTime; } /** * The date and time the NAT gateway was created. *
* Returns a reference to this object so that method calls can be chained together. * * @param createTime The date and time the NAT gateway was created. * * @return A reference to this updated object so that method calls can be chained * together. */ public NatGateway withCreateTime(java.util.Date createTime) { this.createTime = createTime; return this; } /** * The date and time the NAT gateway was deleted, if applicable. * * @return The date and time the NAT gateway was deleted, if applicable. */ public java.util.Date getDeleteTime() { return deleteTime; } /** * The date and time the NAT gateway was deleted, if applicable. * * @param deleteTime The date and time the NAT gateway was deleted, if applicable. */ public void setDeleteTime(java.util.Date deleteTime) { this.deleteTime = deleteTime; } /** * The date and time the NAT gateway was deleted, if applicable. *
* Returns a reference to this object so that method calls can be chained together.
*
* @param deleteTime The date and time the NAT gateway was deleted, if applicable.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public NatGateway withDeleteTime(java.util.Date deleteTime) {
this.deleteTime = deleteTime;
return this;
}
/**
* Information about the IP addresses and network interface associated
* with the NAT gateway.
*
* @return Information about the IP addresses and network interface associated
* with the NAT gateway.
*/
public java.util.List
* Returns a reference to this object so that method calls can be chained together.
*
* @param natGatewayAddresses Information about the IP addresses and network interface associated
* with the NAT gateway.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public NatGateway withNatGatewayAddresses(NatGatewayAddress... natGatewayAddresses) {
if (getNatGatewayAddresses() == null) setNatGatewayAddresses(new java.util.ArrayList
* Returns a reference to this object so that method calls can be chained together.
*
* @param natGatewayAddresses Information about the IP addresses and network interface associated
* with the NAT gateway.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public NatGateway withNatGatewayAddresses(java.util.Collection
* Constraints:
* Constraints:
* Returns a reference to this object so that method calls can be chained together.
*
* Constraints:
* Constraints:
* Returns a reference to this object so that method calls can be chained together.
*
* Constraints:
* Returns a reference to this object so that method calls can be chained together.
*
* @param failureCode If the NAT gateway could not be created, specifies the error code for
* the failure. ( 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." 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." 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.
*
* @param 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."
* Returns a reference to this object so that method calls can be chained together.
*
* @param provisionedBandwidth Reserved. If you need to sustain traffic greater than the documented
* limits, contact us through the Support
* Center.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public NatGateway withProvisionedBandwidth(ProvisionedBandwidth provisionedBandwidth) {
this.provisionedBandwidth = provisionedBandwidth;
return this;
}
/**
* Returns a string representation of this object; useful for testing and
* debugging.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getVpcId() != null) sb.append("VpcId: " + getVpcId() + ",");
if (getSubnetId() != null) sb.append("SubnetId: " + getSubnetId() + ",");
if (getNatGatewayId() != null) sb.append("NatGatewayId: " + getNatGatewayId() + ",");
if (getCreateTime() != null) sb.append("CreateTime: " + getCreateTime() + ",");
if (getDeleteTime() != null) sb.append("DeleteTime: " + getDeleteTime() + ",");
if (getNatGatewayAddresses() != null) sb.append("NatGatewayAddresses: " + getNatGatewayAddresses() + ",");
if (getState() != null) sb.append("State: " + getState() + ",");
if (getFailureCode() != null) sb.append("FailureCode: " + getFailureCode() + ",");
if (getFailureMessage() != null) sb.append("FailureMessage: " + getFailureMessage() + ",");
if (getProvisionedBandwidth() != null) sb.append("ProvisionedBandwidth: " + getProvisionedBandwidth() );
sb.append("}");
return sb.toString();
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getVpcId() == null) ? 0 : getVpcId().hashCode());
hashCode = prime * hashCode + ((getSubnetId() == null) ? 0 : getSubnetId().hashCode());
hashCode = prime * hashCode + ((getNatGatewayId() == null) ? 0 : getNatGatewayId().hashCode());
hashCode = prime * hashCode + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
hashCode = prime * hashCode + ((getDeleteTime() == null) ? 0 : getDeleteTime().hashCode());
hashCode = prime * hashCode + ((getNatGatewayAddresses() == null) ? 0 : getNatGatewayAddresses().hashCode());
hashCode = prime * hashCode + ((getState() == null) ? 0 : getState().hashCode());
hashCode = prime * hashCode + ((getFailureCode() == null) ? 0 : getFailureCode().hashCode());
hashCode = prime * hashCode + ((getFailureMessage() == null) ? 0 : getFailureMessage().hashCode());
hashCode = prime * hashCode + ((getProvisionedBandwidth() == null) ? 0 : getProvisionedBandwidth().hashCode());
return hashCode;
}
@Override
public boolean equals(Object obj) {
if (this == obj) return true;
if (obj == null) return false;
if (obj instanceof NatGateway == false) return false;
NatGateway other = (NatGateway)obj;
if (other.getVpcId() == null ^ this.getVpcId() == null) return false;
if (other.getVpcId() != null && other.getVpcId().equals(this.getVpcId()) == false) return false;
if (other.getSubnetId() == null ^ this.getSubnetId() == null) return false;
if (other.getSubnetId() != null && other.getSubnetId().equals(this.getSubnetId()) == false) return false;
if (other.getNatGatewayId() == null ^ this.getNatGatewayId() == null) return false;
if (other.getNatGatewayId() != null && other.getNatGatewayId().equals(this.getNatGatewayId()) == false) return false;
if (other.getCreateTime() == null ^ this.getCreateTime() == null) return false;
if (other.getCreateTime() != null && other.getCreateTime().equals(this.getCreateTime()) == false) return false;
if (other.getDeleteTime() == null ^ this.getDeleteTime() == null) return false;
if (other.getDeleteTime() != null && other.getDeleteTime().equals(this.getDeleteTime()) == false) return false;
if (other.getNatGatewayAddresses() == null ^ this.getNatGatewayAddresses() == null) return false;
if (other.getNatGatewayAddresses() != null && other.getNatGatewayAddresses().equals(this.getNatGatewayAddresses()) == false) return false;
if (other.getState() == null ^ this.getState() == null) return false;
if (other.getState() != null && other.getState().equals(this.getState()) == false) return false;
if (other.getFailureCode() == null ^ this.getFailureCode() == null) return false;
if (other.getFailureCode() != null && other.getFailureCode().equals(this.getFailureCode()) == false) return false;
if (other.getFailureMessage() == null ^ this.getFailureMessage() == null) return false;
if (other.getFailureMessage() != null && other.getFailureMessage().equals(this.getFailureMessage()) == false) return false;
if (other.getProvisionedBandwidth() == null ^ this.getProvisionedBandwidth() == null) return false;
if (other.getProvisionedBandwidth() != null && other.getProvisionedBandwidth().equals(this.getProvisionedBandwidth()) == false) return false;
return true;
}
}
* 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.
* Allowed Values: pending, failed, available, deleting, deleted
*
* @return The state of the NAT gateway.
*
* @see NatGatewayState
*/
public String getState() {
return 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.
* 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.
* Allowed Values: pending, failed, available, deleting, deleted
*
* @param state The state of the NAT gateway.
*
* @see NatGatewayState
*/
public void setState(String state) {
this.state = 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.
* 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.
* Allowed Values: pending, failed, available, deleting, deleted
*
* @param state The state of the NAT gateway.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*
* @see NatGatewayState
*/
public NatGateway withState(String state) {
this.state = state;
return this;
}
/**
* 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.
* Allowed Values: pending, failed, available, deleting, deleted
*
* @param state The state of the NAT gateway.
*
* @see NatGatewayState
*/
public void setState(NatGatewayState state) {
this.state = state.toString();
}
/**
* 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.
* Allowed Values: pending, failed, available, deleting, deleted
*
* @param state The state of the NAT gateway.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*
* @see NatGatewayState
*/
public NatGateway withState(NatGatewayState state) {
this.state = state.toString();
return this;
}
/**
* If the NAT gateway could not be created, specifies the error code for
* the failure. (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. InsufficientFreeAddressesInSubnet
|
* Gateway.NotAttached
|
* InvalidAllocationID.NotFound
|
* Resource.AlreadyAssociated
| InternalError
|
* InvalidSubnetID.NotFound
)
*
* @return 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() {
return 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
)
*
* @param 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 setFailureCode(String failureCode) {
this.failureCode = 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
)
* InsufficientFreeAddressesInSubnet
|
* Gateway.NotAttached
|
* InvalidAllocationID.NotFound
|
* Resource.AlreadyAssociated
| InternalError
|
* InvalidSubnetID.NotFound
)
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public NatGateway withFailureCode(String failureCode) {
this.failureCode = failureCode;
return this;
}
/**
* If the NAT gateway could not be created, specifies the error message
* for the failure, that corresponds to the error code.
*
* @return If the NAT gateway could not be created, specifies the error message
* for the failure, that corresponds to the error code.
*/
public String getFailureMessage() {
return failureMessage;
}
/**
* If the NAT gateway could not be created, specifies the error message
* for the failure, that corresponds to the error code.
*
* @param failureMessage If the NAT gateway could not be created, specifies the error message
* for the failure, that corresponds to the error code.
*/
public void setFailureMessage(String failureMessage) {
this.failureMessage = failureMessage;
}
/**
* If the NAT gateway could not be created, specifies the error message
* for the failure, that corresponds to the error code.
*
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public NatGateway withFailureMessage(String failureMessage) {
this.failureMessage = failureMessage;
return this;
}
/**
* Reserved. If you need to sustain traffic greater than the documented
* limits, contact us through the Support
* Center.
*
* @return Reserved. If you need to sustain traffic greater than the documented
* limits, contact us through the Support
* Center.
*/
public ProvisionedBandwidth getProvisionedBandwidth() {
return provisionedBandwidth;
}
/**
* Reserved. If you need to sustain traffic greater than the documented
* limits, contact us through the Support
* Center.
*
* @param provisionedBandwidth Reserved. If you need to sustain traffic greater than the documented
* limits, contact us through the Support
* Center.
*/
public void setProvisionedBandwidth(ProvisionedBandwidth provisionedBandwidth) {
this.provisionedBandwidth = provisionedBandwidth;
}
/**
* Reserved. If you need to sustain traffic greater than the documented
* limits, contact us through the Support
* Center.
*