Class Address

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

public class Address extends Object implements Serializable, Cloneable

Describes an Elastic IP address.

See Also:
  • Constructor Details

    • Address

      public Address()
  • Method Details

    • setInstanceId

      public void setInstanceId(String instanceId)

      The ID of the instance that the address is associated with (if any).

      Parameters:
      instanceId - The ID of the instance that the address is associated with (if any).
    • getInstanceId

      public String getInstanceId()

      The ID of the instance that the address is associated with (if any).

      Returns:
      The ID of the instance that the address is associated with (if any).
    • withInstanceId

      public Address withInstanceId(String instanceId)

      The ID of the instance that the address is associated with (if any).

      Parameters:
      instanceId - The ID of the instance that the address is associated with (if any).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • 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 Address 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.
    • setAllocationId

      public void setAllocationId(String allocationId)

      The ID representing the allocation of the address for use with EC2-VPC.

      Parameters:
      allocationId - The ID representing the allocation of the address for use with EC2-VPC.
    • getAllocationId

      public String getAllocationId()

      The ID representing the allocation of the address for use with EC2-VPC.

      Returns:
      The ID representing the allocation of the address for use with EC2-VPC.
    • withAllocationId

      public Address withAllocationId(String allocationId)

      The ID representing the allocation of the address for use with EC2-VPC.

      Parameters:
      allocationId - The ID representing the allocation of the address for use with EC2-VPC.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setAssociationId

      public void setAssociationId(String associationId)

      The ID representing the association of the address with an instance in a VPC.

      Parameters:
      associationId - The ID representing the association of the address with an instance in a VPC.
    • getAssociationId

      public String getAssociationId()

      The ID representing the association of the address with an instance in a VPC.

      Returns:
      The ID representing the association of the address with an instance in a VPC.
    • withAssociationId

      public Address withAssociationId(String associationId)

      The ID representing the association of the address with an instance in a VPC.

      Parameters:
      associationId - The ID representing the association of the address with an instance in a VPC.
      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 Address 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 Address 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:
    • setNetworkInterfaceId

      public void setNetworkInterfaceId(String networkInterfaceId)

      The ID of the network interface.

      Parameters:
      networkInterfaceId - The ID of the network interface.
    • getNetworkInterfaceId

      public String getNetworkInterfaceId()

      The ID of the network interface.

      Returns:
      The ID of the network interface.
    • withNetworkInterfaceId

      public Address withNetworkInterfaceId(String networkInterfaceId)

      The ID of the network interface.

      Parameters:
      networkInterfaceId - The ID of the network interface.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setNetworkInterfaceOwnerId

      public void setNetworkInterfaceOwnerId(String networkInterfaceOwnerId)

      The ID of the AWS account that owns the network interface.

      Parameters:
      networkInterfaceOwnerId - The ID of the AWS account that owns the network interface.
    • getNetworkInterfaceOwnerId

      public String getNetworkInterfaceOwnerId()

      The ID of the AWS account that owns the network interface.

      Returns:
      The ID of the AWS account that owns the network interface.
    • withNetworkInterfaceOwnerId

      public Address withNetworkInterfaceOwnerId(String networkInterfaceOwnerId)

      The ID of the AWS account that owns the network interface.

      Parameters:
      networkInterfaceOwnerId - The ID of the AWS account that owns the network interface.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setPrivateIpAddress

      public void setPrivateIpAddress(String privateIpAddress)

      The private IP address associated with the Elastic IP address.

      Parameters:
      privateIpAddress - The private IP address associated with the Elastic IP address.
    • getPrivateIpAddress

      public String getPrivateIpAddress()

      The private IP address associated with the Elastic IP address.

      Returns:
      The private IP address associated with the Elastic IP address.
    • withPrivateIpAddress

      public Address withPrivateIpAddress(String privateIpAddress)

      The private IP address associated with the Elastic IP address.

      Parameters:
      privateIpAddress - The private IP address associated with the Elastic IP address.
      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 Address clone()
      Overrides:
      clone in class Object