public class SendBatchCardSmsRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
cardTemplateCode
The code of the message template.
|
String |
cardTemplateParamJson
The variables of the card message template.
|
String |
digitalTemplateCode
The code of the digital message template that applies when the card message is rolled back.
|
String |
digitalTemplateParamJson
The variables of the digital message template.
|
String |
fallbackType
The rollback type.
|
String |
outId
The ID that is reserved for the caller of the operation.
|
String |
phoneNumberJson
The mobile numbers of the recipients.
|
String |
signNameJson
The signature.
|
String |
smsTemplateCode
The code of the text message template that applies when the card message is rolled back.
|
String |
smsTemplateParamJson
The variables of the text message template.
|
String |
smsUpExtendCodeJson
The extension code of the upstream message.
|
String |
templateCode
The code of the message template.
|
String |
templateParamJson
The value of the variable in the message template.
|
| 构造器和说明 |
|---|
SendBatchCardSmsRequest() |
@NameInMap(value="CardTemplateCode") public 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
@NameInMap(value="CardTemplateParamJson") public String cardTemplateParamJson
The variables of the card message template.
example:[{\"customurl\":\"http://www.alibaba.com\\",\\"dyncParams\\":\\"{\\\\\\"a\\\\\\":\\\\\\"hello\\\\\\",\\\\\\"b\\\\\\":\\\\\\"world\\\\\\"}\\"}]
@NameInMap(value="DigitalTemplateCode") public 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
@NameInMap(value="DigitalTemplateParamJson") public String digitalTemplateParamJson
The variables of the digital message template.
example:[{"a":1,"b":2},{"a":9,"b":8}]
@NameInMap(value="FallbackType") public String fallbackType
The rollback type. Valid values:
This parameter is required.
example:SMS
@NameInMap(value="OutId") public String outId
The ID that is reserved for the caller of the operation.
example:16545681783595370
@NameInMap(value="PhoneNumberJson") public String phoneNumberJson
The mobile numbers of the recipients.
This parameter is required.
example:[\"1390000****\",\"1370000****\"]"
@NameInMap(value="SignNameJson") public 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\"]
@NameInMap(value="SmsTemplateCode") public 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
@NameInMap(value="SmsTemplateParamJson") public String smsTemplateParamJson
The variables of the text message template.
example:[{"a":1,"b":2},{"a":9,"b":8}]
@NameInMap(value="SmsUpExtendCodeJson") public String smsUpExtendCodeJson
The extension code of the upstream message.
example:[\"6\",\"6\"]
@NameInMap(value="TemplateCode") public 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****
@NameInMap(value="TemplateParamJson") public 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 static SendBatchCardSmsRequest build(Map<String,?> map) throws Exception
Exceptionpublic SendBatchCardSmsRequest setCardTemplateCode(String cardTemplateCode)
public String getCardTemplateCode()
public SendBatchCardSmsRequest setCardTemplateParamJson(String cardTemplateParamJson)
public String getCardTemplateParamJson()
public SendBatchCardSmsRequest setDigitalTemplateCode(String digitalTemplateCode)
public String getDigitalTemplateCode()
public SendBatchCardSmsRequest setDigitalTemplateParamJson(String digitalTemplateParamJson)
public String getDigitalTemplateParamJson()
public SendBatchCardSmsRequest setFallbackType(String fallbackType)
public String getFallbackType()
public SendBatchCardSmsRequest setOutId(String outId)
public String getOutId()
public SendBatchCardSmsRequest setPhoneNumberJson(String phoneNumberJson)
public String getPhoneNumberJson()
public SendBatchCardSmsRequest setSignNameJson(String signNameJson)
public String getSignNameJson()
public SendBatchCardSmsRequest setSmsTemplateCode(String smsTemplateCode)
public String getSmsTemplateCode()
public SendBatchCardSmsRequest setSmsTemplateParamJson(String smsTemplateParamJson)
public String getSmsTemplateParamJson()
public SendBatchCardSmsRequest setSmsUpExtendCodeJson(String smsUpExtendCodeJson)
public String getSmsUpExtendCodeJson()
public SendBatchCardSmsRequest setTemplateCode(String templateCode)
public String getTemplateCode()
public SendBatchCardSmsRequest setTemplateParamJson(String templateParamJson)
public String getTemplateParamJson()
Copyright © 2024. All rights reserved.