com.ksc.network.vpc.model.Nat.AssociateNatResult Maven / Gradle / Ivy
package com.ksc.network.vpc.model.Nat;
import lombok.ToString;
import java.io.Serializable;
/**
*
* Contains the output of AssociateNat.
*
*/
@ToString
public class AssociateNatResult implements Serializable, Cloneable {
private String RequestId;
private Boolean Return;
public String getRequestId() {
return RequestId;
}
public void setRequestId(String requestId) {
RequestId = requestId;
}
public Boolean getReturn() {
return Return;
}
public void setReturn(Boolean return1) {
Return = return1;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result
+ ((RequestId == null) ? 0 : RequestId.hashCode());
result = prime * result + ((Return == null) ? 0 : Return.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;
AssociateNatResult other = (AssociateNatResult) obj;
if (RequestId == null) {
if (other.RequestId != null)
return false;
} else if (!RequestId.equals(other.RequestId))
return false;
if (Return == null) {
if (other.Return != null)
return false;
} else if (!Return.equals(other.Return))
return false;
return true;
}
@Override
public AssociateNatResult clone() {
try {
return (AssociateNatResult) 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