public class SendSmsRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
outId
The extension field.
|
Long |
ownerId |
String |
phoneNumbers
The mobile numbers of the recipients.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
String |
signName
The signature.
|
String |
smsUpExtendCode
The extension code of the upstream message.
|
String |
templateCode
The code of the message template.
|
String |
templateParam
The value of the variable in the message template.
|
| 构造器和说明 |
|---|
SendSmsRequest() |
| 限定符和类型 | 方法和说明 |
|---|---|
static SendSmsRequest |
build(Map<String,?> map) |
String |
getOutId() |
Long |
getOwnerId() |
String |
getPhoneNumbers() |
String |
getResourceOwnerAccount() |
Long |
getResourceOwnerId() |
String |
getSignName() |
String |
getSmsUpExtendCode() |
String |
getTemplateCode() |
String |
getTemplateParam() |
SendSmsRequest |
setOutId(String outId) |
SendSmsRequest |
setOwnerId(Long ownerId) |
SendSmsRequest |
setPhoneNumbers(String phoneNumbers) |
SendSmsRequest |
setResourceOwnerAccount(String resourceOwnerAccount) |
SendSmsRequest |
setResourceOwnerId(Long resourceOwnerId) |
SendSmsRequest |
setSignName(String signName) |
SendSmsRequest |
setSmsUpExtendCode(String smsUpExtendCode) |
SendSmsRequest |
setTemplateCode(String templateCode) |
SendSmsRequest |
setTemplateParam(String templateParam) |
@NameInMap(value="OutId") public String outId
The extension field.
example:You can ignore this parameter if you do not have special requirements.
abcdefgh
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="PhoneNumbers") public String phoneNumbers
The mobile numbers of the recipients. Format:
You can send messages to multiple mobile numbers, separate the mobile numbers with commas (,). You can specify up to 1,000 mobile numbers in each request. Compared with sending messages to a single mobile number, sending messages to multiple mobile numbers requires longer response time.
We recommend that you send one verification code message to a mobile number in each request.
This parameter is required.
example:1390000****
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
@NameInMap(value="SignName") public String signName
The signature.
You can log on to the Short Message Service (SMS) console, 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.
This parameter is required.
example:Aliyun
@NameInMap(value="SmsUpExtendCode") public 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: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.
90999
@NameInMap(value="TemplateCode") public String templateCode
The code of the message template.
You can log on to the Short Message Service (SMS) console, 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.
This parameter is required.
example:SMS_15305****
@NameInMap(value="TemplateParam") public String templateParam
The value of the variable in the message template. You can specify multiple parameter values. Example:{"name":"Sam","number":"1390000\\\\"}.
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.
{"code":"1111"}
public static SendSmsRequest build(Map<String,?> map) throws Exception
Exceptionpublic SendSmsRequest setOutId(String outId)
public String getOutId()
public SendSmsRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public SendSmsRequest setPhoneNumbers(String phoneNumbers)
public String getPhoneNumbers()
public SendSmsRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public SendSmsRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
public SendSmsRequest setSignName(String signName)
public String getSignName()
public SendSmsRequest setSmsUpExtendCode(String smsUpExtendCode)
public String getSmsUpExtendCode()
public SendSmsRequest setTemplateCode(String templateCode)
public String getTemplateCode()
public SendSmsRequest setTemplateParam(String templateParam)
public String getTemplateParam()
Copyright © 2024. All rights reserved.