Class CfnTemplatePropsMixin.TemplateProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ses.CfnTemplatePropsMixin.TemplateProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTemplatePropsMixin.TemplateProperty>
- Enclosing interface:
CfnTemplatePropsMixin.TemplateProperty
@Stability(Stable)
public static final class CfnTemplatePropsMixin.TemplateProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTemplatePropsMixin.TemplateProperty>
A builder for
CfnTemplatePropsMixin.TemplateProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnTemplatePropsMixin.TemplateProperty.getHtmlPart()subjectPart(String subjectPart) Sets the value ofCfnTemplatePropsMixin.TemplateProperty.getSubjectPart()templateName(String templateName) Sets the value ofCfnTemplatePropsMixin.TemplateProperty.getTemplateName()Sets the value ofCfnTemplatePropsMixin.TemplateProperty.getTextPart()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
htmlPart
Sets the value ofCfnTemplatePropsMixin.TemplateProperty.getHtmlPart()- Parameters:
htmlPart- The HTML body of the email.- Returns:
this
-
subjectPart
@Stability(Stable) public CfnTemplatePropsMixin.TemplateProperty.Builder subjectPart(String subjectPart) Sets the value ofCfnTemplatePropsMixin.TemplateProperty.getSubjectPart()- Parameters:
subjectPart- The subject line of the email.- Returns:
this
-
templateName
@Stability(Stable) public CfnTemplatePropsMixin.TemplateProperty.Builder templateName(String templateName) Sets the value ofCfnTemplatePropsMixin.TemplateProperty.getTemplateName()- Parameters:
templateName- The name of the template. You will refer to this name when you send email using theSendEmailorSendBulkEmailoperations.- Returns:
this
-
textPart
Sets the value ofCfnTemplatePropsMixin.TemplateProperty.getTextPart()- Parameters:
textPart- The email body that is visible to recipients whose email clients do not display HTML content.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTemplatePropsMixin.TemplateProperty>- Returns:
- a new instance of
CfnTemplatePropsMixin.TemplateProperty - Throws:
NullPointerException- if any required attribute was not provided
-