public class AllocateAddressRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<AllocateAddressRequest>
AllocateAddress operation.
Acquires an Elastic IP address.
An Elastic IP address is for use either in the EC2-Classic platform or in a VPC. For more information, see Elastic IP Addresses in the Amazon Elastic Compute Cloud User Guide .
NOOP| Constructor and Description |
|---|
AllocateAddressRequest() |
| Modifier and Type | Method and Description |
|---|---|
AllocateAddressRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getDomain()
Set to
vpc to allocate the address for use with instances
in a VPC. |
Request<AllocateAddressRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
int |
hashCode() |
void |
setDomain(DomainType domain)
Set to
vpc to allocate the address for use with instances
in a VPC. |
void |
setDomain(String domain)
Set to
vpc to allocate the address for use with instances
in a VPC. |
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AllocateAddressRequest |
withDomain(DomainType domain)
Set to
vpc to allocate the address for use with instances
in a VPC. |
AllocateAddressRequest |
withDomain(String domain)
Set to
vpc to allocate the address for use with instances
in a VPC. |
getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic String getDomain()
vpc to allocate the address for use with instances
in a VPC. Default: The address is for use with instances in EC2-Classic.
Constraints:
Allowed Values: vpc, standard
vpc to allocate the address for use with instances
in a VPC. Default: The address is for use with instances in EC2-Classic.
DomainTypepublic void setDomain(String domain)
vpc to allocate the address for use with instances
in a VPC. Default: The address is for use with instances in EC2-Classic.
Constraints:
Allowed Values: vpc, standard
domain - Set to vpc to allocate the address for use with instances
in a VPC. Default: The address is for use with instances in EC2-Classic.
DomainTypepublic AllocateAddressRequest withDomain(String domain)
vpc to allocate the address for use with instances
in a VPC. Default: The address is for use with instances in EC2-Classic.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: vpc, standard
domain - Set to vpc to allocate the address for use with instances
in a VPC. Default: The address is for use with instances in EC2-Classic.
DomainTypepublic void setDomain(DomainType domain)
vpc to allocate the address for use with instances
in a VPC. Default: The address is for use with instances in EC2-Classic.
Constraints:
Allowed Values: vpc, standard
domain - Set to vpc to allocate the address for use with instances
in a VPC. Default: The address is for use with instances in EC2-Classic.
DomainTypepublic AllocateAddressRequest withDomain(DomainType domain)
vpc to allocate the address for use with instances
in a VPC. Default: The address is for use with instances in EC2-Classic.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: vpc, standard
domain - Set to vpc to allocate the address for use with instances
in a VPC. Default: The address is for use with instances in EC2-Classic.
DomainTypepublic Request<AllocateAddressRequest> getDryRunRequest()
getDryRunRequest in interface DryRunSupportedRequest<AllocateAddressRequest>public String toString()
toString in class ObjectObject.toString()public AllocateAddressRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.