Class CfnCampaign.CampaignEmailMessageProperty.Builder
java.lang.Object
software.amazon.awscdk.services.pinpoint.CfnCampaign.CampaignEmailMessageProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCampaign.CampaignEmailMessageProperty>
- Enclosing interface:
- CfnCampaign.CampaignEmailMessageProperty
@Stability(Stable)
public static final class CfnCampaign.CampaignEmailMessageProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCampaign.CampaignEmailMessageProperty>
A builder for
CfnCampaign.CampaignEmailMessageProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnCampaign.CampaignEmailMessageProperty.getBody()build()Builds the configured instance.fromAddress(String fromAddress) Sets the value ofCfnCampaign.CampaignEmailMessageProperty.getFromAddress()Sets the value ofCfnCampaign.CampaignEmailMessageProperty.getHtmlBody()Sets the value ofCfnCampaign.CampaignEmailMessageProperty.getTitle()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
body
Sets the value ofCfnCampaign.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 CfnCampaign.CampaignEmailMessageProperty.Builder fromAddress(String fromAddress) Sets the value ofCfnCampaign.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 CfnCampaign.CampaignEmailMessageProperty.Builder htmlBody(String htmlBody) Sets the value ofCfnCampaign.CampaignEmailMessageProperty.getHtmlBody()- Parameters:
htmlBody- The body of the email, in HTML format, for recipients whose email clients render HTML content.- Returns:
this
-
title
Sets the value ofCfnCampaign.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<CfnCampaign.CampaignEmailMessageProperty>- Returns:
- a new instance of
CfnCampaign.CampaignEmailMessageProperty - Throws:
NullPointerException- if any required attribute was not provided
-