/* * Copyright 2018-2023 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; import javax.annotation.Generated; /** *

* Describes a NAT gateway. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class NatGateway implements Serializable, Cloneable { /** *

* 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; /** *

* 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. *

* */ private String failureMessage; /** *

* Information about the IP addresses and network interface associated with the NAT gateway. *

*/ private com.amazonaws.internal.SdkInternalList natGatewayAddresses; /** *

* The ID of the NAT gateway. *

*/ private String natGatewayId; /** *

* Reserved. If you need to sustain traffic greater than the documented limits, contact us * through the Support Center. *

*/ private ProvisionedBandwidth provisionedBandwidth; /** *

* The state of the NAT gateway. *

* */ private String state; /** *

* The ID of the subnet in which the NAT gateway is located. *

*/ private String subnetId; /** *

* The ID of the VPC in which the NAT gateway is located. *

*/ private String vpcId; /** *

* The tags for the NAT gateway. *

*/ private com.amazonaws.internal.SdkInternalList tags; /** *

* Indicates whether the NAT gateway supports public or private connectivity. *

*/ private String connectivityType; /** *

* 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. *

* * @return The date and time the NAT gateway was created. */ public java.util.Date getCreateTime() { return this.createTime; } /** *

* The date and time the NAT gateway was created. *

* * @param createTime * The date and time the NAT gateway was created. * @return Returns a reference to this object so that method calls can be chained together. */ public NatGateway withCreateTime(java.util.Date createTime) { setCreateTime(createTime); return this; } /** *

* 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. *

* * @return The date and time the NAT gateway was deleted, if applicable. */ public java.util.Date getDeleteTime() { return this.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. * @return Returns a reference to this object so that method calls can be chained together. */ public NatGateway withDeleteTime(java.util.Date deleteTime) { setDeleteTime(deleteTime); return this; } /** *

* 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) *

* * @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 this.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) * @return Returns a reference to this object so that method calls can be chained together. */ public NatGateway withFailureCode(String failureCode) { setFailureCode(failureCode); return this; } /** *

* 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.

*