public static final class CreateSmsTemplateRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
CreateSmsTemplateRequest.Builder |
applySceneContent(String applySceneContent)
If there is an applicable scenario, you can fill it in.
|
CreateSmsTemplateRequest |
build() |
CreateSmsTemplateRequest.Builder |
intlType(Integer intlType)
International/Hong Kong, Macao, and Taiwan template type.
|
CreateSmsTemplateRequest.Builder |
moreData(List<String> moreData)
Additional materials you can upload, such as business proof documents or screenshots, to help reviewers understand your business details.
|
CreateSmsTemplateRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
CreateSmsTemplateRequest.Builder |
relatedSignName(String relatedSignName)
The signature name that the template needs to be associated with.
|
CreateSmsTemplateRequest.Builder |
remark(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.
|
CreateSmsTemplateRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
CreateSmsTemplateRequest.Builder |
resourceOwnerId(Long resourceOwnerId)
ResourceOwnerId.
|
CreateSmsTemplateRequest.Builder |
templateContent(String templateContent)
Template content, up to 500 characters in length.
|
CreateSmsTemplateRequest.Builder |
templateName(String templateName)
Template name, up to 30 characters in length.
|
CreateSmsTemplateRequest.Builder |
templateRule(String templateRule)
Template variable rules.
|
CreateSmsTemplateRequest.Builder |
templateType(Integer templateType)
SMS type.
|
CreateSmsTemplateRequest.Builder |
trafficDriving(String trafficDriving)
TrafficDriving.
|
public CreateSmsTemplateRequest.Builder applySceneContent(String applySceneContent)
If there is an applicable scenario, you can fill it in.
example:public CreateSmsTemplateRequest.Builder intlType(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
public CreateSmsTemplateRequest.Builder moreData(List<String> moreData)
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.
public CreateSmsTemplateRequest.Builder ownerId(Long ownerId)
public CreateSmsTemplateRequest.Builder relatedSignName(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
public CreateSmsTemplateRequest.Builder remark(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.
public CreateSmsTemplateRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public CreateSmsTemplateRequest.Builder resourceOwnerId(Long resourceOwnerId)
public CreateSmsTemplateRequest.Builder templateContent(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!
public CreateSmsTemplateRequest.Builder templateName(String templateName)
Template name, up to 30 characters in length.
This parameter is required.
example:aliyunCode
public CreateSmsTemplateRequest.Builder templateRule(String templateRule)
Template variable rules.
For filling in variable rules, refer to the Sample Documentation.
example:{"code":"characterWithNumber"}
public CreateSmsTemplateRequest.Builder templateType(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 CreateSmsTemplateRequest.Builder trafficDriving(String trafficDriving)
public CreateSmsTemplateRequest build()
Copyright © 2026. All rights reserved.