public static final class CfnSmsTemplateProps.Builder
extends java.lang.Object
CfnSmsTemplateProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnSmsTemplateProps.Builder |
body(java.lang.String body)
Sets the value of
CfnSmsTemplateProps.getBody() |
CfnSmsTemplateProps |
build()
Builds the configured instance.
|
CfnSmsTemplateProps.Builder |
defaultSubstitutions(java.lang.String defaultSubstitutions)
Sets the value of
CfnSmsTemplateProps.getDefaultSubstitutions() |
CfnSmsTemplateProps.Builder |
tags(java.lang.Object tags)
Sets the value of
CfnSmsTemplateProps.getTags() |
CfnSmsTemplateProps.Builder |
templateDescription(java.lang.String templateDescription)
Sets the value of
CfnSmsTemplateProps.getTemplateDescription() |
CfnSmsTemplateProps.Builder |
templateName(java.lang.String templateName)
Sets the value of
CfnSmsTemplateProps.getTemplateName() |
public CfnSmsTemplateProps.Builder body(java.lang.String body)
CfnSmsTemplateProps.getBody()
body
- The message body to use in text messages that are based on the message template. This parameter is required.this
public CfnSmsTemplateProps.Builder templateName(java.lang.String templateName)
CfnSmsTemplateProps.getTemplateName()
templateName
- The name of the message template. This parameter is required.this
public CfnSmsTemplateProps.Builder defaultSubstitutions(java.lang.String defaultSubstitutions)
CfnSmsTemplateProps.getDefaultSubstitutions()
defaultSubstitutions
- A JSON object that specifies the default values to use for message variables in the message template.
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.this
public CfnSmsTemplateProps.Builder tags(java.lang.Object tags)
CfnSmsTemplateProps.getTags()
tags
- An array of key-value pairs to apply to this resource.
For more information, see Tag .this
public CfnSmsTemplateProps.Builder templateDescription(java.lang.String templateDescription)
CfnSmsTemplateProps.getTemplateDescription()
templateDescription
- A custom description of the message template.this
public CfnSmsTemplateProps build()
CfnSmsTemplateProps
java.lang.NullPointerException
- if any required attribute was not provided