public class SendSmsRequest extends AbstractModel
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
String |
getExtendCode()
Get SMS code number extension, which is not activated by default.
|
String[] |
getPhoneNumberSet()
Get Target mobile number in the E.164 standard in the format of +[country/region code][mobile number].
|
String |
getSenderId()
Get This parameter is not required for Mainland China SMS.
|
String |
getSessionContext()
Get User session content, which can carry context information such as user-side ID and will be returned as-is by the server.
|
String |
getSignName()
Get Content of the SMS signature, which should be encoded in UTF-8.
|
String |
getSmsSdkAppId()
Get The SMS `SdkAppId` generated after an application is added in the [SMS console](https://console.cloud.tencent.com/smsv2/app-manage), such as 1400006666.
|
String |
getTemplateId()
Get Template ID.
|
String[] |
getTemplateParamSet()
Get Template parameter.
|
void |
setExtendCode(String ExtendCode)
Set SMS code number extension, which is not activated by default.
|
void |
setPhoneNumberSet(String[] PhoneNumberSet)
Set Target mobile number in the E.164 standard in the format of +[country/region code][mobile number].
|
void |
setSenderId(String SenderId)
Set This parameter is not required for Mainland China SMS.
|
void |
setSessionContext(String SessionContext)
Set User session content, which can carry context information such as user-side ID and will be returned as-is by the server.
|
void |
setSignName(String SignName)
Set Content of the SMS signature, which should be encoded in UTF-8.
|
void |
setSmsSdkAppId(String SmsSdkAppId)
Set The SMS `SdkAppId` generated after an application is added in the [SMS console](https://console.cloud.tencent.com/smsv2/app-manage), such as 1400006666.
|
void |
setTemplateId(String TemplateId)
Set Template ID.
|
void |
setTemplateParamSet(String[] TemplateParamSet)
Set Template parameter.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public SendSmsRequest()
public SendSmsRequest(SendSmsRequest source)
public String[] getPhoneNumberSet()
public void setPhoneNumberSet(String[] PhoneNumberSet)
PhoneNumberSet
- Target mobile number in the E.164 standard in the format of +[country/region code][mobile number]. Up to 200 mobile numbers are supported in one request (which should be all Mainland China mobile numbers or all global mobile numbers).
Example: +8613711112222, which has a + sign followed by 86 (country/region code) and then by 13711112222 (mobile number).public String getSmsSdkAppId()
public void setSmsSdkAppId(String SmsSdkAppId)
SmsSdkAppId
- The SMS `SdkAppId` generated after an application is added in the [SMS console](https://console.cloud.tencent.com/smsv2/app-manage), such as 1400006666.public String getTemplateId()
public void setTemplateId(String TemplateId)
TemplateId
- Template ID. You must enter the ID of an approved template, which can be viewed in the [SMS console](https://console.cloud.tencent.com/smsv2). If you need to send SMS messages to global mobile numbers, you can only use a Global SMS template.public String getSignName()
public void setSignName(String SignName)
SignName
- Content of the SMS signature, which should be encoded in UTF-8. You must enter an approved signature, such as Tencent Cloud. The signature information can be viewed in the [SMS console](https://console.cloud.tencent.com/smsv2).
Note: this parameter is required for Mainland China SMS.public String[] getTemplateParamSet()
public void setTemplateParamSet(String[] TemplateParamSet)
TemplateParamSet
- Template parameter. If there is no template parameter, leave this parameter blank.public String getExtendCode()
public void setExtendCode(String ExtendCode)
ExtendCode
- SMS code number extension, which is not activated by default. If you need to activate it, please contact [SMS Helper](https://intl.cloud.tencent.com/document/product/382/3773?from_cn_redirect=1#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81).public String getSessionContext()
public void setSessionContext(String SessionContext)
SessionContext
- User session content, which can carry context information such as user-side ID and will be returned as-is by the server.public String getSenderId()
public void setSenderId(String SenderId)
SenderId
- This parameter is not required for Mainland China SMS. For Global SMS, if you have applied for a separate `SenderId`, this parameter is required. By default, the public `SenderId` is used, in which case you don't need to enter this parameter.
Note: if your monthly usage reaches the specified threshold, you can apply for an independent `SenderId`. For more information, please contact [SMS Helper](https://intl.cloud.tencent.com/document/product/382/3773?from_cn_redirect=1#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81).Copyright © 2021. All rights reserved.