Interface CampaignEmailMessage.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<CampaignEmailMessage.Builder,CampaignEmailMessage>,SdkBuilder<CampaignEmailMessage.Builder,CampaignEmailMessage>,SdkPojo
- Enclosing class:
- CampaignEmailMessage
public static interface CampaignEmailMessage.Builder extends SdkPojo, CopyableBuilder<CampaignEmailMessage.Builder,CampaignEmailMessage>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CampaignEmailMessage.Builderbody(String body)The body of the email for recipients whose email clients don't render HTML content.CampaignEmailMessage.BuilderfromAddress(String fromAddress)The verified email address to send the email from.CampaignEmailMessage.Builderheaders(Collection<MessageHeader> headers)The list of MessageHeaders for the email.CampaignEmailMessage.Builderheaders(Consumer<MessageHeader.Builder>... headers)The list of MessageHeaders for the email.CampaignEmailMessage.Builderheaders(MessageHeader... headers)The list of MessageHeaders for the email.CampaignEmailMessage.BuilderhtmlBody(String htmlBody)The body of the email, in HTML format, for recipients whose email clients render HTML content.CampaignEmailMessage.Buildertitle(String title)The subject line, or title, of the email.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
body
CampaignEmailMessage.Builder body(String body)
The body of the email for recipients whose email clients don't render HTML content.
- Parameters:
body- The body of the email for recipients whose email clients don't render HTML content.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fromAddress
CampaignEmailMessage.Builder fromAddress(String fromAddress)
The verified email address to send the email from. The default address is the FromAddress specified for the email channel for the application.
- Parameters:
fromAddress- The verified email address to send the email from. The default address is the FromAddress specified for the email channel for the application.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
headers
CampaignEmailMessage.Builder headers(Collection<MessageHeader> headers)
The list of MessageHeaders for the email. You can have up to 15 MessageHeaders for each email.
- Parameters:
headers- The list of MessageHeaders for the email. You can have up to 15 MessageHeaders for each email.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
headers
CampaignEmailMessage.Builder headers(MessageHeader... headers)
The list of MessageHeaders for the email. You can have up to 15 MessageHeaders for each email.
- Parameters:
headers- The list of MessageHeaders for the email. You can have up to 15 MessageHeaders for each email.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
headers
CampaignEmailMessage.Builder headers(Consumer<MessageHeader.Builder>... headers)
The list of MessageHeaders for the email. You can have up to 15 MessageHeaders for each email.
This is a convenience method that creates an instance of theMessageHeader.Builderavoiding the need to create one manually viaMessageHeader.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#headers(List.) - Parameters:
headers- a consumer that will call methods onMessageHeader.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#headers(java.util.Collection)
-
htmlBody
CampaignEmailMessage.Builder htmlBody(String htmlBody)
The body of the email, in HTML format, for recipients whose email clients render HTML content.
- Parameters:
htmlBody- The body of the email, in HTML format, for recipients whose email clients render HTML content.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
title
CampaignEmailMessage.Builder title(String title)
The subject line, or title, of the email.
- Parameters:
title- The subject line, or title, of the email.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-