public class Address
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes an Elastic IP address.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
allocationId
The ID representing the allocation of the address for use with EC2-VPC.
|
private java.lang.String |
associationId
The ID representing the association of the address with an instance in a
VPC.
|
private 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 ). |
private java.lang.String |
instanceId
The ID of the instance that the address is associated with (if any).
|
private java.lang.String |
networkInterfaceId
The ID of the network interface.
|
private java.lang.String |
networkInterfaceOwnerId
The ID of the AWS account that owns the network interface.
|
private java.lang.String |
privateIpAddress
The private IP address associated with the Elastic IP address.
|
private java.lang.String |
publicIp
The Elastic IP address.
|
Constructor and Description |
---|
Address() |
Modifier and Type | Method and Description |
---|---|
Address |
clone() |
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 that 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 that 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 that 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.
|
private java.lang.String instanceId
The ID of the instance that the address is associated with (if any).
private java.lang.String publicIp
The Elastic IP address.
private java.lang.String allocationId
The ID representing the allocation of the address for use with EC2-VPC.
private java.lang.String associationId
The ID representing the association of the address with an instance in a VPC.
private 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
).
private java.lang.String networkInterfaceId
The ID of the network interface.
private java.lang.String networkInterfaceOwnerId
The ID of the AWS account that owns the network interface.
private java.lang.String privateIpAddress
The private IP address associated with the Elastic IP address.
public void setInstanceId(java.lang.String instanceId)
The ID of the instance that the address is associated with (if any).
instanceId
- The ID of the instance that the address is associated with (if
any).public java.lang.String getInstanceId()
The ID of the instance that the address is associated with (if any).
public Address withInstanceId(java.lang.String instanceId)
The ID of the instance that the address is associated with (if any).
instanceId
- The ID of the instance that the address is associated with (if
any).public void setPublicIp(java.lang.String publicIp)
The Elastic IP address.
publicIp
- The Elastic IP address.public java.lang.String getPublicIp()
The Elastic IP address.
public Address withPublicIp(java.lang.String publicIp)
The Elastic IP address.
publicIp
- The Elastic IP address.public void setAllocationId(java.lang.String allocationId)
The ID representing the allocation of the address for use with EC2-VPC.
allocationId
- The ID representing the allocation of the address for use with
EC2-VPC.public java.lang.String getAllocationId()
The ID representing the allocation of the address for use with EC2-VPC.
public Address withAllocationId(java.lang.String allocationId)
The ID representing the allocation of the address for use with EC2-VPC.
allocationId
- The ID representing the allocation of the address for use with
EC2-VPC.public void setAssociationId(java.lang.String associationId)
The ID representing the association of the address with an instance in a VPC.
associationId
- The ID representing the association of the address with an
instance in a VPC.public java.lang.String getAssociationId()
The ID representing the association of the address with an instance in a VPC.
public Address withAssociationId(java.lang.String associationId)
The ID representing the association of the address with an instance in a VPC.
associationId
- The ID representing the association of the address with an
instance in a VPC.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
).
domain
- Indicates whether this Elastic IP address is for use with
instances in EC2-Classic (standard
) or instances in a
VPC (vpc
).DomainType
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
).
standard
) or instances in
a VPC (vpc
).DomainType
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
).
domain
- Indicates whether this Elastic IP address is for use with
instances in EC2-Classic (standard
) or instances in a
VPC (vpc
).DomainType
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
).
domain
- Indicates whether this Elastic IP address is for use with
instances in EC2-Classic (standard
) or instances in a
VPC (vpc
).DomainType
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
).
domain
- Indicates whether this Elastic IP address is for use with
instances in EC2-Classic (standard
) or instances in a
VPC (vpc
).DomainType
public void setNetworkInterfaceId(java.lang.String networkInterfaceId)
The ID of the network interface.
networkInterfaceId
- The ID of the network interface.public java.lang.String getNetworkInterfaceId()
The ID of the network interface.
public Address withNetworkInterfaceId(java.lang.String networkInterfaceId)
The ID of the network interface.
networkInterfaceId
- The ID of the network interface.public void setNetworkInterfaceOwnerId(java.lang.String networkInterfaceOwnerId)
The ID of the AWS account that owns the network interface.
networkInterfaceOwnerId
- The ID of the AWS account that owns the network interface.public java.lang.String getNetworkInterfaceOwnerId()
The ID of the AWS account that owns the network interface.
public Address withNetworkInterfaceOwnerId(java.lang.String networkInterfaceOwnerId)
The ID of the AWS account that owns the network interface.
networkInterfaceOwnerId
- The ID of the AWS account that owns the network interface.public void setPrivateIpAddress(java.lang.String privateIpAddress)
The private IP address associated with the Elastic IP address.
privateIpAddress
- The private IP address associated with the Elastic IP address.public java.lang.String getPrivateIpAddress()
The private IP address associated with the Elastic IP address.
public Address withPrivateIpAddress(java.lang.String privateIpAddress)
The private IP address associated with the Elastic IP address.
privateIpAddress
- The private IP address associated with the Elastic IP address.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Address clone()
clone
in class java.lang.Object