Class CreateNatGatewayRequest

java.lang.Object
com.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.ec2.model.CreateNatGatewayRequest
All Implemented Interfaces:
ReadLimitInfo, DryRunSupportedRequest<CreateNatGatewayRequest>, Serializable, Cloneable

public class CreateNatGatewayRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<CreateNatGatewayRequest>

Contains the parameters for CreateNatGateway.

See Also:
  • Constructor Details

    • CreateNatGatewayRequest

      public CreateNatGatewayRequest()
  • Method Details

    • setSubnetId

      public void setSubnetId(String subnetId)

      The subnet in which to create the NAT gateway.

      Parameters:
      subnetId - The subnet in which to create the NAT gateway.
    • getSubnetId

      public String getSubnetId()

      The subnet in which to create the NAT gateway.

      Returns:
      The subnet in which to create the NAT gateway.
    • withSubnetId

      public CreateNatGatewayRequest withSubnetId(String subnetId)

      The subnet in which to create the NAT gateway.

      Parameters:
      subnetId - The subnet in which to create the NAT gateway.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setAllocationId

      public void setAllocationId(String allocationId)

      The allocation ID of an Elastic IP address to associate with the NAT gateway. If the Elastic IP address is associated with another resource, you must first disassociate it.

      Parameters:
      allocationId - The allocation ID of an Elastic IP address to associate with the NAT gateway. If the Elastic IP address is associated with another resource, you must first disassociate it.
    • getAllocationId

      public String getAllocationId()

      The allocation ID of an Elastic IP address to associate with the NAT gateway. If the Elastic IP address is associated with another resource, you must first disassociate it.

      Returns:
      The allocation ID of an Elastic IP address to associate with the NAT gateway. If the Elastic IP address is associated with another resource, you must first disassociate it.
    • withAllocationId

      public CreateNatGatewayRequest withAllocationId(String allocationId)

      The allocation ID of an Elastic IP address to associate with the NAT gateway. If the Elastic IP address is associated with another resource, you must first disassociate it.

      Parameters:
      allocationId - The allocation ID of an Elastic IP address to associate with the NAT gateway. If the Elastic IP address is associated with another resource, you must first disassociate it.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setClientToken

      public void setClientToken(String clientToken)

      Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency.

      Constraint: Maximum 64 ASCII characters.

      Parameters:
      clientToken - Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency.

      Constraint: Maximum 64 ASCII characters.

    • getClientToken

      public String getClientToken()

      Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency.

      Constraint: Maximum 64 ASCII characters.

      Returns:
      Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency.

      Constraint: Maximum 64 ASCII characters.

    • withClientToken

      public CreateNatGatewayRequest withClientToken(String clientToken)

      Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency.

      Constraint: Maximum 64 ASCII characters.

      Parameters:
      clientToken - Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency.

      Constraint: Maximum 64 ASCII characters.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getDryRunRequest

      public Request<CreateNatGatewayRequest> getDryRunRequest()
      This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run.
      Specified by:
      getDryRunRequest in interface DryRunSupportedRequest<CreateNatGatewayRequest>
    • toString

      public String toString()
      Returns a string representation of this object; useful for testing and debugging.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public CreateNatGatewayRequest clone()
      Description copied from class: AmazonWebServiceRequest
      Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.
      Overrides:
      clone in class AmazonWebServiceRequest
      See Also: