public static final class CfnSmsTemplate.Builder
extends java.lang.Object
CfnSmsTemplate
.Modifier and Type | Method and Description |
---|---|
CfnSmsTemplate.Builder |
body(java.lang.String body)
The message body to use in text messages that are based on the message template.
|
CfnSmsTemplate |
build() |
static CfnSmsTemplate.Builder |
create(Construct scope,
java.lang.String id) |
CfnSmsTemplate.Builder |
defaultSubstitutions(java.lang.String defaultSubstitutions)
A JSON object that specifies the default values to use for message variables in the message template.
|
CfnSmsTemplate.Builder |
tags(java.lang.Object tags)
An array of key-value pairs to apply to this resource.
|
CfnSmsTemplate.Builder |
templateDescription(java.lang.String templateDescription)
A custom description of the message template.
|
CfnSmsTemplate.Builder |
templateName(java.lang.String templateName)
The name of the message template.
|
public static CfnSmsTemplate.Builder create(Construct scope, java.lang.String id)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.CfnSmsTemplate.Builder
.public CfnSmsTemplate.Builder body(java.lang.String body)
body
- The message body to use in text messages that are based on the message template. This parameter is required.this
public CfnSmsTemplate.Builder templateName(java.lang.String templateName)
templateName
- The name of the message template. This parameter is required.this
public CfnSmsTemplate.Builder defaultSubstitutions(java.lang.String defaultSubstitutions)
This object is a set of key-value pairs. Each key defines a message variable in the template. The corresponding value defines the default value for that variable. When you create a message that's based on the template, you can override these defaults with message-specific and address-specific variables and values.
defaultSubstitutions
- A JSON object that specifies the default values to use for message variables in the message template. This parameter is required.this
public CfnSmsTemplate.Builder tags(java.lang.Object tags)
For more information, see Tag .
tags
- An array of key-value pairs to apply to this resource. This parameter is required.this
public CfnSmsTemplate.Builder templateDescription(java.lang.String templateDescription)
templateDescription
- A custom description of the message template. This parameter is required.this
public CfnSmsTemplate build()