Class AllocateAddressResult

java.lang.Object
com.amazonaws.services.ec2.model.AllocateAddressResult
All Implemented Interfaces:
Serializable, Cloneable

public class AllocateAddressResult extends Object implements Serializable, Cloneable

Contains the output of AllocateAddress.

See Also:
  • Constructor Details

    • AllocateAddressResult

      public AllocateAddressResult()
  • Method Details

    • setPublicIp

      public void setPublicIp(String publicIp)

      The Elastic IP address.

      Parameters:
      publicIp - The Elastic IP address.
    • getPublicIp

      public String getPublicIp()

      The Elastic IP address.

      Returns:
      The Elastic IP address.
    • withPublicIp

      public AllocateAddressResult withPublicIp(String publicIp)

      The Elastic IP address.

      Parameters:
      publicIp - The Elastic IP address.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setDomain

      public void setDomain(String domain)

      Indicates whether this Elastic IP address is for use with instances in EC2-Classic (standard) or instances in a VPC ( vpc).

      Parameters:
      domain - Indicates whether this Elastic IP address is for use with instances in EC2-Classic (standard) or instances in a VPC (vpc).
      See Also:
    • getDomain

      public String getDomain()

      Indicates whether this Elastic IP address is for use with instances in EC2-Classic (standard) or instances in a VPC ( vpc).

      Returns:
      Indicates whether this Elastic IP address is for use with instances in EC2-Classic (standard) or instances in a VPC (vpc).
      See Also:
    • withDomain

      public AllocateAddressResult withDomain(String domain)

      Indicates whether this Elastic IP address is for use with instances in EC2-Classic (standard) or instances in a VPC ( vpc).

      Parameters:
      domain - Indicates whether this Elastic IP address is for use with instances in EC2-Classic (standard) or instances in a VPC (vpc).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setDomain

      public void setDomain(DomainType domain)

      Indicates whether this Elastic IP address is for use with instances in EC2-Classic (standard) or instances in a VPC ( vpc).

      Parameters:
      domain - Indicates whether this Elastic IP address is for use with instances in EC2-Classic (standard) or instances in a VPC (vpc).
      See Also:
    • withDomain

      public AllocateAddressResult withDomain(DomainType domain)

      Indicates whether this Elastic IP address is for use with instances in EC2-Classic (standard) or instances in a VPC ( vpc).

      Parameters:
      domain - Indicates whether this Elastic IP address is for use with instances in EC2-Classic (standard) or instances in a VPC (vpc).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setAllocationId

      public void setAllocationId(String allocationId)

      [EC2-VPC] The ID that AWS assigns to represent the allocation of the Elastic IP address for use with instances in a VPC.

      Parameters:
      allocationId - [EC2-VPC] The ID that AWS assigns to represent the allocation of the Elastic IP address for use with instances in a VPC.
    • getAllocationId

      public String getAllocationId()

      [EC2-VPC] The ID that AWS assigns to represent the allocation of the Elastic IP address for use with instances in a VPC.

      Returns:
      [EC2-VPC] The ID that AWS assigns to represent the allocation of the Elastic IP address for use with instances in a VPC.
    • withAllocationId

      public AllocateAddressResult withAllocationId(String allocationId)

      [EC2-VPC] The ID that AWS assigns to represent the allocation of the Elastic IP address for use with instances in a VPC.

      Parameters:
      allocationId - [EC2-VPC] The ID that AWS assigns to represent the allocation of the Elastic IP address for use with instances in a VPC.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • 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 AllocateAddressResult clone()
      Overrides:
      clone in class Object