public static final class CfnEmailTemplateProps.Builder
extends java.lang.Object
CfnEmailTemplateProps
Constructor and Description |
---|
Builder() |
public CfnEmailTemplateProps.Builder subject(java.lang.String subject)
CfnEmailTemplateProps.getSubject()
subject
- The subject line, or title, to use in email messages that are based on the message template. This parameter is required.this
public CfnEmailTemplateProps.Builder templateName(java.lang.String templateName)
CfnEmailTemplateProps.getTemplateName()
templateName
- The name of the message template. This parameter is required.this
public CfnEmailTemplateProps.Builder defaultSubstitutions(java.lang.String defaultSubstitutions)
CfnEmailTemplateProps.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 CfnEmailTemplateProps.Builder htmlPart(java.lang.String htmlPart)
CfnEmailTemplateProps.getHtmlPart()
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.this
public CfnEmailTemplateProps.Builder tags(java.lang.Object tags)
CfnEmailTemplateProps.getTags()
tags
- An array of key-value pairs to apply to this resource.
For more information, see Tag .this
public CfnEmailTemplateProps.Builder templateDescription(java.lang.String templateDescription)
CfnEmailTemplateProps.getTemplateDescription()
templateDescription
- A custom description of the message template.this
public CfnEmailTemplateProps.Builder textPart(java.lang.String textPart)
CfnEmailTemplateProps.getTextPart()
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.this
public CfnEmailTemplateProps build()
CfnEmailTemplateProps
java.lang.NullPointerException
- if any required attribute was not provided