
com.huaweicloud.sdk.meeting.v1.model.ModDeviceDTO Maven / Gradle / Ivy
package com.huaweicloud.sdk.meeting.v1.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
/** 修改终端的参数DTO对象 */
public class ModDeviceDTO {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "name")
private String name;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "prjCodeMode")
private Integer prjCodeMode;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "deptCode")
private String deptCode;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "phone")
private String phone;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "country")
private String country;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "email")
private String email;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "description")
private String description;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "status")
private Integer status;
public ModDeviceDTO withName(String name) {
this.name = name;
return this;
}
/** 终端名称,建议为具体位置。 maxLength:64 minLength:0
*
* @return name */
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public ModDeviceDTO withPrjCodeMode(Integer prjCodeMode) {
this.prjCodeMode = prjCodeMode;
return this;
}
/** 投影码生成模式,默认为自动 - 0、自动(该模式下根据消息上报的IP地址内部控制复杂度: 私网地址配置成简单模式;公网地址配置成复杂模式) - 1、简单 - 2、复杂
*
* @return prjCodeMode */
public Integer getPrjCodeMode() {
return prjCodeMode;
}
public void setPrjCodeMode(Integer prjCodeMode) {
this.prjCodeMode = prjCodeMode;
}
public ModDeviceDTO withDeptCode(String deptCode) {
this.deptCode = deptCode;
return this;
}
/** 部门编号,默认为根部门 默认值:1 maxLength:32 minLength:0
*
* @return deptCode */
public String getDeptCode() {
return deptCode;
}
public void setDeptCode(String deptCode) {
this.deptCode = deptCode;
}
public ModDeviceDTO withPhone(String phone) {
this.phone = phone;
return this;
}
/** 手机号,必须加上国家码。 例如中国大陆手机为“+86xxxxxxxxxxx”,当填写手机号时 “country”参数必填。 手机号只允许输入纯数字。 maxLength:32 minLength:0 说明: -
* 手机号或者邮箱至少填写一个。
*
* @return phone */
public String getPhone() {
return phone;
}
public void setPhone(String phone) {
this.phone = phone;
}
public ModDeviceDTO withCountry(String country) {
this.country = country;
return this;
}
/** 若smsNumber为手机号,则需带上手机号所属的国家。 例如国家为中国大陆则country参数取值为chinaPR
* 国家和国家码的对应关系请参考:https://support.huaweicloud.com/api-meeting/meeting_21_0109.html
*
* @return country */
public String getCountry() {
return country;
}
public void setCountry(String country) {
this.country = country;
}
public ModDeviceDTO withEmail(String email) {
this.email = email;
return this;
}
/** 统一邮箱格式 maxLength:255 minLength:0
*
* @return email */
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public ModDeviceDTO withDescription(String description) {
this.description = description;
return this;
}
/** 终端描述 maxLength:128 minLength:0
*
* @return description */
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public ModDeviceDTO withStatus(Integer status) {
this.status = status;
return this;
}
/** 终端状态。 * 0、正常 * 1、冻结
*
* @return status */
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ModDeviceDTO modDeviceDTO = (ModDeviceDTO) o;
return Objects.equals(this.name, modDeviceDTO.name)
&& Objects.equals(this.prjCodeMode, modDeviceDTO.prjCodeMode)
&& Objects.equals(this.deptCode, modDeviceDTO.deptCode) && Objects.equals(this.phone, modDeviceDTO.phone)
&& Objects.equals(this.country, modDeviceDTO.country) && Objects.equals(this.email, modDeviceDTO.email)
&& Objects.equals(this.description, modDeviceDTO.description)
&& Objects.equals(this.status, modDeviceDTO.status);
}
@Override
public int hashCode() {
return Objects.hash(name, prjCodeMode, deptCode, phone, country, email, description, status);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ModDeviceDTO {\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" prjCodeMode: ").append(toIndentedString(prjCodeMode)).append("\n");
sb.append(" deptCode: ").append(toIndentedString(deptCode)).append("\n");
sb.append(" phone: ").append(toIndentedString(phone)).append("\n");
sb.append(" country: ").append(toIndentedString(country)).append("\n");
sb.append(" email: ").append(toIndentedString(email)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).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 ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy