Class CfnSmsTemplateProps.Builder
java.lang.Object
software.amazon.awscdk.services.pinpoint.CfnSmsTemplateProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSmsTemplateProps>
- Enclosing interface:
CfnSmsTemplateProps
@Stability(Stable)
public static final class CfnSmsTemplateProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSmsTemplateProps>
A builder for
CfnSmsTemplateProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnSmsTemplateProps.getBody()
build()
Builds the configured instance.defaultSubstitutions
(String defaultSubstitutions) Sets the value ofCfnSmsTemplateProps.getDefaultSubstitutions()
Sets the value ofCfnSmsTemplateProps.getTags()
templateDescription
(String templateDescription) Sets the value ofCfnSmsTemplateProps.getTemplateDescription()
templateName
(String templateName) Sets the value ofCfnSmsTemplateProps.getTemplateName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
body
Sets the value ofCfnSmsTemplateProps.getBody()
- Parameters:
body
- The message body to use in text messages that are based on the message template. This parameter is required.- Returns:
this
-
templateName
Sets the value ofCfnSmsTemplateProps.getTemplateName()
- Parameters:
templateName
- The name of the message template. This parameter is required.- Returns:
this
-
defaultSubstitutions
@Stability(Stable) public CfnSmsTemplateProps.Builder defaultSubstitutions(String defaultSubstitutions) Sets the value ofCfnSmsTemplateProps.getDefaultSubstitutions()
- Parameters:
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.- Returns:
this
-
tags
Sets the value ofCfnSmsTemplateProps.getTags()
- Parameters:
tags
- An array of key-value pairs to apply to this resource. For more information, see Tag .- Returns:
this
-
templateDescription
@Stability(Stable) public CfnSmsTemplateProps.Builder templateDescription(String templateDescription) Sets the value ofCfnSmsTemplateProps.getTemplateDescription()
- Parameters:
templateDescription
- A custom description of the message template.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnSmsTemplateProps>
- Returns:
- a new instance of
CfnSmsTemplateProps
- Throws:
NullPointerException
- if any required attribute was not provided
-