Interface EmailMessage.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<EmailMessage.Builder,,EmailMessage> SdkBuilder<EmailMessage.Builder,,EmailMessage> SdkPojo
- Enclosing class:
EmailMessage
-
Method Summary
Modifier and TypeMethodDescriptionThe body of the email message.feedbackForwardingAddress(String feedbackForwardingAddress) The email address to forward bounces and complaints to, if feedback forwarding is enabled.fromAddress(String fromAddress) The verified email address to send the email message from.default EmailMessage.BuilderrawEmail(Consumer<RawEmail.Builder> rawEmail) The email message, represented as a raw MIME message.The email message, represented as a raw MIME message.replyToAddresses(String... replyToAddresses) The reply-to email address(es) for the email message.replyToAddresses(Collection<String> replyToAddresses) The reply-to email address(es) for the email message.default EmailMessage.BuildersimpleEmail(Consumer<SimpleEmail.Builder> simpleEmail) The email message, composed of a subject, a text part, and an HTML part.simpleEmail(SimpleEmail simpleEmail) The email message, composed of a subject, a text part, and an HTML part.substitutions(Map<String, ? extends Collection<String>> substitutions) The default message variables to use in the email message.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
body
The body of the email message.
- Parameters:
body- The body of the email message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
feedbackForwardingAddress
The email address to forward bounces and complaints to, if feedback forwarding is enabled.
- Parameters:
feedbackForwardingAddress- The email address to forward bounces and complaints to, if feedback forwarding is enabled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fromAddress
The verified email address to send the email message from. The default value is the FromAddress specified for the email channel.
- Parameters:
fromAddress- The verified email address to send the email message from. The default value is the FromAddress specified for the email channel.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rawEmail
The email message, represented as a raw MIME message.
- Parameters:
rawEmail- The email message, represented as a raw MIME message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rawEmail
The email message, represented as a raw MIME message.
This is a convenience method that creates an instance of theRawEmail.Builderavoiding the need to create one manually viaRawEmail.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torawEmail(RawEmail).- Parameters:
rawEmail- a consumer that will call methods onRawEmail.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
replyToAddresses
The reply-to email address(es) for the email message. If a recipient replies to the email, each reply-to address receives the reply.
- Parameters:
replyToAddresses- The reply-to email address(es) for the email message. If a recipient replies to the email, each reply-to address receives the reply.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
replyToAddresses
The reply-to email address(es) for the email message. If a recipient replies to the email, each reply-to address receives the reply.
- Parameters:
replyToAddresses- The reply-to email address(es) for the email message. If a recipient replies to the email, each reply-to address receives the reply.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
simpleEmail
The email message, composed of a subject, a text part, and an HTML part.
- Parameters:
simpleEmail- The email message, composed of a subject, a text part, and an HTML part.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
simpleEmail
The email message, composed of a subject, a text part, and an HTML part.
This is a convenience method that creates an instance of theSimpleEmail.Builderavoiding the need to create one manually viaSimpleEmail.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosimpleEmail(SimpleEmail).- Parameters:
simpleEmail- a consumer that will call methods onSimpleEmail.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
substitutions
The default message variables to use in the email message. You can override the default variables with individual address variables.
- Parameters:
substitutions- The default message variables to use in the email message. You can override the default variables with individual address variables.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-