com.volcengine.model.maas.api.v2.CertResp Maven / Gradle / Ivy
Show all versions of volc-sdk-java Show documentation
package com.volcengine.model.maas.api.v2;
import javax.annotation.Generated;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* MaasCertResponse
*
*
*
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"cert"
})
@Generated("jsonschema2pojo")
public class CertResp {
/**
* Cert
*
*
*
*/
@JsonProperty("cert")
private String cert = "";
/**
* Cert
*
*
*
*/
@JsonProperty("cert")
public String getCert() {
return cert;
}
/**
* Cert
*
*
*
*/
@JsonProperty("cert")
public void setCert(String cert) {
this.cert = cert;
}
public CertResp withCert(String cert) {
this.cert = cert;
return this;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(CertResp.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('[');
sb.append("cert");
sb.append('=');
sb.append(((this.cert == null)?"":this.cert));
sb.append(',');
if (sb.charAt((sb.length()- 1)) == ',') {
sb.setCharAt((sb.length()- 1), ']');
} else {
sb.append(']');
}
return sb.toString();
}
@Override
public int hashCode() {
int result = 1;
result = ((result* 31)+((this.cert == null)? 0 :this.cert.hashCode()));
return result;
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof CertResp) == false) {
return false;
}
CertResp rhs = ((CertResp) other);
return ((this.cert == rhs.cert)||((this.cert!= null)&&this.cert.equals(rhs.cert)));
}
}