Class CfnTemplate.TemplateProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ses.CfnTemplate.TemplateProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTemplate.TemplateProperty>
- Enclosing interface:
CfnTemplate.TemplateProperty
@Stability(Stable)
public static final class CfnTemplate.TemplateProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTemplate.TemplateProperty>
A builder for
CfnTemplate.TemplateProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnTemplate.TemplateProperty.getHtmlPart()
subjectPart
(String subjectPart) Sets the value ofCfnTemplate.TemplateProperty.getSubjectPart()
templateName
(String templateName) Sets the value ofCfnTemplate.TemplateProperty.getTemplateName()
Sets the value ofCfnTemplate.TemplateProperty.getTextPart()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
subjectPart
Sets the value ofCfnTemplate.TemplateProperty.getSubjectPart()
- Parameters:
subjectPart
- The subject line of the email. This parameter is required.- Returns:
this
-
htmlPart
Sets the value ofCfnTemplate.TemplateProperty.getHtmlPart()
- Parameters:
htmlPart
- The HTML body of the email.- Returns:
this
-
templateName
Sets the value ofCfnTemplate.TemplateProperty.getTemplateName()
- Parameters:
templateName
- The name of the template. You will refer to this name when you send email using theSendTemplatedEmail
orSendBulkTemplatedEmail
operations.- Returns:
this
-
textPart
Sets the value ofCfnTemplate.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:
build
in interfacesoftware.amazon.jsii.Builder<CfnTemplate.TemplateProperty>
- Returns:
- a new instance of
CfnTemplate.TemplateProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-