|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.ec2.model.ReleaseAddressRequest
public class ReleaseAddressRequest
Container for the parameters to the ReleaseAddress operation
.
Releases the specified Elastic IP address.
After releasing an Elastic IP address, it is released to the IP
address pool and might be unavailable to you. Be sure to update your
DNS records and any servers or devices that communicate with the
address. If you attempt to release an Elastic IP address that you
already released, you'll get an AuthFailure
error if the
address is already allocated to another AWS account.
[EC2-Classic, default VPC] Releasing an Elastic IP address automatically disassociates it from any instance that it's associated with. To disassociate an Elastic IP address without releasing it, use DisassociateAddress.
[Nondefault VPC] You must use the DisassociateAddress to disassociate
the Elastic IP address before you try to release it. Otherwise, Amazon
EC2 returns an error ( InvalidIPAddress.InUse
).
AmazonEC2.releaseAddress(ReleaseAddressRequest)
,
Serialized FormConstructor Summary | |
---|---|
ReleaseAddressRequest()
Default constructor for a new ReleaseAddressRequest object. |
|
ReleaseAddressRequest(java.lang.String publicIp)
Constructs a new ReleaseAddressRequest object. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getAllocationId()
[EC2-VPC] The allocation ID. |
Request<ReleaseAddressRequest> |
getDryRunRequest()
This method is intended for internal use only. |
java.lang.String |
getPublicIp()
[EC2-Classic] The Elastic IP address. |
int |
hashCode()
|
void |
setAllocationId(java.lang.String allocationId)
[EC2-VPC] The allocation 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. |
ReleaseAddressRequest |
withAllocationId(java.lang.String allocationId)
[EC2-VPC] The allocation ID. |
ReleaseAddressRequest |
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 |
---|
public ReleaseAddressRequest()
public ReleaseAddressRequest(java.lang.String publicIp)
publicIp
- [EC2-Classic] The Elastic IP address.Method Detail |
---|
public java.lang.String getPublicIp()
public void setPublicIp(java.lang.String publicIp)
publicIp
- [EC2-Classic] The Elastic IP address.public ReleaseAddressRequest 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.
public java.lang.String getAllocationId()
public void setAllocationId(java.lang.String allocationId)
allocationId
- [EC2-VPC] The allocation ID.public ReleaseAddressRequest withAllocationId(java.lang.String allocationId)
Returns a reference to this object so that method calls can be chained together.
allocationId
- [EC2-VPC] The allocation ID.
public Request<ReleaseAddressRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<ReleaseAddressRequest>
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
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |