Interface CfnTemplate.TemplateProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnTemplate.TemplateProperty.Jsii$Proxy
Enclosing class:
CfnTemplate

@Stability(Stable) public static interface CfnTemplate.TemplateProperty extends software.amazon.jsii.JsiiSerializable
The content of the email, composed of a subject line and either an HTML part or a text-only part.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.ses.*;
 TemplateProperty templateProperty = TemplateProperty.builder()
         .subjectPart("subjectPart")
         // the properties below are optional
         .htmlPart("htmlPart")
         .templateName("templateName")
         .textPart("textPart")
         .build();
 
  • Method Details

    • getSubjectPart

      @Stability(Stable) @NotNull String getSubjectPart()
      The subject line of the email.
    • getHtmlPart

      @Stability(Stable) @Nullable default String getHtmlPart()
      The HTML body of the email.
    • getTemplateName

      @Stability(Stable) @Nullable default String getTemplateName()
      The name of the template.
    • getTextPart

      @Stability(Stable) @Nullable default String getTextPart()
      The email body that is visible to recipients whose email clients do not display HTML content.
    • builder

      @Stability(Stable) static CfnTemplate.TemplateProperty.Builder builder()
      Returns:
      a CfnTemplate.TemplateProperty.Builder of CfnTemplate.TemplateProperty