Class AllocateAddressRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.ec2.model.AllocateAddressRequest
-
- All Implemented Interfaces:
ReadLimitInfo
,DryRunSupportedRequest<AllocateAddressRequest>
,Serializable
,Cloneable
public class AllocateAddressRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<AllocateAddressRequest>
Contains the parameters for AllocateAddress.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description AllocateAddressRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AllocateAddressRequest
clone()
Creates a shallow clone of this request.boolean
equals(Object obj)
String
getDomain()
Set tovpc
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 tovpc
to allocate the address for use with instances in a VPC.void
setDomain(String domain)
Set tovpc
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 tovpc
to allocate the address for use with instances in a VPC.AllocateAddressRequest
withDomain(String domain)
Set tovpc
to allocate the address for use with instances in a VPC.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Method Detail
-
setDomain
public void setDomain(String 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.
- Parameters:
domain
- Set tovpc
to allocate the address for use with instances in a VPC.Default: The address is for use with instances in EC2-Classic.
- See Also:
DomainType
-
getDomain
public String getDomain()
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.
- Returns:
- 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.
- See Also:
DomainType
-
withDomain
public AllocateAddressRequest withDomain(String 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.
- Parameters:
domain
- Set tovpc
to allocate the address for use with instances in a VPC.Default: The address is for use with instances in EC2-Classic.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
DomainType
-
setDomain
public void setDomain(DomainType 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.
- Parameters:
domain
- Set tovpc
to allocate the address for use with instances in a VPC.Default: The address is for use with instances in EC2-Classic.
- See Also:
DomainType
-
withDomain
public AllocateAddressRequest withDomain(DomainType 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.
- Parameters:
domain
- Set tovpc
to allocate the address for use with instances in a VPC.Default: The address is for use with instances in EC2-Classic.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
DomainType
-
getDryRunRequest
public Request<AllocateAddressRequest> getDryRunRequest()
This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run.- Specified by:
getDryRunRequest
in interfaceDryRunSupportedRequest<AllocateAddressRequest>
-
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 AllocateAddressRequest clone()
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-