public class CreateSmsTemplateShrinkRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
applySceneContent
If there is an applicable scenario, you can fill it in.
|
Integer |
intlType
International/Hong Kong, Macao, and Taiwan template type.
|
String |
moreDataShrink
Additional materials you can upload, such as business proof documents or screenshots, to help reviewers understand your business details.
|
Long |
ownerId |
String |
relatedSignName
The signature name that the template needs to be associated with.
|
String |
remark
Please describe the business scenario where you use SMS or provide an online link to the scenario, along with a complete example of the SMS (with variable contents filled), as complete information helps increase the template approval rate.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
String |
templateContent
Template content, up to 500 characters in length.
|
String |
templateName
Template name, up to 30 characters in length.
|
String |
templateRule
Template variable rules.
|
Integer |
templateType
SMS type.
|
| 构造器和说明 |
|---|
CreateSmsTemplateShrinkRequest() |
@NameInMap(value="ApplySceneContent") public String applySceneContent
If there is an applicable scenario, you can fill it in.
example:@NameInMap(value="IntlType") public Integer intlType
International/Hong Kong, Macao, and Taiwan template type. When the TemplateType parameter is 3, this parameter is required for international/Hong Kong, Macao, and Taiwan templates, with values:
0
@NameInMap(value="MoreData") public String moreDataShrink
Additional materials you can upload, such as business proof documents or screenshots, to help reviewers understand your business details.
This parameter is optional; please fill it in according to actual needs.
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="RelatedSignName") public String relatedSignName
The signature name that the template needs to be associated with. The associated SMS signature must have passed the review.
This parameter is mandatory when the TemplateType parameter is 0, 1, or 2.
Aliyun
@NameInMap(value="Remark") public String remark
Please describe the business scenario where you use SMS or provide an online link to the scenario, along with a complete example of the SMS (with variable contents filled), as complete information helps increase the template approval rate. Failure to follow guidelines or leaving this field blank may affect the approval of your template.
example:Request verification code SMS.
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
@NameInMap(value="TemplateContent") public String templateContent
Template content, up to 500 characters in length.
Both the template content and variable content must comply with SMS specifications; otherwise, the template will fail the review. You can also view common template examples on the template application page. Using sample templates can enhance review efficiency and success rates. For variable specifications, see TemplateContent Variable Parameter Filling Specifications.
This parameter is required.
example:You are applying for mobile registration. The verification code is: ${code}. It is valid for 5 minutes!
@NameInMap(value="TemplateName") public String templateName
Template name, up to 30 characters in length.
This parameter is required.
example:aliyunCode
@NameInMap(value="TemplateRule") public String templateRule
Template variable rules.
For filling in variable rules, refer to the Sample Documentation.
example:{"code":"characterWithNumber"}
@NameInMap(value="TemplateType") public Integer templateType
SMS type. Values:
Only enterprise-verified users can apply for promotional messages and international/Hong Kong, Macao, and Taiwan messages. For details on the differences between personal and enterprise user rights, please refer to Usage Instructions.
This parameter is required.
example:0
public static CreateSmsTemplateShrinkRequest build(Map<String,?> map) throws Exception
Exceptionpublic CreateSmsTemplateShrinkRequest setApplySceneContent(String applySceneContent)
public String getApplySceneContent()
public CreateSmsTemplateShrinkRequest setIntlType(Integer intlType)
public Integer getIntlType()
public CreateSmsTemplateShrinkRequest setMoreDataShrink(String moreDataShrink)
public String getMoreDataShrink()
public CreateSmsTemplateShrinkRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public CreateSmsTemplateShrinkRequest setRelatedSignName(String relatedSignName)
public String getRelatedSignName()
public CreateSmsTemplateShrinkRequest setRemark(String remark)
public String getRemark()
public CreateSmsTemplateShrinkRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public CreateSmsTemplateShrinkRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
public CreateSmsTemplateShrinkRequest setTemplateContent(String templateContent)
public String getTemplateContent()
public CreateSmsTemplateShrinkRequest setTemplateName(String templateName)
public String getTemplateName()
public CreateSmsTemplateShrinkRequest setTemplateRule(String templateRule)
public String getTemplateRule()
public CreateSmsTemplateShrinkRequest setTemplateType(Integer templateType)
public Integer getTemplateType()
Copyright © 2024. All rights reserved.