
com.huaweicloud.sdk.meeting.v1.model.ModAdminDTO 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;
/** 待修改的管理员信息 */
public class ModAdminDTO {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "name")
private String name;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "email")
private String email;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "phone")
private String phone;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "country")
private String country;
public ModAdminDTO withName(String name) {
this.name = name;
return this;
}
/** 名称
*
* @return name */
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public ModAdminDTO withEmail(String email) {
this.email = email;
return this;
}
/** 邮箱
*
* @return email */
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public ModAdminDTO withPhone(String phone) {
this.phone = phone;
return this;
}
/** 手机号,必须加上国家码,例如中国大陆手机+86xxxxxxx,当填写手机号时 “country”参数必填
*
* @return phone */
public String getPhone() {
return phone;
}
public void setPhone(String phone) {
this.phone = phone;
}
public ModAdminDTO 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;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ModAdminDTO modAdminDTO = (ModAdminDTO) o;
return Objects.equals(this.name, modAdminDTO.name) && Objects.equals(this.email, modAdminDTO.email)
&& Objects.equals(this.phone, modAdminDTO.phone) && Objects.equals(this.country, modAdminDTO.country);
}
@Override
public int hashCode() {
return Objects.hash(name, email, phone, country);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ModAdminDTO {\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" email: ").append(toIndentedString(email)).append("\n");
sb.append(" phone: ").append(toIndentedString(phone)).append("\n");
sb.append(" country: ").append(toIndentedString(country)).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