com.amazonaws.services.ec2.model
Class AllocateAddressRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.ec2.model.AllocateAddressRequest
All Implemented Interfaces:
DryRunSupportedRequest<AllocateAddressRequest>, java.io.Serializable

public class AllocateAddressRequest
extends AmazonWebServiceRequest
implements java.io.Serializable, DryRunSupportedRequest<AllocateAddressRequest>

Container for the parameters to the 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 .

See Also:
AmazonEC2.allocateAddress(AllocateAddressRequest), Serialized Form

Constructor Summary
AllocateAddressRequest()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.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(java.lang.String domain)
          Set to vpc to allocate the address for use with instances in a VPC.
 java.lang.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(java.lang.String domain)
          Set to vpc to allocate the address for use with instances in a VPC.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setDelegationToken, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AllocateAddressRequest

public AllocateAddressRequest()
Method Detail

getDomain

public java.lang.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.

Constraints:
Allowed Values: vpc, standard

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

setDomain

public void setDomain(java.lang.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.

Constraints:
Allowed Values: vpc, standard

Parameters:
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.

See Also:
DomainType

withDomain

public AllocateAddressRequest withDomain(java.lang.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.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: vpc, standard

Parameters:
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.

Returns:
A reference to this updated 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.

Constraints:
Allowed Values: vpc, standard

Parameters:
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.

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.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: vpc, standard

Parameters:
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.

Returns:
A reference to this updated 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 interface DryRunSupportedRequest<AllocateAddressRequest>

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.