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>, Serializable

public class DisassociateAddressRequest
extends AmazonWebServiceRequest
implements 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(String publicIp)
          Constructs a new DisassociateAddressRequest object.
 
Method Summary
 boolean equals(Object obj)
           
 String getAssociationId()
          [EC2-VPC] The association ID.
 Request<DisassociateAddressRequest> getDryRunRequest()
          This method is intended for internal use only.
 String getPublicIp()
          [EC2-Classic] The Elastic IP address.
 int hashCode()
           
 void setAssociationId(String associationId)
          [EC2-VPC] The association ID.
 void setPublicIp(String publicIp)
          [EC2-Classic] The Elastic IP address.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 DisassociateAddressRequest withAssociationId(String associationId)
          [EC2-VPC] The association ID.
 DisassociateAddressRequest withPublicIp(String publicIp)
          [EC2-Classic] The Elastic IP address.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
 
Methods inherited from class java.lang.Object
clone, finalize, 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 - [EC2-Classic] The Elastic IP address.
Method Detail

getPublicIp

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

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

setPublicIp

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

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

withPublicIp

public DisassociateAddressRequest withPublicIp(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 String getAssociationId()
[EC2-VPC] The association ID.

Returns:
[EC2-VPC] The association ID.

setAssociationId

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

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

withAssociationId

public DisassociateAddressRequest withAssociationId(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 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 © 2016. All rights reserved.