com.amazonaws.services.ec2.model
Class Address

java.lang.Object
  extended by com.amazonaws.services.ec2.model.Address
All Implemented Interfaces:
java.io.Serializable

public class Address
extends java.lang.Object
implements java.io.Serializable

Describes an Elastic IP address.

See Also:
Serialized Form

Constructor Summary
Address()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getAllocationId()
          The ID representing the allocation of the address for use with EC2-VPC.
 java.lang.String getAssociationId()
          The ID representing the association of the address with an instance in a VPC.
 java.lang.String getDomain()
          Indicates whether this Elastic IP address is for use with instances in EC2-Classic (standard) or instances in a VPC (vpc).
 java.lang.String getInstanceId()
          The ID of the instance the address is associated with (if any).
 java.lang.String getNetworkInterfaceId()
          The ID of the network interface.
 java.lang.String getNetworkInterfaceOwnerId()
          The ID of the AWS account that owns the network interface.
 java.lang.String getPrivateIpAddress()
          The private IP address associated with the Elastic IP address.
 java.lang.String getPublicIp()
          The Elastic IP address.
 int hashCode()
           
 void setAllocationId(java.lang.String allocationId)
          The ID representing the allocation of the address for use with EC2-VPC.
 void setAssociationId(java.lang.String associationId)
          The ID representing the association of the address with an instance in a VPC.
 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).
 void setDomain(java.lang.String domain)
          Indicates whether this Elastic IP address is for use with instances in EC2-Classic (standard) or instances in a VPC (vpc).
 void setInstanceId(java.lang.String instanceId)
          The ID of the instance the address is associated with (if any).
 void setNetworkInterfaceId(java.lang.String networkInterfaceId)
          The ID of the network interface.
 void setNetworkInterfaceOwnerId(java.lang.String networkInterfaceOwnerId)
          The ID of the AWS account that owns the network interface.
 void setPrivateIpAddress(java.lang.String privateIpAddress)
          The private IP address associated with the Elastic IP address.
 void setPublicIp(java.lang.String publicIp)
          The Elastic IP address.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 Address withAllocationId(java.lang.String allocationId)
          The ID representing the allocation of the address for use with EC2-VPC.
 Address withAssociationId(java.lang.String associationId)
          The ID representing the association of the address with an instance in a VPC.
 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).
 Address withDomain(java.lang.String domain)
          Indicates whether this Elastic IP address is for use with instances in EC2-Classic (standard) or instances in a VPC (vpc).
 Address withInstanceId(java.lang.String instanceId)
          The ID of the instance the address is associated with (if any).
 Address withNetworkInterfaceId(java.lang.String networkInterfaceId)
          The ID of the network interface.
 Address withNetworkInterfaceOwnerId(java.lang.String networkInterfaceOwnerId)
          The ID of the AWS account that owns the network interface.
 Address withPrivateIpAddress(java.lang.String privateIpAddress)
          The private IP address associated with the Elastic IP address.
 Address withPublicIp(java.lang.String publicIp)
          The Elastic IP address.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Address

public Address()
Method Detail

getInstanceId

public java.lang.String getInstanceId()
The ID of the instance the address is associated with (if any).

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

setInstanceId

public void setInstanceId(java.lang.String instanceId)
The ID of the instance the address is associated with (if any).

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

withInstanceId

public Address withInstanceId(java.lang.String instanceId)
The ID of the instance the address is associated with (if any).

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

Parameters:
instanceId - The ID of the instance the address is associated with (if any).
Returns:
A reference to this updated object so that method calls can be chained together.

getPublicIp

public java.lang.String getPublicIp()
The Elastic IP address.

Returns:
The Elastic IP address.

setPublicIp

public void setPublicIp(java.lang.String publicIp)
The Elastic IP address.

Parameters:
publicIp - The Elastic IP address.

withPublicIp

public Address withPublicIp(java.lang.String publicIp)
The Elastic IP address.

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

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

getAllocationId

public java.lang.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.

setAllocationId

public void setAllocationId(java.lang.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.

withAllocationId

public Address withAllocationId(java.lang.String allocationId)
The ID representing the allocation of the address for use with EC2-VPC.

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

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

getAssociationId

public java.lang.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.

setAssociationId

public void setAssociationId(java.lang.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.

withAssociationId

public Address withAssociationId(java.lang.String associationId)
The ID representing the association of the address with an instance in a VPC.

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

Parameters:
associationId - The ID representing the association of the address with an instance in a VPC.
Returns:
A reference to this updated object so that method calls can be chained together.

getDomain

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

Constraints:
Allowed Values: vpc, standard

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

setDomain

public void setDomain(java.lang.String domain)
Indicates whether this Elastic IP address is for use with instances in EC2-Classic (standard) or instances in a VPC (vpc).

Constraints:
Allowed Values: vpc, standard

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:
DomainType

withDomain

public Address withDomain(java.lang.String domain)
Indicates whether this Elastic IP address is for use with instances in EC2-Classic (standard) or instances in a VPC (vpc).

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

Constraints:
Allowed Values: vpc, standard

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

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).

Constraints:
Allowed Values: vpc, standard

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:
DomainType

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).

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

Constraints:
Allowed Values: vpc, standard

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

getNetworkInterfaceId

public java.lang.String getNetworkInterfaceId()
The ID of the network interface.

Returns:
The ID of the network interface.

setNetworkInterfaceId

public void setNetworkInterfaceId(java.lang.String networkInterfaceId)
The ID of the network interface.

Parameters:
networkInterfaceId - The ID of the network interface.

withNetworkInterfaceId

public Address withNetworkInterfaceId(java.lang.String networkInterfaceId)
The ID of the network interface.

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

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

getNetworkInterfaceOwnerId

public java.lang.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.

setNetworkInterfaceOwnerId

public void setNetworkInterfaceOwnerId(java.lang.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.

withNetworkInterfaceOwnerId

public Address withNetworkInterfaceOwnerId(java.lang.String networkInterfaceOwnerId)
The ID of the AWS account that owns the network interface.

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

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

getPrivateIpAddress

public java.lang.String getPrivateIpAddress()
The private IP address associated with the Elastic IP address.

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

setPrivateIpAddress

public void setPrivateIpAddress(java.lang.String privateIpAddress)
The private IP address associated with the Elastic IP address.

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

withPrivateIpAddress

public Address withPrivateIpAddress(java.lang.String privateIpAddress)
The private IP address associated with the Elastic IP address.

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

Parameters:
privateIpAddress - The private IP address associated with the Elastic IP address.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.