Class SendSmsRequest
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.zj.v20190121.models.SendSmsRequest
-
public class SendSmsRequest extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor Description SendSmsRequest()SendSmsRequest(SendSmsRequest source)NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy, and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetContent()Get 发送使用的模板内容,如果有占位符,此处也包括占位符,占位符的实际内容通过Params参数传递,使用模板id发送时此字段为空LonggetInternational()Get 是否国际/港澳台短信: 0:表示国内短信。 1:表示国际/港澳台短信。使用内容发送时必填StringgetLicense()Get 商户证书String[]getParams()Get 模板参数,若无模板参数,则设置为空。String[]getPhone()Get 手机号码,采用 e.164 标准,格式为+[国家或地区码][手机号],单次请求最多支持200个手机号且要求全为境内手机号,如:+8613800138000StringgetSenderId()Get 国际/港澳台短信 senderid,国内短信填空StringgetSign()Get 短信签名内容,使用 UTF-8 编码,必须填写已审核通过的签名。注:国内短信为必填参数。LonggetSmsType()Get 短信类型:{0:普通短信,1:营销短信},使用内容发送时必填StringgetTemplateId()Get 短信模板id(推荐使用模板id发送,使用内容发送时模板id留空)voidsetContent(String Content)Set 发送使用的模板内容,如果有占位符,此处也包括占位符,占位符的实际内容通过Params参数传递,使用模板id发送时此字段为空voidsetInternational(Long International)Set 是否国际/港澳台短信: 0:表示国内短信。 1:表示国际/港澳台短信。使用内容发送时必填voidsetLicense(String License)Set 商户证书voidsetParams(String[] Params)Set 模板参数,若无模板参数,则设置为空。voidsetPhone(String[] Phone)Set 手机号码,采用 e.164 标准,格式为+[国家或地区码][手机号],单次请求最多支持200个手机号且要求全为境内手机号,如:+8613800138000voidsetSenderId(String SenderId)Set 国际/港澳台短信 senderid,国内短信填空voidsetSign(String Sign)Set 短信签名内容,使用 UTF-8 编码,必须填写已审核通过的签名。注:国内短信为必填参数。voidsetSmsType(Long SmsType)Set 短信类型:{0:普通短信,1:营销短信},使用内容发送时必填voidsetTemplateId(String TemplateId)Set 短信模板id(推荐使用模板id发送,使用内容发送时模板id留空)voidtoMap(HashMap<String,String> map, String prefix)Internal implementation, normal users should not use it.-
Methods inherited from class com.tencentcloudapi.common.AbstractModel
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
-
-
-
-
Constructor Detail
-
SendSmsRequest
public SendSmsRequest()
-
SendSmsRequest
public SendSmsRequest(SendSmsRequest source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy, and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
-
-
Method Detail
-
getLicense
public String getLicense()
Get 商户证书- Returns:
- License 商户证书
-
setLicense
public void setLicense(String License)
Set 商户证书- Parameters:
License- 商户证书
-
getPhone
public String[] getPhone()
Get 手机号码,采用 e.164 标准,格式为+[国家或地区码][手机号],单次请求最多支持200个手机号且要求全为境内手机号,如:+8613800138000- Returns:
- Phone 手机号码,采用 e.164 标准,格式为+[国家或地区码][手机号],单次请求最多支持200个手机号且要求全为境内手机号,如:+8613800138000
-
setPhone
public void setPhone(String[] Phone)
Set 手机号码,采用 e.164 标准,格式为+[国家或地区码][手机号],单次请求最多支持200个手机号且要求全为境内手机号,如:+8613800138000- Parameters:
Phone- 手机号码,采用 e.164 标准,格式为+[国家或地区码][手机号],单次请求最多支持200个手机号且要求全为境内手机号,如:+8613800138000
-
getTemplateId
public String getTemplateId()
Get 短信模板id(推荐使用模板id发送,使用内容发送时模板id留空)- Returns:
- TemplateId 短信模板id(推荐使用模板id发送,使用内容发送时模板id留空)
-
setTemplateId
public void setTemplateId(String TemplateId)
Set 短信模板id(推荐使用模板id发送,使用内容发送时模板id留空)- Parameters:
TemplateId- 短信模板id(推荐使用模板id发送,使用内容发送时模板id留空)
-
getParams
public String[] getParams()
Get 模板参数,若无模板参数,则设置为空。- Returns:
- Params 模板参数,若无模板参数,则设置为空。
-
setParams
public void setParams(String[] Params)
Set 模板参数,若无模板参数,则设置为空。- Parameters:
Params- 模板参数,若无模板参数,则设置为空。
-
getSign
public String getSign()
Get 短信签名内容,使用 UTF-8 编码,必须填写已审核通过的签名。注:国内短信为必填参数。- Returns:
- Sign 短信签名内容,使用 UTF-8 编码,必须填写已审核通过的签名。注:国内短信为必填参数。
-
setSign
public void setSign(String Sign)
Set 短信签名内容,使用 UTF-8 编码,必须填写已审核通过的签名。注:国内短信为必填参数。- Parameters:
Sign- 短信签名内容,使用 UTF-8 编码,必须填写已审核通过的签名。注:国内短信为必填参数。
-
getSenderId
public String getSenderId()
Get 国际/港澳台短信 senderid,国内短信填空- Returns:
- SenderId 国际/港澳台短信 senderid,国内短信填空
-
setSenderId
public void setSenderId(String SenderId)
Set 国际/港澳台短信 senderid,国内短信填空- Parameters:
SenderId- 国际/港澳台短信 senderid,国内短信填空
-
getSmsType
public Long getSmsType()
Get 短信类型:{0:普通短信,1:营销短信},使用内容发送时必填- Returns:
- SmsType 短信类型:{0:普通短信,1:营销短信},使用内容发送时必填
-
setSmsType
public void setSmsType(Long SmsType)
Set 短信类型:{0:普通短信,1:营销短信},使用内容发送时必填- Parameters:
SmsType- 短信类型:{0:普通短信,1:营销短信},使用内容发送时必填
-
getInternational
public Long getInternational()
Get 是否国际/港澳台短信: 0:表示国内短信。 1:表示国际/港澳台短信。使用内容发送时必填- Returns:
- International 是否国际/港澳台短信: 0:表示国内短信。 1:表示国际/港澳台短信。使用内容发送时必填
-
setInternational
public void setInternational(Long International)
Set 是否国际/港澳台短信: 0:表示国内短信。 1:表示国际/港澳台短信。使用内容发送时必填- Parameters:
International- 是否国际/港澳台短信: 0:表示国内短信。 1:表示国际/港澳台短信。使用内容发送时必填
-
getContent
public String getContent()
Get 发送使用的模板内容,如果有占位符,此处也包括占位符,占位符的实际内容通过Params参数传递,使用模板id发送时此字段为空- Returns:
- Content 发送使用的模板内容,如果有占位符,此处也包括占位符,占位符的实际内容通过Params参数传递,使用模板id发送时此字段为空
-
setContent
public void setContent(String Content)
Set 发送使用的模板内容,如果有占位符,此处也包括占位符,占位符的实际内容通过Params参数传递,使用模板id发送时此字段为空- Parameters:
Content- 发送使用的模板内容,如果有占位符,此处也包括占位符,占位符的实际内容通过Params参数传递,使用模板id发送时此字段为空
-
-