public class Address
extends java.lang.Object
implements java.io.Serializable
Describes an Elastic IP address.
| Constructor and Description |
|---|
Address() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public java.lang.String getInstanceId()
public void setInstanceId(java.lang.String instanceId)
instanceId - The ID of the instance that the address is associated with (if any).public Address withInstanceId(java.lang.String instanceId)
Returns a reference to this object so that method calls can be chained together.
instanceId - The ID of the instance that the address is associated with (if any).public java.lang.String getPublicIp()
public void setPublicIp(java.lang.String publicIp)
publicIp - The Elastic IP address.public Address withPublicIp(java.lang.String publicIp)
Returns a reference to this object so that method calls can be chained together.
publicIp - The Elastic IP address.public java.lang.String getAllocationId()
public void setAllocationId(java.lang.String allocationId)
allocationId - The ID representing the allocation of the address for use with
EC2-VPC.public Address withAllocationId(java.lang.String allocationId)
Returns a reference to this object so that method calls can be chained together.
allocationId - The ID representing the allocation of the address for use with
EC2-VPC.public java.lang.String getAssociationId()
public void setAssociationId(java.lang.String associationId)
associationId - The ID representing the association of the address with an instance in
a VPC.public Address withAssociationId(java.lang.String associationId)
Returns a reference to this object so that method calls can be chained together.
associationId - The ID representing the association of the address with an instance in
a VPC.public java.lang.String getDomain()
standard) or instances in a VPC
(vpc).
Constraints:
Allowed Values: vpc, standard
standard) or instances in a VPC
(vpc).DomainTypepublic void setDomain(java.lang.String domain)
standard) or instances in a VPC
(vpc).
Constraints:
Allowed Values: vpc, standard
domain - Indicates whether this Elastic IP address is for use with instances in
EC2-Classic (standard) or instances in a VPC
(vpc).DomainTypepublic Address withDomain(java.lang.String domain)
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
domain - Indicates whether this Elastic IP address is for use with instances in
EC2-Classic (standard) or instances in a VPC
(vpc).DomainTypepublic void setDomain(DomainType domain)
standard) or instances in a VPC
(vpc).
Constraints:
Allowed Values: vpc, standard
domain - Indicates whether this Elastic IP address is for use with instances in
EC2-Classic (standard) or instances in a VPC
(vpc).DomainTypepublic Address withDomain(DomainType domain)
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
domain - Indicates whether this Elastic IP address is for use with instances in
EC2-Classic (standard) or instances in a VPC
(vpc).DomainTypepublic java.lang.String getNetworkInterfaceId()
public void setNetworkInterfaceId(java.lang.String networkInterfaceId)
networkInterfaceId - The ID of the network interface.public Address withNetworkInterfaceId(java.lang.String networkInterfaceId)
Returns a reference to this object so that method calls can be chained together.
networkInterfaceId - The ID of the network interface.public java.lang.String getNetworkInterfaceOwnerId()
public void setNetworkInterfaceOwnerId(java.lang.String networkInterfaceOwnerId)
networkInterfaceOwnerId - The ID of the AWS account that owns the network interface.public Address withNetworkInterfaceOwnerId(java.lang.String networkInterfaceOwnerId)
Returns a reference to this object so that method calls can be chained together.
networkInterfaceOwnerId - The ID of the AWS account that owns the network interface.public java.lang.String getPrivateIpAddress()
public void setPrivateIpAddress(java.lang.String privateIpAddress)
privateIpAddress - The private IP address associated with the Elastic IP address.public Address withPrivateIpAddress(java.lang.String privateIpAddress)
Returns a reference to this object so that method calls can be chained together.
privateIpAddress - The private IP address associated with the Elastic IP address.public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.