com.amazonaws.services.ec2.model
Class DisassociateAddressRequest

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

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

Container for the parameters to the DisassociateAddress operation.

Disassociates an Elastic IP address from the instance or network interface it's associated with.

This is an idempotent operation. If you perform the operation more than once, Amazon EC2 doesn't return an error.

See Also:
AmazonEC2.disassociateAddress(DisassociateAddressRequest), Serialized Form

Constructor Summary
DisassociateAddressRequest()
          Default constructor for a new DisassociateAddressRequest object.
DisassociateAddressRequest(java.lang.String publicIp)
          Constructs a new DisassociateAddressRequest object.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getAssociationId()
          [EC2-VPC] The association ID.
 Request<DisassociateAddressRequest> getDryRunRequest()
          This method is intended for internal use only.
 java.lang.String getPublicIp()
          [EC2-Classic] The Elastic IP address.
 int hashCode()
           
 void setAssociationId(java.lang.String associationId)
          [EC2-VPC] The association ID.
 void setPublicIp(java.lang.String publicIp)
          [EC2-Classic] The Elastic IP address.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 DisassociateAddressRequest withAssociationId(java.lang.String associationId)
          [EC2-VPC] The association ID.
 DisassociateAddressRequest withPublicIp(java.lang.String publicIp)
          [EC2-Classic] The Elastic IP address.
 
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

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(java.lang.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 - [EC2-Classic] The Elastic IP address.
Method Detail

getPublicIp

public java.lang.String getPublicIp()
[EC2-Classic] The Elastic IP address.

Returns:
[EC2-Classic] The Elastic IP address.

setPublicIp

public void setPublicIp(java.lang.String publicIp)
[EC2-Classic] The Elastic IP address.

Parameters:
publicIp - [EC2-Classic] The Elastic IP address.

withPublicIp

public DisassociateAddressRequest withPublicIp(java.lang.String publicIp)
[EC2-Classic] The Elastic IP address.

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

Parameters:
publicIp - [EC2-Classic] The Elastic IP address.
Returns:
A reference to this updated object so that method calls can be chained together.

getAssociationId

public java.lang.String getAssociationId()
[EC2-VPC] The association ID.

Returns:
[EC2-VPC] The association ID.

setAssociationId

public void setAssociationId(java.lang.String associationId)
[EC2-VPC] The association ID.

Parameters:
associationId - [EC2-VPC] The association ID.

withAssociationId

public DisassociateAddressRequest withAssociationId(java.lang.String associationId)
[EC2-VPC] The association ID.

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

Parameters:
associationId - [EC2-VPC] The association ID.
Returns:
A reference to this updated object so that method calls can be chained together.

getDryRunRequest

public Request<DisassociateAddressRequest> 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<DisassociateAddressRequest>

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.