public static final class SendCardSmsRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
SendCardSmsRequest |
build() |
SendCardSmsRequest.Builder |
cardObjects(List<SendCardSmsRequest.CardObjects> cardObjects)
The objects of the message template.
|
SendCardSmsRequest.Builder |
cardTemplateCode(String cardTemplateCode)
The code of the message template.
|
SendCardSmsRequest.Builder |
digitalTemplateCode(String digitalTemplateCode)
The code of the digital message template that applies when the card message is rolled back.
|
SendCardSmsRequest.Builder |
digitalTemplateParam(String digitalTemplateParam)
The variables of the digital message template.
|
SendCardSmsRequest.Builder |
fallbackType(String fallbackType)
The rollback type.
|
SendCardSmsRequest.Builder |
outId(String outId)
The ID that is reserved for the caller of the operation.
|
SendCardSmsRequest.Builder |
signName(String signName)
The signature.
|
SendCardSmsRequest.Builder |
smsTemplateCode(String smsTemplateCode)
The code of the text message template that applies when the card message is rolled back.
|
SendCardSmsRequest.Builder |
smsTemplateParam(String smsTemplateParam)
The variables of the text message template.
|
SendCardSmsRequest.Builder |
smsUpExtendCode(String smsUpExtendCode)
The extension code of the upstream message.
|
SendCardSmsRequest.Builder |
templateCode(String templateCode)
The code of the text message template.
|
SendCardSmsRequest.Builder |
templateParam(String templateParam)
The variables of the message template.
|
public SendCardSmsRequest.Builder cardObjects(List<SendCardSmsRequest.CardObjects> cardObjects)
The objects of the message template.
This parameter is required.
public SendCardSmsRequest.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_70
public SendCardSmsRequest.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.
SMS_003
public SendCardSmsRequest.Builder digitalTemplateParam(String digitalTemplateParam)
The variables of the digital message template.
example:If you need to add line breaks to the JSON template, make sure that the format is valid.
{"msg","xxxd"}
public SendCardSmsRequest.Builder fallbackType(String fallbackType)
The rollback type. Valid values:
This parameter is required.
example:SMS
public SendCardSmsRequest.Builder outId(String outId)
The ID that is reserved for the caller of the operation.
example:38d76c9b-4a9a-4c89-afae-61fd8e0e****
public SendCardSmsRequest.Builder signName(String signName)
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 signature must be approved.
This parameter is required.
example:aliyun
public SendCardSmsRequest.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. If you set the FallbackType parameter to SMS, this parameter is required.
SIER_TEST_01
public SendCardSmsRequest.Builder smsTemplateParam(String smsTemplateParam)
The variables of the text message template.
example:If you need to add line breaks to the JSON template, make sure that the format is valid.
{"uri":"Zg11tZ"}
public SendCardSmsRequest.Builder smsUpExtendCode(String smsUpExtendCode)
The extension code of the upstream message. Upstream messages are messages sent to the communication service provider. Upstream messages are used to customize a service, complete an inquiry, or send a request. You are charged for sending upstream messages based on the billing standards of the service provider.
example:If you do not need upstream messages, ignore this parameter.
1
public SendCardSmsRequest.Builder templateCode(String templateCode)
The code of the text message template.
Log on to the Alibaba Cloud SMS console. In the left-side navigation pane, click Go Globe or Go China. You can view the message template in the Template Code column on the Message Templates tab.
example:The message templates must be created on the Go Globe page and approved.
SMS_2322****
public SendCardSmsRequest.Builder templateParam(String templateParam)
The variables of the message template. Format: JSON.
example:If you need to add line breaks to the JSON template, make sure that the format is valid.
{ "code": "1111" }
public SendCardSmsRequest build()
Copyright © 2026. All rights reserved.