public static final class ModifySmsTemplateRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
ModifySmsTemplateRequest |
build() |
ModifySmsTemplateRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
ModifySmsTemplateRequest.Builder |
remark(String remark)
The description of the message template.
|
ModifySmsTemplateRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
ModifySmsTemplateRequest.Builder |
resourceOwnerId(Long resourceOwnerId)
ResourceOwnerId.
|
ModifySmsTemplateRequest.Builder |
templateCode(String templateCode)
The code of the message template.
|
ModifySmsTemplateRequest.Builder |
templateContent(String templateContent)
The content of the template.
|
ModifySmsTemplateRequest.Builder |
templateName(String templateName)
The name of the template.
|
ModifySmsTemplateRequest.Builder |
templateType(Integer templateType)
The type of the message.
|
public ModifySmsTemplateRequest.Builder ownerId(Long ownerId)
public ModifySmsTemplateRequest.Builder remark(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:Modify the parameters of the template.
public ModifySmsTemplateRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public ModifySmsTemplateRequest.Builder resourceOwnerId(Long resourceOwnerId)
public ModifySmsTemplateRequest.Builder templateCode(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 can also call the AddSmsTemplate operation to obtain the template code.
This parameter is required.
example:SMS_15255****
public ModifySmsTemplateRequest.Builder templateContent(String templateContent)
The content of the template. The content must be 1 to 500 characters in length.
When you modify a template, design the template content based on the review comments.
This parameter is required.
example:You are applying for mobile registration. The verification code is: ${code}, valid for 5 minutes!
public ModifySmsTemplateRequest.Builder templateName(String templateName)
The name of the template. The name must be 1 to 30 characters in length.
This parameter is required.
example:aliyun verification code
public ModifySmsTemplateRequest.Builder templateType(Integer templateType)
The type of the message. Valid values:
This parameter is required.
example:1
public ModifySmsTemplateRequest build()
Copyright © 2026. All rights reserved.