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 Address
clone()
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 that 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 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.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 that 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.
-
-
-
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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-