All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.huaweicloud.sdk.meeting.v1.model.VerificationCodeDTO 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;

/** 联系方式, 应安全要求,放至body参数 */
public class VerificationCodeDTO {

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "contact")

    private String contact;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "verificationCode")

    private String verificationCode;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "country")

    private String country;

    public VerificationCodeDTO withContact(String contact) {
        this.contact = contact;
        return this;
    }

    /** 后台自动识别是手机号还是邮箱。 如果为手机号,必须加上国家码,例如中国大陆手机为“+86xxxxxxxxxxx”,当填写手机号时 “country”参数必填。 maxLength:255 minLength:1
     * 
     * @return contact */
    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }

    public VerificationCodeDTO withVerificationCode(String verificationCode) {
        this.verificationCode = verificationCode;
        return this;
    }

    /** 验证码,在校验的场景时需要携带
     * 
     * @return verificationCode */
    public String getVerificationCode() {
        return verificationCode;
    }

    public void setVerificationCode(String verificationCode) {
        this.verificationCode = verificationCode;
    }

    public VerificationCodeDTO withCountry(String country) {
        this.country = country;
        return this;
    }

    /** contact为手机号,则需带上手机号所属的国家。 例如国家为中国大陆则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;
        }
        VerificationCodeDTO verificationCodeDTO = (VerificationCodeDTO) o;
        return Objects.equals(this.contact, verificationCodeDTO.contact)
            && Objects.equals(this.verificationCode, verificationCodeDTO.verificationCode)
            && Objects.equals(this.country, verificationCodeDTO.country);
    }

    @Override
    public int hashCode() {
        return Objects.hash(contact, verificationCode, country);
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("class VerificationCodeDTO {\n");
        sb.append("    contact: ").append(toIndentedString(contact)).append("\n");
        sb.append("    verificationCode: ").append(toIndentedString(verificationCode)).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