Class AllocateAddressRequest

    • Constructor Detail

      • AllocateAddressRequest

        public AllocateAddressRequest()
    • Method Detail

      • 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:
        DomainType
      • 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:
        DomainType
      • 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:
        DomainType
      • 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:
        DomainType
      • 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:
        DomainType
      • 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:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object