TemplateProps
Properties for defining a Template
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-paiplugin-template
Initializer
import com.aliyun.ros.cdk.paiplugin.TemplateProps;
TemplateProps.builder()
.content(java.lang.String)
.content(IResolvable)
.description(java.lang.String)
.description(IResolvable)
.name(java.lang.String)
.name(IResolvable)
.type(java.lang.Number)
.type(IResolvable)
// .signature(java.lang.String)
// .signature(IResolvable)
// .signatureId(java.lang.String)
// .signatureId(IResolvable)
.build();
Properties
Name | Type | Description |
---|---|---|
content |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property content: The content of the template. |
description |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property description: For the template content, please keep the total word count within 70 words. |
name |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property name: The name of the template. |
type |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property type: The type of the template. |
signature |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property signature: The name of the Signature, You must select either Signature or SignatureId, but not both. |
signatureId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property signatureId: The ID of the Signature, You must select either Signature or SignatureId, but not both. |
content
Required
public java.lang.Object getContent();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property content: The content of the template.
description
Required
public java.lang.Object getDescription();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property description: For the template content, please keep the total word count within 70 words.
The excess will be charged as long text messages. Each text message is recorded as 67 words.
name
Required
public java.lang.Object getName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property name: The name of the template.
type
Required
public java.lang.Object getType();
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property type: The type of the template.
The following values are supported: 0: Verification code. 1: SMS notification. 2: Promotional SMS.
signature
Optional
public java.lang.Object getSignature();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property signature: The name of the Signature, You must select either Signature or SignatureId, but not both.
signatureId
Optional
public java.lang.Object getSignatureId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property signatureId: The ID of the Signature, You must select either Signature or SignatureId, but not both.