public static final class CfnEmailTemplate.Builder
extends java.lang.Object
CfnEmailTemplate
.Modifier and Type | Method and Description |
---|---|
CfnEmailTemplate |
build() |
static CfnEmailTemplate.Builder |
create(Construct scope,
java.lang.String id) |
CfnEmailTemplate.Builder |
defaultSubstitutions(java.lang.String defaultSubstitutions)
A JSON object that specifies the default values to use for message variables in the message template.
|
CfnEmailTemplate.Builder |
htmlPart(java.lang.String htmlPart)
The message body, in HTML format, to use in email messages that are based on the message template.
|
CfnEmailTemplate.Builder |
subject(java.lang.String subject)
The subject line, or title, to use in email messages that are based on the message template.
|
CfnEmailTemplate.Builder |
tags(java.lang.Object tags)
An array of key-value pairs to apply to this resource.
|
CfnEmailTemplate.Builder |
templateDescription(java.lang.String templateDescription)
A custom description of the message template.
|
CfnEmailTemplate.Builder |
templateName(java.lang.String templateName)
The name of the message template.
|
CfnEmailTemplate.Builder |
textPart(java.lang.String textPart)
The message body, in plain text format, to use in email messages that are based on the message template.
|
public static CfnEmailTemplate.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.CfnEmailTemplate.Builder
.public CfnEmailTemplate.Builder subject(java.lang.String subject)
subject
- The subject line, or title, to use in email messages that are based on the message template. This parameter is required.this
public CfnEmailTemplate.Builder templateName(java.lang.String templateName)
templateName
- The name of the message template. This parameter is required.this
public CfnEmailTemplate.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 CfnEmailTemplate.Builder htmlPart(java.lang.String htmlPart)
We recommend using HTML format for email clients that render HTML content. You can include links, formatted text, and more in an HTML message.
htmlPart
- The message body, in HTML format, to use in email messages that are based on the message template. This parameter is required.this
public CfnEmailTemplate.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 CfnEmailTemplate.Builder templateDescription(java.lang.String templateDescription)
templateDescription
- A custom description of the message template. This parameter is required.this
public CfnEmailTemplate.Builder textPart(java.lang.String textPart)
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.
textPart
- The message body, in plain text format, to use in email messages that are based on the message template. This parameter is required.this
public CfnEmailTemplate build()