com.amazonaws.services.ec2.model
Class AllocateAddressRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.ec2.model.AllocateAddressRequest

public class AllocateAddressRequest
extends AmazonWebServiceRequest

Container for the parameters to the AllocateAddress operation.

The AllocateAddress operation acquires an elastic IP address for use with your account.

See Also:
AmazonEC2.allocateAddress(AllocateAddressRequest)

Constructor Summary
AllocateAddressRequest()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getDomain()
          Set to vpc to allocate the address to your VPC.
 int hashCode()
           
 void setDomain(DomainType domain)
          Set to vpc to allocate the address to your VPC.
 void setDomain(String domain)
          Set to vpc to allocate the address to your 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 to your VPC.
 AllocateAddressRequest withDomain(String domain)
          Set to vpc to allocate the address to your VPC.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, setDelegationToken, setRequestCredentials
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AllocateAddressRequest

public AllocateAddressRequest()
Method Detail

getDomain

public String getDomain()
Set to vpc to allocate the address to your VPC. By default, will allocate to EC2.

Constraints:
Allowed Values: vpc, standard

Returns:
Set to vpc to allocate the address to your VPC. By default, will allocate to EC2.
See Also:
DomainType

setDomain

public void setDomain(String domain)
Set to vpc to allocate the address to your VPC. By default, will allocate to EC2.

Constraints:
Allowed Values: vpc, standard

Parameters:
domain - Set to vpc to allocate the address to your VPC. By default, will allocate to EC2.
See Also:
DomainType

withDomain

public AllocateAddressRequest withDomain(String domain)
Set to vpc to allocate the address to your VPC. By default, will allocate to EC2.

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 to your VPC. By default, will allocate to EC2.
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 to your VPC. By default, will allocate to EC2.

Constraints:
Allowed Values: vpc, standard

Parameters:
domain - Set to vpc to allocate the address to your VPC. By default, will allocate to EC2.
See Also:
DomainType

withDomain

public AllocateAddressRequest withDomain(DomainType domain)
Set to vpc to allocate the address to your VPC. By default, will allocate to EC2.

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 to your VPC. By default, will allocate to EC2.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
DomainType

toString

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

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


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