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)
The code of the message template. You can view the template code in the Template Code column on the Templates tab of the Go China page in the Alibaba Cloud SMS console.
Make sure that the message template has been approved.
This parameter is required.
example:CARD_SMS_3245
public SendBatchCardSmsRequest.Builder cardTemplateParamJson(String cardTemplateParamJson)
The variables of the card message template.
example:[{"customurl":"http://www.alibaba.com\",\"dyncParams\":\"{\\\"a\\\":\\\"hello\\\",\\\"b\\\":\\\"world\\\"}\"}]
public SendBatchCardSmsRequest.Builder digitalTemplateCode(String digitalTemplateCode)
The code of the digital message template that applies when the card message is rolled back. You can view the template code in the Template Code column on the Templates tab of the Go China page in the Alibaba Cloud SMS console.
example:Make sure that the message template has been approved.
DIGITAL_SMS_234080176
public SendBatchCardSmsRequest.Builder digitalTemplateParamJson(String digitalTemplateParamJson)
The variables of the digital message template.
example:[{"a":1,"b":2},{"a":9,"b":8}]
public SendBatchCardSmsRequest.Builder fallbackType(String fallbackType)
The rollback type. Valid values:
This parameter is required.
example:SMS
public SendBatchCardSmsRequest.Builder outId(String outId)
The ID that is reserved for the caller of the operation.
example:16545681783595370
public SendBatchCardSmsRequest.Builder phoneNumberJson(String phoneNumberJson)
The mobile numbers of the recipients.
This parameter is required.
example:["1390000****","1370000****"]"
public SendBatchCardSmsRequest.Builder signNameJson(String signNameJson)
The signature. You can view the template code in the Signature column on the Signaturess tab of the Go China page in the Alibaba Cloud SMS console.
The signatures must be approved and correspond to the mobile numbers in sequence.
This parameter is required.
example:["aliyun","aliyuncode"]
public SendBatchCardSmsRequest.Builder smsTemplateCode(String smsTemplateCode)
The code of the text message template that applies when the card message is rolled back. You can view the template code in the Template Code column on the Templates tab of the Go China page in the Alibaba Cloud SMS console.
example:Make sure that the message template has been approved.
SMS_234251075
public SendBatchCardSmsRequest.Builder smsTemplateParamJson(String smsTemplateParamJson)
The variables of the text message template.
example:[{"a":1,"b":2},{"a":9,"b":8}]
public SendBatchCardSmsRequest.Builder smsUpExtendCodeJson(String smsUpExtendCodeJson)
The extension code of the upstream message.
example:["6","6"]
public SendBatchCardSmsRequest.Builder templateCode(String templateCode)
The code of the message template.
You can log on to the Alibaba Cloud console, click Go China or Go Globe in the left-side navigation pane, and then view the template code on the Templates tab.
example: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.
SMS_20375****
public SendBatchCardSmsRequest.Builder templateParamJson(String templateParamJson)
The value of the variable in the message template.
example: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.
[{"name":"TemplateParamJson"},{"name":"TemplateParamJson"}]
public SendBatchCardSmsRequest build()
Copyright © 2026. All rights reserved.