com.huaweicloud.sdk.obs.v1.model.Domains Maven / Gradle / Ivy
package com.huaweicloud.sdk.obs.v1.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
import java.util.Objects;
/**
* 自定义域名元素。
*/
@JacksonXmlRootElement(localName = "Domains")
public class Domains {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "DomainName")
@JacksonXmlProperty(localName = "DomainName")
private String domainName;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "CreateTime")
@JacksonXmlProperty(localName = "CreateTime")
private String createTime;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "CertificateId")
@JacksonXmlProperty(localName = "CertificateId")
private String certificateId;
public Domains withDomainName(String domainName) {
this.domainName = domainName;
return this;
}
/**
* 自定义域名。
* @return domainName
*/
public String getDomainName() {
return domainName;
}
public void setDomainName(String domainName) {
this.domainName = domainName;
}
public Domains withCreateTime(String createTime) {
this.createTime = createTime;
return this;
}
/**
* 自定义域名创建时间。
* @return createTime
*/
public String getCreateTime() {
return createTime;
}
public void setCreateTime(String createTime) {
this.createTime = createTime;
}
public Domains withCertificateId(String certificateId) {
this.certificateId = certificateId;
return this;
}
/**
* 自定义域名证书ID。
* @return certificateId
*/
public String getCertificateId() {
return certificateId;
}
public void setCertificateId(String certificateId) {
this.certificateId = certificateId;
}
@Override
public boolean equals(java.lang.Object obj) {
if (this == obj) {
return true;
}
if (obj == null || getClass() != obj.getClass()) {
return false;
}
Domains that = (Domains) obj;
return Objects.equals(this.domainName, that.domainName) && Objects.equals(this.createTime, that.createTime)
&& Objects.equals(this.certificateId, that.certificateId);
}
@Override
public int hashCode() {
return Objects.hash(domainName, createTime, certificateId);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Domains {\n");
sb.append(" domainName: ").append(toIndentedString(domainName)).append("\n");
sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n");
sb.append(" certificateId: ").append(toIndentedString(certificateId)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}