Class AllocateAddressRequest

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

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

Contains the parameters for AllocateAddress.

See Also:
  • Constructor Details

    • AllocateAddressRequest

      public AllocateAddressRequest()
  • Method Details

    • setDomain

      public void setDomain(String domain)

      Set to vpc to allocate the address for use with instances in a VPC.

      Default: The address is for use with instances in EC2-Classic.

      Parameters:
      domain - Set to vpc to allocate the address for use with instances in a VPC.

      Default: The address is for use with instances in EC2-Classic.

      See Also:
    • getDomain

      public String getDomain()

      Set to vpc to allocate the address for use with instances in a VPC.

      Default: The address is for use with instances in EC2-Classic.

      Returns:
      Set to vpc to allocate the address for use with instances in a VPC.

      Default: The address is for use with instances in EC2-Classic.

      See Also:
    • withDomain

      public AllocateAddressRequest withDomain(String domain)

      Set to vpc to allocate the address for use with instances in a VPC.

      Default: The address is for use with instances in EC2-Classic.

      Parameters:
      domain - Set to vpc to allocate the address for use with instances in a VPC.

      Default: The address is for use with instances in EC2-Classic.

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

      public void setDomain(DomainType domain)

      Set to vpc to allocate the address for use with instances in a VPC.

      Default: The address is for use with instances in EC2-Classic.

      Parameters:
      domain - Set to vpc to allocate the address for use with instances in a VPC.

      Default: The address is for use with instances in EC2-Classic.

      See Also:
    • withDomain

      public AllocateAddressRequest withDomain(DomainType domain)

      Set to vpc to allocate the address for use with instances in a VPC.

      Default: The address is for use with instances in EC2-Classic.

      Parameters:
      domain - Set to vpc to allocate the address for use with instances in a VPC.

      Default: The address is for use with instances in EC2-Classic.

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

      public Request<AllocateAddressRequest> 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<AllocateAddressRequest>
    • 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 AllocateAddressRequest 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: