public static final class SendBatchSmsRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
SendBatchSmsRequest |
build() |
SendBatchSmsRequest.Builder |
outId(String outId)
The extension field of the external record.
|
SendBatchSmsRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
SendBatchSmsRequest.Builder |
phoneNumberJson(String phoneNumberJson)
The mobile number of the recipient.
|
SendBatchSmsRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
SendBatchSmsRequest.Builder |
resourceOwnerId(Long resourceOwnerId)
ResourceOwnerId.
|
SendBatchSmsRequest.Builder |
signNameJson(String signNameJson)
The signature.
|
SendBatchSmsRequest.Builder |
smsUpExtendCodeJson(String smsUpExtendCodeJson)
The extension code of the MO message.
|
SendBatchSmsRequest.Builder |
templateCode(String templateCode)
The code of the message template.
|
SendBatchSmsRequest.Builder |
templateParamJson(String templateParamJson)
The value of the variable in the message template.
|
public SendBatchSmsRequest.Builder outId(String outId)
The extension field of the external record. The value is a string that contains no more than 256 characters.
example:The parameter is optional.
abcdefg
public SendBatchSmsRequest.Builder ownerId(Long ownerId)
public SendBatchSmsRequest.Builder phoneNumberJson(String phoneNumberJson)
The mobile number of the recipient. Format:
We recommend that you call the SendSms operation to send verification codes.
This parameter is required.
example:["1590000****","1350000****"]
public SendBatchSmsRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public SendBatchSmsRequest.Builder resourceOwnerId(Long resourceOwnerId)
public SendBatchSmsRequest.Builder signNameJson(String signNameJson)
The signature.
Log on to the Alibaba Cloud SMS console. In the left-side navigation pane, click Go Globe or Go China. You can view the signature in the Signature column on the Signatures tab.
The signatures must be approved and correspond to the mobile numbers in sequence.
This parameter is required.
example:["Aliyun","Alibaba"]
public SendBatchSmsRequest.Builder smsUpExtendCodeJson(String smsUpExtendCodeJson)
The extension code of the MO message. Format: JSON array.
example:The parameter is optional.
["90999","90998"]
public SendBatchSmsRequest.Builder templateCode(String templateCode)
The code of the 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.
The message templates must be created on the Go Globe page and approved.
This parameter is required.
example:SMS_15255****
public SendBatchSmsRequest.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 SendBatchSmsRequest build()
Copyright © 2026. All rights reserved.