Class CfnSmsTemplate.Builder

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

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

    • create

      @Stability(Stable) public static CfnSmsTemplate.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 CfnSmsTemplate.Builder.
    • body

      @Stability(Stable) public CfnSmsTemplate.Builder body(String body)
      The message body to use in text messages that are based on the message template.

      Parameters:
      body - The message body to use in text messages that are based on the message template. This parameter is required.
      Returns:
      this
    • templateName

      @Stability(Stable) public CfnSmsTemplate.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 CfnSmsTemplate.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
    • tags

      @Stability(Stable) public CfnSmsTemplate.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 CfnSmsTemplate.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
    • build

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