public class ReleaseAddressRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable, DryRunSupportedRequest<ReleaseAddressRequest>
Contains the parameters for ReleaseAddress.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
allocationId
[EC2-VPC] The allocation ID.
|
private java.lang.String |
publicIp
[EC2-Classic] The Elastic IP address.
|
NOOP
Constructor and Description |
---|
ReleaseAddressRequest()
Default constructor for ReleaseAddressRequest object.
|
ReleaseAddressRequest(java.lang.String publicIp)
Constructs a new ReleaseAddressRequest object.
|
Modifier and Type | Method and Description |
---|---|
ReleaseAddressRequest |
clone()
Creates a shallow clone of this request.
|
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.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
private java.lang.String publicIp
[EC2-Classic] The Elastic IP address. Required for EC2-Classic.
private java.lang.String allocationId
[EC2-VPC] The allocation ID. Required for EC2-VPC.
public ReleaseAddressRequest()
public ReleaseAddressRequest(java.lang.String publicIp)
publicIp
- [EC2-Classic] The Elastic IP address. Required for EC2-Classic.public void setPublicIp(java.lang.String publicIp)
[EC2-Classic] The Elastic IP address. Required for EC2-Classic.
publicIp
- [EC2-Classic] The Elastic IP address. Required for EC2-Classic.public java.lang.String getPublicIp()
[EC2-Classic] The Elastic IP address. Required for EC2-Classic.
public ReleaseAddressRequest withPublicIp(java.lang.String publicIp)
[EC2-Classic] The Elastic IP address. Required for EC2-Classic.
publicIp
- [EC2-Classic] The Elastic IP address. Required for EC2-Classic.public void setAllocationId(java.lang.String allocationId)
[EC2-VPC] The allocation ID. Required for EC2-VPC.
allocationId
- [EC2-VPC] The allocation ID. Required for EC2-VPC.public java.lang.String getAllocationId()
[EC2-VPC] The allocation ID. Required for EC2-VPC.
public ReleaseAddressRequest withAllocationId(java.lang.String allocationId)
[EC2-VPC] The allocation ID. Required for EC2-VPC.
allocationId
- [EC2-VPC] The allocation ID. Required for EC2-VPC.public Request<ReleaseAddressRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<ReleaseAddressRequest>
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public ReleaseAddressRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()