com.huaweicloud.sdk.osm.v2.model.CheckNeedVerifyRequest Maven / Gradle / Ivy
package com.huaweicloud.sdk.osm.v2.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
/**
* Request Object
*/
public class CheckNeedVerifyRequest {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "contact_value")
private String contactValue;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "contact_way")
private Integer contactWay;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "area_code")
private String areaCode;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "X-Site")
private Integer xSite;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "X-Language")
private String xLanguage;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "X-Time-Zone")
private String xTimeZone;
public CheckNeedVerifyRequest withContactValue(String contactValue) {
this.contactValue = contactValue;
return this;
}
/**
* 联系方式值
* @return contactValue
*/
public String getContactValue() {
return contactValue;
}
public void setContactValue(String contactValue) {
this.contactValue = contactValue;
}
public CheckNeedVerifyRequest withContactWay(Integer contactWay) {
this.contactWay = contactWay;
return this;
}
/**
* 联系方式类型
* minimum: 0
* maximum: 1
* @return contactWay
*/
public Integer getContactWay() {
return contactWay;
}
public void setContactWay(Integer contactWay) {
this.contactWay = contactWay;
}
public CheckNeedVerifyRequest withAreaCode(String areaCode) {
this.areaCode = areaCode;
return this;
}
/**
* 国家码
* @return areaCode
*/
public String getAreaCode() {
return areaCode;
}
public void setAreaCode(String areaCode) {
this.areaCode = areaCode;
}
public CheckNeedVerifyRequest withXSite(Integer xSite) {
this.xSite = xSite;
return this;
}
/**
* 对接站点信息。 0(中国站) 1(国际站),不填的话默认为0。
* minimum: 0
* maximum: 1
* @return xSite
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "X-Site")
public Integer getXSite() {
return xSite;
}
public void setXSite(Integer xSite) {
this.xSite = xSite;
}
public CheckNeedVerifyRequest withXLanguage(String xLanguage) {
this.xLanguage = xLanguage;
return this;
}
/**
* 语言环境,值为通用的语言描述字符串,比如zh-cn等,默认为zh-cn。 会根据语言环境对应展示一些国际化的信息,比如工单类型名称等。
* @return xLanguage
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "X-Language")
public String getXLanguage() {
return xLanguage;
}
public void setXLanguage(String xLanguage) {
this.xLanguage = xLanguage;
}
public CheckNeedVerifyRequest withXTimeZone(String xTimeZone) {
this.xTimeZone = xTimeZone;
return this;
}
/**
* 环境时区,值为通用的时区描述字符串,比如GMT+8等,默认为GMT+8。 涉及时间的数据会根据环境时区处理。
* @return xTimeZone
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "X-Time-Zone")
public String getXTimeZone() {
return xTimeZone;
}
public void setXTimeZone(String xTimeZone) {
this.xTimeZone = xTimeZone;
}
@Override
public boolean equals(java.lang.Object obj) {
if (this == obj) {
return true;
}
if (obj == null || getClass() != obj.getClass()) {
return false;
}
CheckNeedVerifyRequest that = (CheckNeedVerifyRequest) obj;
return Objects.equals(this.contactValue, that.contactValue) && Objects.equals(this.contactWay, that.contactWay)
&& Objects.equals(this.areaCode, that.areaCode) && Objects.equals(this.xSite, that.xSite)
&& Objects.equals(this.xLanguage, that.xLanguage) && Objects.equals(this.xTimeZone, that.xTimeZone);
}
@Override
public int hashCode() {
return Objects.hash(contactValue, contactWay, areaCode, xSite, xLanguage, xTimeZone);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CheckNeedVerifyRequest {\n");
sb.append(" contactValue: ").append(toIndentedString(contactValue)).append("\n");
sb.append(" contactWay: ").append(toIndentedString(contactWay)).append("\n");
sb.append(" areaCode: ").append(toIndentedString(areaCode)).append("\n");
sb.append(" xSite: ").append(toIndentedString(xSite)).append("\n");
sb.append(" xLanguage: ").append(toIndentedString(xLanguage)).append("\n");
sb.append(" xTimeZone: ").append(toIndentedString(xTimeZone)).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 ");
}
}