Interface SimpleEmail.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<SimpleEmail.Builder,
,SimpleEmail> SdkBuilder<SimpleEmail.Builder,
,SimpleEmail> SdkPojo
- Enclosing class:
SimpleEmail
-
Method Summary
Modifier and TypeMethodDescriptiondefault SimpleEmail.Builder
htmlPart
(Consumer<SimpleEmailPart.Builder> htmlPart) The body of the email message, in HTML format.htmlPart
(SimpleEmailPart htmlPart) The body of the email message, in HTML format.default SimpleEmail.Builder
subject
(Consumer<SimpleEmailPart.Builder> subject) The subject line, or title, of the email.subject
(SimpleEmailPart subject) The subject line, or title, of the email.default SimpleEmail.Builder
textPart
(Consumer<SimpleEmailPart.Builder> textPart) The body of the email message, in plain text format.textPart
(SimpleEmailPart textPart) The body of the email message, in plain text format.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 Details
-
htmlPart
The body of the email message, in HTML format. We recommend using HTML format for email clients that render HTML content. You can include links, formatted text, and more in an HTML message.
- Parameters:
htmlPart
- The body of the email message, in HTML format. We recommend using HTML format for email clients that render HTML content. You can include links, formatted text, and more in an HTML message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
htmlPart
The body of the email message, in HTML format. We recommend using HTML format for email clients that render HTML content. You can include links, formatted text, and more in an HTML message.
This is a convenience method that creates an instance of theSimpleEmailPart.Builder
avoiding the need to create one manually viaSimpleEmailPart.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tohtmlPart(SimpleEmailPart)
.- Parameters:
htmlPart
- a consumer that will call methods onSimpleEmailPart.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
subject
The subject line, or title, of the email.
- Parameters:
subject
- The subject line, or title, of the email.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subject
The subject line, or title, of the email.
This is a convenience method that creates an instance of theSimpleEmailPart.Builder
avoiding the need to create one manually viaSimpleEmailPart.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosubject(SimpleEmailPart)
.- Parameters:
subject
- a consumer that will call methods onSimpleEmailPart.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
textPart
The body of the email message, in plain text format. We recommend using plain text format for email clients that don't render HTML content and clients that are connected to high-latency networks, such as mobile devices.
- Parameters:
textPart
- The body of the email message, in plain text format. We recommend using plain text format for email clients that don't render HTML content and clients that are connected to high-latency networks, such as mobile devices.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
textPart
The body of the email message, in plain text format. We recommend using plain text format for email clients that don't render HTML content and clients that are connected to high-latency networks, such as mobile devices.
This is a convenience method that creates an instance of theSimpleEmailPart.Builder
avoiding the need to create one manually viaSimpleEmailPart.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totextPart(SimpleEmailPart)
.- Parameters:
textPart
- a consumer that will call methods onSimpleEmailPart.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-