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

com.volcengine.model.request.SmsSendRequest Maven / Gradle / Ivy

There is a newer version: 1.0.192
Show newest version
package com.volcengine.model.request;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import java.util.Map;

@Data
public class SmsSendRequest {
    @JSONField(name = "SmsAccount")
    String smsAccount;
    @JSONField(name = "Sign")
    String sign;
    @JSONField(name = "TemplateId")
    String templateId;
    @JSONField(name = "TemplateParam")
    String templateParam;
    @JSONField(name = "PhoneNumbers")
    String phoneNumbers;
    @JSONField(name = "Tag")
    String tag;
    @JSONField(name = "UserExtCode")
    String userExtCode;

    @JSONField(name="EncryptName")
    String encryptName;
    public void setTemplateParamByMap(Map paramMap){
        if (paramMap==null|| paramMap.isEmpty()){
            return;
        }
        this.templateParam = JSON.toJSONString(paramMap);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy