Class Address
- java.lang.Object
-
- com.amazonaws.services.ec2.model.Address
-
- All Implemented Interfaces:
Serializable,Cloneable
public class Address extends Object implements Serializable, Cloneable
Describes an Elastic IP address.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Address()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Addressclone()booleanequals(Object obj)StringgetAllocationId()The ID representing the allocation of the address for use with EC2-VPC.StringgetAssociationId()The ID representing the association of the address with an instance in a VPC.StringgetDomain()Indicates whether this Elastic IP address is for use with instances in EC2-Classic (standard) or instances in a VPC (vpc).StringgetInstanceId()The ID of the instance that the address is associated with (if any).StringgetNetworkInterfaceId()The ID of the network interface.StringgetNetworkInterfaceOwnerId()The ID of the AWS account that owns the network interface.StringgetPrivateIpAddress()The private IP address associated with the Elastic IP address.StringgetPublicIp()The Elastic IP address.inthashCode()voidsetAllocationId(String allocationId)The ID representing the allocation of the address for use with EC2-VPC.voidsetAssociationId(String associationId)The ID representing the association of the address with an instance in a VPC.voidsetDomain(DomainType domain)Indicates whether this Elastic IP address is for use with instances in EC2-Classic (standard) or instances in a VPC (vpc).voidsetDomain(String domain)Indicates whether this Elastic IP address is for use with instances in EC2-Classic (standard) or instances in a VPC (vpc).voidsetInstanceId(String instanceId)The ID of the instance that the address is associated with (if any).voidsetNetworkInterfaceId(String networkInterfaceId)The ID of the network interface.voidsetNetworkInterfaceOwnerId(String networkInterfaceOwnerId)The ID of the AWS account that owns the network interface.voidsetPrivateIpAddress(String privateIpAddress)The private IP address associated with the Elastic IP address.voidsetPublicIp(String publicIp)The Elastic IP address.StringtoString()Returns a string representation of this object; useful for testing and debugging.AddresswithAllocationId(String allocationId)The ID representing the allocation of the address for use with EC2-VPC.AddresswithAssociationId(String associationId)The ID representing the association of the address with an instance in a VPC.AddresswithDomain(DomainType domain)Indicates whether this Elastic IP address is for use with instances in EC2-Classic (standard) or instances in a VPC (vpc).AddresswithDomain(String domain)Indicates whether this Elastic IP address is for use with instances in EC2-Classic (standard) or instances in a VPC (vpc).AddresswithInstanceId(String instanceId)The ID of the instance that the address is associated with (if any).AddresswithNetworkInterfaceId(String networkInterfaceId)The ID of the network interface.AddresswithNetworkInterfaceOwnerId(String networkInterfaceOwnerId)The ID of the AWS account that owns the network interface.AddresswithPrivateIpAddress(String privateIpAddress)The private IP address associated with the Elastic IP address.AddresswithPublicIp(String publicIp)The Elastic IP address.
-
-
-
Method Detail
-
setInstanceId
public void setInstanceId(String instanceId)
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
public String 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
public Address withInstanceId(String instanceId)
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
public void setPublicIp(String publicIp)
The Elastic IP address.
- Parameters:
publicIp- The Elastic IP address.
-
getPublicIp
public String getPublicIp()
The Elastic IP address.
- Returns:
- The Elastic IP address.
-
withPublicIp
public Address withPublicIp(String publicIp)
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
public void setAllocationId(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.
-
getAllocationId
public 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.
-
withAllocationId
public Address withAllocationId(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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAssociationId
public void setAssociationId(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.
-
getAssociationId
public 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.
-
withAssociationId
public Address withAssociationId(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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDomain
public 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).- 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
-
getDomain
public String 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:
DomainType
-
withDomain
public 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).- 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:
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).- 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).- 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:
DomainType
-
setNetworkInterfaceId
public void setNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface.
- Parameters:
networkInterfaceId- The ID of the network interface.
-
getNetworkInterfaceId
public String getNetworkInterfaceId()
The ID of the network interface.
- Returns:
- The ID of the network interface.
-
withNetworkInterfaceId
public Address withNetworkInterfaceId(String networkInterfaceId)
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
public void setNetworkInterfaceOwnerId(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.
-
getNetworkInterfaceOwnerId
public 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.
-
withNetworkInterfaceOwnerId
public Address withNetworkInterfaceOwnerId(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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPrivateIpAddress
public void setPrivateIpAddress(String privateIpAddress)
The private IP address associated with the Elastic IP address.
- Parameters:
privateIpAddress- The private IP address associated with the Elastic IP address.
-
getPrivateIpAddress
public String getPrivateIpAddress()
The private IP address associated with the Elastic IP address.
- Returns:
- The private IP address associated with the Elastic IP address.
-
withPrivateIpAddress
public Address withPrivateIpAddress(String privateIpAddress)
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
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-