Class Address
- All Implemented Interfaces:
Serializable
,Cloneable
Describes an Elastic IP address.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The ID representing the allocation of the address for use with EC2-VPC.The ID representing the association of the address with an instance in a VPC.Indicates whether this Elastic IP address is for use with instances in EC2-Classic (standard
) or instances in a VPC (vpc
).The ID of the instance that the address is associated with (if any).The ID of the network interface.The ID of the AWS account that owns the network interface.The private IP address associated with the Elastic IP address.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
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 that 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.toString()
Returns a string representation of this object; useful for testing and debugging.withAllocationId
(String allocationId) The ID representing the allocation of the address for use with EC2-VPC.withAssociationId
(String associationId) The ID representing the association of the address with an instance in a VPC.withDomain
(DomainType domain) Indicates whether this Elastic IP address is for use with instances in EC2-Classic (standard
) or instances in a VPC (vpc
).withDomain
(String domain) Indicates whether this Elastic IP address is for use with instances in EC2-Classic (standard
) or instances in a VPC (vpc
).withInstanceId
(String instanceId) The ID of the instance that the address is associated with (if any).withNetworkInterfaceId
(String networkInterfaceId) The ID of the network interface.withNetworkInterfaceOwnerId
(String networkInterfaceOwnerId) The ID of the AWS account that owns the network interface.withPrivateIpAddress
(String privateIpAddress) The private IP address associated with the Elastic IP address.withPublicIp
(String publicIp) The Elastic IP address.
-
Constructor Details
-
Address
public Address()
-
-
Method Details
-
setInstanceId
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
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
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
The Elastic IP address.
- Parameters:
publicIp
- The Elastic IP address.
-
getPublicIp
The Elastic IP address.
- Returns:
- The Elastic IP address.
-
withPublicIp
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
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
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
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
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
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
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
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
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
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
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
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
The ID of the network interface.
- Parameters:
networkInterfaceId
- The ID of the network interface.
-
getNetworkInterfaceId
The ID of the network interface.
- Returns:
- The ID of the network interface.
-
withNetworkInterfaceId
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
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
The ID of the AWS account that owns the network interface.
- Returns:
- The ID of the AWS account that owns the network interface.
-
withNetworkInterfaceOwnerId
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
The private IP address associated with the Elastic IP address.
- Parameters:
privateIpAddress
- The private IP address associated with the Elastic IP address.
-
getPrivateIpAddress
The private IP address associated with the Elastic IP address.
- Returns:
- The private IP address associated with the Elastic IP address.
-
withPrivateIpAddress
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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-