com.ksc.network.eip.model.ReleaseAddressRequest Maven / Gradle / Ivy
package com.ksc.network.eip.model;
import com.ksc.KscWebServiceRequest;
import com.ksc.Request;
import com.ksc.model.DryRunSupportedRequest;
import com.ksc.network.eip.model.transform.ReleaseAddressRequestMarshaller;
import java.io.Serializable;
/**
*
* Contains the parameters for ReleaseAddress.
*
*/
public class ReleaseAddressRequest extends KscWebServiceRequest implements
Serializable, Cloneable, DryRunSupportedRequest {
/**
* 弹性IP的ID
*/
private String AllocationId;
public String getAllocationId() {
return AllocationId;
}
public void setAllocationId(String allocationId) {
AllocationId = allocationId;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result
+ ((AllocationId == null) ? 0 : AllocationId.hashCode());
return result;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
ReleaseAddressRequest other = (ReleaseAddressRequest) obj;
if (AllocationId == null) {
if (other.AllocationId != null)
return false;
} else if (!AllocationId.equals(other.AllocationId))
return false;
return true;
}
@Override
public ReleaseAddressRequest clone() {
return (ReleaseAddressRequest) super.clone();
}
@Override
public Request getDryRunRequest() {
Request request = new ReleaseAddressRequestMarshaller()
.marshall(this);
request.addParameter("DryRun", Boolean.toString(true));
return request;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy