public class AllocateAddressResult
extends java.lang.Object
implements java.io.Serializable
Contains the output of AllocateAddress.
Constructor and Description |
---|
AllocateAddressResult() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.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.
|
java.lang.String |
getDomain()
Indicates whether this Elastic IP address is for use with instances in
EC2-Classic (
standard ) or instances in a VPC
(vpc ). |
java.lang.String |
getPublicIp()
The Elastic IP address.
|
int |
hashCode() |
void |
setAllocationId(java.lang.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(java.lang.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(java.lang.String publicIp)
The Elastic IP address.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AllocateAddressResult |
withAllocationId(java.lang.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(java.lang.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(java.lang.String publicIp)
The Elastic IP address.
|
public java.lang.String getPublicIp()
public void setPublicIp(java.lang.String publicIp)
publicIp
- The Elastic IP address.public AllocateAddressResult withPublicIp(java.lang.String publicIp)
Returns a reference to this object so that method calls can be chained together.
publicIp
- The Elastic IP address.public java.lang.String getDomain()
standard
) or instances in a VPC
(vpc
).
Constraints:
Allowed Values: vpc, standard
standard
) or instances in a VPC
(vpc
).DomainType
public void setDomain(java.lang.String domain)
standard
) or instances in a VPC
(vpc
).
Constraints:
Allowed Values: vpc, standard
domain
- Indicates whether this Elastic IP address is for use with instances in
EC2-Classic (standard
) or instances in a VPC
(vpc
).DomainType
public AllocateAddressResult withDomain(java.lang.String domain)
standard
) or instances in a VPC
(vpc
).
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: vpc, standard
domain
- Indicates whether this Elastic IP address is for use with instances in
EC2-Classic (standard
) or instances in a VPC
(vpc
).DomainType
public void setDomain(DomainType domain)
standard
) or instances in a VPC
(vpc
).
Constraints:
Allowed Values: vpc, standard
domain
- Indicates whether this Elastic IP address is for use with instances in
EC2-Classic (standard
) or instances in a VPC
(vpc
).DomainType
public AllocateAddressResult withDomain(DomainType domain)
standard
) or instances in a VPC
(vpc
).
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: vpc, standard
domain
- Indicates whether this Elastic IP address is for use with instances in
EC2-Classic (standard
) or instances in a VPC
(vpc
).DomainType
public java.lang.String getAllocationId()
public void setAllocationId(java.lang.String allocationId)
allocationId
- [EC2-VPC] The ID that AWS assigns to represent the allocation of the
Elastic IP address for use with instances in a VPC.public AllocateAddressResult withAllocationId(java.lang.String allocationId)
Returns a reference to this object so that method calls can be chained together.
allocationId
- [EC2-VPC] The ID that AWS assigns to represent the allocation of the
Elastic IP address for use with instances in a VPC.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.