public static final class SendBatchCardSmsRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
SendBatchCardSmsRequest |
build() |
SendBatchCardSmsRequest.Builder |
cardTemplateCode(String cardTemplateCode)
The code of the message template.
|
SendBatchCardSmsRequest.Builder |
cardTemplateParamJson(String cardTemplateParamJson)
The variables of the card message template.
|
SendBatchCardSmsRequest.Builder |
digitalTemplateCode(String digitalTemplateCode)
The code of the digital message template that applies when the card message is rolled back.
|
SendBatchCardSmsRequest.Builder |
digitalTemplateParamJson(String digitalTemplateParamJson)
The variables of the digital message template.
|
SendBatchCardSmsRequest.Builder |
fallbackType(String fallbackType)
The rollback type.
|
SendBatchCardSmsRequest.Builder |
outId(String outId)
The ID that is reserved for the caller of the operation.
|
SendBatchCardSmsRequest.Builder |
phoneNumberJson(String phoneNumberJson)
The mobile numbers of the recipients.
|
SendBatchCardSmsRequest.Builder |
signNameJson(String signNameJson)
The signature.
|
SendBatchCardSmsRequest.Builder |
smsTemplateCode(String smsTemplateCode)
The code of the text message template that applies when the card message is rolled back.
|
SendBatchCardSmsRequest.Builder |
smsTemplateParamJson(String smsTemplateParamJson)
The variables of the text message template.
|
SendBatchCardSmsRequest.Builder |
smsUpExtendCodeJson(String smsUpExtendCodeJson)
The extension code of the upstream message.
|
SendBatchCardSmsRequest.Builder |
templateCode(String templateCode)
The code of the message template.
|
SendBatchCardSmsRequest.Builder |
templateParamJson(String templateParamJson)
The value of the variable in the message template.
|
public SendBatchCardSmsRequest.Builder cardTemplateCode(String cardTemplateCode)
> Make sure that the message template has been approved.
public SendBatchCardSmsRequest.Builder cardTemplateParamJson(String cardTemplateParamJson)
public SendBatchCardSmsRequest.Builder digitalTemplateCode(String digitalTemplateCode)
> Make sure that the message template has been approved.
public SendBatchCardSmsRequest.Builder digitalTemplateParamJson(String digitalTemplateParamJson)
public SendBatchCardSmsRequest.Builder fallbackType(String fallbackType)
* **SMS**: text message * **DIGITALSMS**: digital message * **NONE**: none
public SendBatchCardSmsRequest.Builder outId(String outId)
public SendBatchCardSmsRequest.Builder phoneNumberJson(String phoneNumberJson)
public SendBatchCardSmsRequest.Builder signNameJson(String signNameJson)
> The signatures must be approved and correspond to the mobile numbers in sequence.
public SendBatchCardSmsRequest.Builder smsTemplateCode(String smsTemplateCode)
> Make sure that the message template has been approved.
public SendBatchCardSmsRequest.Builder smsTemplateParamJson(String smsTemplateParamJson)
public SendBatchCardSmsRequest.Builder smsUpExtendCodeJson(String smsUpExtendCodeJson)
public SendBatchCardSmsRequest.Builder templateCode(String templateCode)
You can log on to the [Alibaba Cloud console](https://dysms.console.aliyun.com/dysms.htm?spm=5176.12818093.categories-n-products.ddysms.3b2816d0xml2NA#/overview), click **Go China** or **Go Globe** in the left-side navigation pane, and then view the **template code** on the **Templates** tab. > You must specify a message template that is created in the SMS console and approved by Alibaba Cloud. If you send messages to countries or regions outside the Chinese mainland, use the corresponding message templates.
public SendBatchCardSmsRequest.Builder templateParamJson(String templateParamJson)
> If you need to add line breaks to the JSON template, make sure that the format is valid. In addition, the sequence of variable values must be the same as that of the mobile numbers and signatures.
public SendBatchCardSmsRequest build()
Copyright © 2024. All rights reserved.