Class CfnCampaignPropsMixin.CampaignEmailMessageProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.pinpoint.CfnCampaignPropsMixin.CampaignEmailMessageProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCampaignPropsMixin.CampaignEmailMessageProperty>
- Enclosing interface:
CfnCampaignPropsMixin.CampaignEmailMessageProperty
@Stability(Stable)
public static final class CfnCampaignPropsMixin.CampaignEmailMessageProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCampaignPropsMixin.CampaignEmailMessageProperty>
A builder for
CfnCampaignPropsMixin.CampaignEmailMessageProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnCampaignPropsMixin.CampaignEmailMessageProperty.getBody()build()Builds the configured instance.fromAddress(String fromAddress) Sets the value ofCfnCampaignPropsMixin.CampaignEmailMessageProperty.getFromAddress()Sets the value ofCfnCampaignPropsMixin.CampaignEmailMessageProperty.getHtmlBody()Sets the value ofCfnCampaignPropsMixin.CampaignEmailMessageProperty.getTitle()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
body
@Stability(Stable) public CfnCampaignPropsMixin.CampaignEmailMessageProperty.Builder body(String body) Sets the value ofCfnCampaignPropsMixin.CampaignEmailMessageProperty.getBody()- Parameters:
body- The body of the email for recipients whose email clients don't render HTML content.- Returns:
this
-
fromAddress
@Stability(Stable) public CfnCampaignPropsMixin.CampaignEmailMessageProperty.Builder fromAddress(String fromAddress) Sets the value ofCfnCampaignPropsMixin.CampaignEmailMessageProperty.getFromAddress()- Parameters:
fromAddress- The verified email address to send the email from. The default address is theFromAddressspecified for the email channel for the application.- Returns:
this
-
htmlBody
@Stability(Stable) public CfnCampaignPropsMixin.CampaignEmailMessageProperty.Builder htmlBody(String htmlBody) Sets the value ofCfnCampaignPropsMixin.CampaignEmailMessageProperty.getHtmlBody()- Parameters:
htmlBody- The body of the email, in HTML format, for recipients whose email clients render HTML content.- Returns:
this
-
title
@Stability(Stable) public CfnCampaignPropsMixin.CampaignEmailMessageProperty.Builder title(String title) Sets the value ofCfnCampaignPropsMixin.CampaignEmailMessageProperty.getTitle()- Parameters:
title- The subject line, or title, of the email.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCampaignPropsMixin.CampaignEmailMessageProperty>- Returns:
- a new instance of
CfnCampaignPropsMixin.CampaignEmailMessageProperty - Throws:
NullPointerException- if any required attribute was not provided
-