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 AllocateAddressResult
clone()
boolean
equals(Object obj)
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.String
getDomain()
Indicates whether this Elastic IP address is for use with instances in EC2-Classic (standard
) or instances in a VPC (vpc
).String
getPublicIp()
The Elastic IP address.int
hashCode()
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.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
setPublicIp(String publicIp)
The Elastic IP address.String
toString()
Returns a string representation of this object; useful for testing and debugging.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.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
).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
).AllocateAddressResult
withPublicIp(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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public AllocateAddressResult clone()
-
-