public class DisassociateAddressRequest extends AmazonWebServiceRequest implements java.io.Serializable, DryRunSupportedRequest<DisassociateAddressRequest>
DisassociateAddress operation
.
Disassociates an Elastic IP address from the instance or network interface it's associated with.
An Elastic IP address is for use in either the EC2-Classic platform or in a VPC. For more information, see Elastic IP Addresses in the Amazon Elastic Compute Cloud User Guide .
This is an idempotent operation. If you perform the operation more than once, Amazon EC2 doesn't return an error.
Constructor and Description |
---|
DisassociateAddressRequest()
Default constructor for a new DisassociateAddressRequest object.
|
DisassociateAddressRequest(java.lang.String publicIp)
Constructs a new DisassociateAddressRequest object.
|
Modifier and Type | Method and Description |
---|---|
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.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public DisassociateAddressRequest()
public DisassociateAddressRequest(java.lang.String publicIp)
publicIp
- [EC2-Classic] The Elastic IP address. Required for
EC2-Classic.public java.lang.String getPublicIp()
public void setPublicIp(java.lang.String publicIp)
publicIp
- [EC2-Classic] The Elastic IP address. Required for EC2-Classic.public DisassociateAddressRequest withPublicIp(java.lang.String publicIp)
Returns a reference to this object so that method calls can be chained together.
publicIp
- [EC2-Classic] The Elastic IP address. Required for EC2-Classic.public java.lang.String getAssociationId()
public void setAssociationId(java.lang.String associationId)
associationId
- [EC2-VPC] The association ID. Required for EC2-VPC.public DisassociateAddressRequest withAssociationId(java.lang.String associationId)
Returns a reference to this object so that method calls can be chained together.
associationId
- [EC2-VPC] The association ID. Required for EC2-VPC.public Request<DisassociateAddressRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<DisassociateAddressRequest>
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.