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