Class CfnEmailTemplate.Builder

java.lang.Object
software.amazon.awscdk.services.pinpoint.CfnEmailTemplate.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEmailTemplate>
Enclosing class:
CfnEmailTemplate

@Stability(Stable) public static final class CfnEmailTemplate.Builder extends Object implements software.amazon.jsii.Builder<CfnEmailTemplate>
A fluent builder for CfnEmailTemplate.
  • Method Details

    • create

      @Stability(Stable) public static CfnEmailTemplate.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnEmailTemplate.Builder.
    • subject

      @Stability(Stable) public CfnEmailTemplate.Builder subject(String subject)
      The subject line, or title, to use in email messages that are based on the message template.

      Parameters:
      subject - The subject line, or title, to use in email messages that are based on the message template. This parameter is required.
      Returns:
      this
    • templateName

      @Stability(Stable) public CfnEmailTemplate.Builder templateName(String templateName)
      The name of the message template.

      Parameters:
      templateName - The name of the message template. This parameter is required.
      Returns:
      this
    • defaultSubstitutions

      @Stability(Stable) public CfnEmailTemplate.Builder defaultSubstitutions(String 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.

      Parameters:
      defaultSubstitutions - A JSON object that specifies the default values to use for message variables in the message template. This parameter is required.
      Returns:
      this
    • htmlPart

      @Stability(Stable) public CfnEmailTemplate.Builder htmlPart(String 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.

      Parameters:
      htmlPart - The message body, in HTML format, to use in email messages that are based on the message template. This parameter is required.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnEmailTemplate.Builder tags(Object tags)
      An array of key-value pairs to apply to this resource.

      For more information, see Tag .

      Parameters:
      tags - An array of key-value pairs to apply to this resource. This parameter is required.
      Returns:
      this
    • templateDescription

      @Stability(Stable) public CfnEmailTemplate.Builder templateDescription(String templateDescription)
      A custom description of the message template.

      Parameters:
      templateDescription - A custom description of the message template. This parameter is required.
      Returns:
      this
    • textPart

      @Stability(Stable) public CfnEmailTemplate.Builder textPart(String 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.

      Parameters:
      textPart - The message body, in plain text format, to use in email messages that are based on the message template. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnEmailTemplate build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnEmailTemplate>
      Returns:
      a newly built instance of CfnEmailTemplate.