Class CfnEmailTemplateMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.pinpoint.CfnEmailTemplateMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEmailTemplateMixinProps>
- Enclosing interface:
CfnEmailTemplateMixinProps
@Stability(Stable)
public static final class CfnEmailTemplateMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEmailTemplateMixinProps>
A builder for
CfnEmailTemplateMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.defaultSubstitutions(String defaultSubstitutions) Sets the value ofCfnEmailTemplateMixinProps.getDefaultSubstitutions()Sets the value ofCfnEmailTemplateMixinProps.getHtmlPart()Sets the value ofCfnEmailTemplateMixinProps.getSubject()Sets the value ofCfnEmailTemplateMixinProps.getTags()templateDescription(String templateDescription) Sets the value ofCfnEmailTemplateMixinProps.getTemplateDescription()templateName(String templateName) Sets the value ofCfnEmailTemplateMixinProps.getTemplateName()Sets the value ofCfnEmailTemplateMixinProps.getTextPart()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
defaultSubstitutions
@Stability(Stable) public CfnEmailTemplateMixinProps.Builder defaultSubstitutions(String defaultSubstitutions) Sets the value ofCfnEmailTemplateMixinProps.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
-
htmlPart
Sets the value ofCfnEmailTemplateMixinProps.getHtmlPart()- Parameters:
htmlPart- The message body, in HTML format, to use in email messages that are based on the message template. We recommend using HTML format for email clients that render HTML content. You can include links, formatted text, and more in an HTML message.- Returns:
this
-
subject
Sets the value ofCfnEmailTemplateMixinProps.getSubject()- Parameters:
subject- The subject line, or title, to use in email messages that are based on the message template.- Returns:
this
-
tags
Sets the value ofCfnEmailTemplateMixinProps.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 CfnEmailTemplateMixinProps.Builder templateDescription(String templateDescription) Sets the value ofCfnEmailTemplateMixinProps.getTemplateDescription()- Parameters:
templateDescription- A custom description of the message template.- Returns:
this
-
templateName
Sets the value ofCfnEmailTemplateMixinProps.getTemplateName()- Parameters:
templateName- The name of the message template.- Returns:
this
-
textPart
Sets the value ofCfnEmailTemplateMixinProps.getTextPart()- Parameters:
textPart- The message body, in plain text format, to use in email messages that are based on the message template. We recommend using plain text format for email clients that don't render HTML content and clients that are connected to high-latency networks, such as mobile devices.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEmailTemplateMixinProps>- Returns:
- a new instance of
CfnEmailTemplateMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-