Class AllocateAddressResult
- java.lang.Object
-
- com.amazonaws.services.ec2.model.AllocateAddressResult
-
- All Implemented Interfaces:
Serializable,Cloneable
public class AllocateAddressResult extends Object implements Serializable, Cloneable
Contains the output of AllocateAddress.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AllocateAddressResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AllocateAddressResultclone()booleanequals(Object obj)StringgetAllocationId()[EC2-VPC] The ID that AWS assigns to represent the allocation of the Elastic IP address for use with instances 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).StringgetPublicIp()The Elastic IP address.inthashCode()voidsetAllocationId(String allocationId)[EC2-VPC] The ID that AWS assigns to represent the allocation of the Elastic IP address for use with instances 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).voidsetPublicIp(String publicIp)The Elastic IP address.StringtoString()Returns a string representation of this object; useful for testing and debugging.AllocateAddressResultwithAllocationId(String allocationId)[EC2-VPC] The ID that AWS assigns to represent the allocation of the Elastic IP address for use with instances in a VPC.AllocateAddressResultwithDomain(DomainType domain)Indicates whether this Elastic IP address is for use with instances in EC2-Classic (standard) or instances in a VPC (vpc).AllocateAddressResultwithDomain(String domain)Indicates whether this Elastic IP address is for use with instances in EC2-Classic (standard) or instances in a VPC (vpc).AllocateAddressResultwithPublicIp(String publicIp)The Elastic IP address.
-
-
-
Method Detail
-
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 AllocateAddressResult 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.
-
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 AllocateAddressResult 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 AllocateAddressResult 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
-
setAllocationId
public void setAllocationId(String allocationId)
[EC2-VPC] The ID that AWS assigns to represent the allocation of the Elastic IP address for use with instances in a VPC.
- Parameters:
allocationId- [EC2-VPC] The ID that AWS assigns to represent the allocation of the Elastic IP address for use with instances in a VPC.
-
getAllocationId
public String getAllocationId()
[EC2-VPC] The ID that AWS assigns to represent the allocation of the Elastic IP address for use with instances in a VPC.
- Returns:
- [EC2-VPC] The ID that AWS assigns to represent the allocation of the Elastic IP address for use with instances in a VPC.
-
withAllocationId
public AllocateAddressResult withAllocationId(String allocationId)
[EC2-VPC] The ID that AWS assigns to represent the allocation of the Elastic IP address for use with instances in a VPC.
- Parameters:
allocationId- [EC2-VPC] The ID that AWS assigns to represent the allocation of the Elastic IP address for use with instances in a VPC.- 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()
-
clone
public AllocateAddressResult clone()
-
-