com.ksc.network.vpc.model.subnet.ModifySubnetResult Maven / Gradle / Ivy
package com.ksc.network.vpc.model.subnet;
import lombok.ToString;
import java.io.Serializable;
/**
*
* Contains the output of ModifySubnet.
*
*/
@ToString
public class ModifySubnetResult implements Serializable, Cloneable {
private String RequestId;
private Subnet subnet;
public String getRequestId() {
return RequestId;
}
public void setRequestId(String requestId) {
RequestId = requestId;
}
public Subnet getSubnet() {
return subnet;
}
public void setSubnet(Subnet subnet) {
this.subnet = subnet;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result
+ ((RequestId == null) ? 0 : RequestId.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;
ModifySubnetResult other = (ModifySubnetResult) obj;
if (RequestId == null) {
if (other.RequestId != null)
return false;
} else if (!RequestId.equals(other.RequestId))
return false;
return true;
}
@Override
public ModifySubnetResult clone() {
try {
return (ModifySubnetResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException(
"Got a CloneNotSupportedException from Object.clone() "
+ "even though we're Cloneable!", e);
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy