public static final class SendSmsRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
SendSmsRequest |
build() |
SendSmsRequest.Builder |
outId(String outId)
The extension field.
|
SendSmsRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
SendSmsRequest.Builder |
phoneNumbers(String phoneNumbers)
The mobile numbers of the recipients.
|
SendSmsRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
SendSmsRequest.Builder |
resourceOwnerId(Long resourceOwnerId)
ResourceOwnerId.
|
SendSmsRequest.Builder |
signName(String signName)
The signature.
|
SendSmsRequest.Builder |
smsUpExtendCode(String smsUpExtendCode)
The extension code of the upstream message.
|
SendSmsRequest.Builder |
templateCode(String templateCode)
The code of the message template.
|
SendSmsRequest.Builder |
templateParam(String templateParam)
The value of the variable in the message template.
|
public SendSmsRequest.Builder outId(String outId)
> You can ignore this parameter if you do not have special requirements.
public SendSmsRequest.Builder ownerId(Long ownerId)
public SendSmsRequest.Builder phoneNumbers(String phoneNumbers)
* If you send messages to the Chinese mainland, specify mobile numbers that are prefixed with +, +86, 0086, or 86, or 11-digit mobile numbers without prefixes. Example: 1390000\*\*\*\*.
* If you send messages to countries or regions outside the Chinese mainland, specify this parameter in the \\
public SendSmsRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public SendSmsRequest.Builder resourceOwnerId(Long resourceOwnerId)
public SendSmsRequest.Builder signName(String signName)
You can log on to the [Short Message Service (SMS) 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 signature on the **Signatures** tab. > You must specify a signature that is created in the SMS console and approved by Alibaba Cloud. For more information about SMS signature specifications, see [SMS signature specifications](~~108076~~).
public SendSmsRequest.Builder smsUpExtendCode(String smsUpExtendCode)
> The extension code is automatically generated by the system when the signature is generated. You do not need to specify the extension code. You can ignore this parameter if you do not have special requirements.
public SendSmsRequest.Builder templateCode(String templateCode)
You can log on to the [Short Message Service (SMS) 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 SendSmsRequest.Builder templateParam(String templateParam)
> * If line breaks are required in JSON-formatted data, they must meet the relevant requirements that are specified in the standard JSON protocol. * For more information about template variables, see [SMS template specifications](~~108253~~).
public SendSmsRequest build()
Copyright © 2024. All rights reserved.