com.amazonaws.services.ec2.model
Class DisassociateAddressRequest

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

public class DisassociateAddressRequest
extends AmazonWebServiceRequest

Container for the parameters to the DisassociateAddress operation.

The DisassociateAddress operation disassociates the specified elastic IP address from the instance to which it is assigned. This is an idempotent operation. If you enter it more than once, Amazon EC2 does not return an error.

See Also:
AmazonEC2.disassociateAddress(DisassociateAddressRequest)

Constructor Summary
DisassociateAddressRequest()
          Default constructor for a new DisassociateAddressRequest object.
DisassociateAddressRequest(String publicIp)
          Constructs a new DisassociateAddressRequest object.
 
Method Summary
 boolean equals(Object obj)
           
 String getAssociationId()
          Association ID corresponding to the VPC elastic IP address you want to disassociate.
 String getPublicIp()
          The elastic IP address that you are disassociating from the instance.
 int hashCode()
           
 void setAssociationId(String associationId)
          Association ID corresponding to the VPC elastic IP address you want to disassociate.
 void setPublicIp(String publicIp)
          The elastic IP address that you are disassociating from the instance.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 DisassociateAddressRequest withAssociationId(String associationId)
          Association ID corresponding to the VPC elastic IP address you want to disassociate.
 DisassociateAddressRequest withPublicIp(String publicIp)
          The elastic IP address that you are disassociating from the instance.
 
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

DisassociateAddressRequest

public DisassociateAddressRequest()
Default constructor for a new DisassociateAddressRequest object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.


DisassociateAddressRequest

public DisassociateAddressRequest(String publicIp)
Constructs a new DisassociateAddressRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
publicIp - The elastic IP address that you are disassociating from the instance.
Method Detail

getPublicIp

public String getPublicIp()
The elastic IP address that you are disassociating from the instance.

Returns:
The elastic IP address that you are disassociating from the instance.

setPublicIp

public void setPublicIp(String publicIp)
The elastic IP address that you are disassociating from the instance.

Parameters:
publicIp - The elastic IP address that you are disassociating from the instance.

withPublicIp

public DisassociateAddressRequest withPublicIp(String publicIp)
The elastic IP address that you are disassociating from the instance.

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

Parameters:
publicIp - The elastic IP address that you are disassociating from the instance.
Returns:
A reference to this updated object so that method calls can be chained together.

getAssociationId

public String getAssociationId()
Association ID corresponding to the VPC elastic IP address you want to disassociate.

Returns:
Association ID corresponding to the VPC elastic IP address you want to disassociate.

setAssociationId

public void setAssociationId(String associationId)
Association ID corresponding to the VPC elastic IP address you want to disassociate.

Parameters:
associationId - Association ID corresponding to the VPC elastic IP address you want to disassociate.

withAssociationId

public DisassociateAddressRequest withAssociationId(String associationId)
Association ID corresponding to the VPC elastic IP address you want to disassociate.

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

Parameters:
associationId - Association ID corresponding to the VPC elastic IP address you want to disassociate.
Returns:
A reference to this updated object so that method calls can be chained together.

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.