public class AddSmsTemplateRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
Long |
ownerId |
String |
remark
The description of the message template.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
String |
templateContent
The content of the template.
|
String |
templateName
The name of the template.
|
Integer |
templateType
The type of the message.
|
| 构造器和说明 |
|---|
AddSmsTemplateRequest() |
| 限定符和类型 | 方法和说明 |
|---|---|
static AddSmsTemplateRequest |
build(Map<String,?> map) |
Long |
getOwnerId() |
String |
getRemark() |
String |
getResourceOwnerAccount() |
Long |
getResourceOwnerId() |
String |
getTemplateContent() |
String |
getTemplateName() |
Integer |
getTemplateType() |
AddSmsTemplateRequest |
setOwnerId(Long ownerId) |
AddSmsTemplateRequest |
setRemark(String remark) |
AddSmsTemplateRequest |
setResourceOwnerAccount(String resourceOwnerAccount) |
AddSmsTemplateRequest |
setResourceOwnerId(Long resourceOwnerId) |
AddSmsTemplateRequest |
setTemplateContent(String templateContent) |
AddSmsTemplateRequest |
setTemplateName(String templateName) |
AddSmsTemplateRequest |
setTemplateType(Integer templateType) |
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="Remark") public String remark
The description of the message template. It is one of the reference information for template review. The description cannot exceed 100 characters in length.
This parameter is required.
example:Apply for a template to send verification codes.
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
@NameInMap(value="TemplateContent") public String templateContent
The content of the template. The content can be up to 500 characters in length. For more information, see Message template specifications.
This parameter is required.
example:You are applying for mobile registration. The verification code is: ${code}, valid for 5 minutes!
@NameInMap(value="TemplateName") public String templateName
The name of the template. The name can be up to 30 characters in length.
This parameter is required.
example:Aliyun Test
@NameInMap(value="TemplateType") public Integer templateType
The type of the message. Valid values:
Only enterprise users can send promotional messages, or send messages to countries or regions outside the Chinese mainland.
This parameter is required.
example:1
public static AddSmsTemplateRequest build(Map<String,?> map) throws Exception
Exceptionpublic AddSmsTemplateRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public AddSmsTemplateRequest setRemark(String remark)
public String getRemark()
public AddSmsTemplateRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public AddSmsTemplateRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
public AddSmsTemplateRequest setTemplateContent(String templateContent)
public String getTemplateContent()
public AddSmsTemplateRequest setTemplateName(String templateName)
public String getTemplateName()
public AddSmsTemplateRequest setTemplateType(Integer templateType)
public Integer getTemplateType()
Copyright © 2024. All rights reserved.