public static interface SimpleEmail.Builder extends SdkPojo, CopyableBuilder<SimpleEmail.Builder,SimpleEmail>
Modifier and Type | Method and Description |
---|---|
default SimpleEmail.Builder |
htmlPart(Consumer<SimpleEmailPart.Builder> htmlPart)
The body of the email message, in HTML format.
|
SimpleEmail.Builder |
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.
|
SimpleEmail.Builder |
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 text format.
|
SimpleEmail.Builder |
textPart(SimpleEmailPart textPart)
The body of the email message, in text format.
|
copy
applyMutation, build
SimpleEmail.Builder htmlPart(SimpleEmailPart htmlPart)
The body of the email message, in HTML format. We recommend using an HTML part for email clients that support HTML. You can include links, formatted text, and more in an HTML message.
htmlPart
- The body of the email message, in HTML format. We recommend using an HTML part for email clients that
support HTML. You can include links, formatted text, and more in an HTML message.default SimpleEmail.Builder htmlPart(Consumer<SimpleEmailPart.Builder> htmlPart)
The body of the email message, in HTML format. We recommend using an HTML part for email clients that support HTML. You can include links, formatted text, and more in an HTML message.
This is a convenience that creates an instance of theSimpleEmailPart.Builder
avoiding the need to
create one manually via SimpleEmailPart.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to htmlPart(SimpleEmailPart)
.htmlPart
- a consumer that will call methods on SimpleEmailPart.Builder
htmlPart(SimpleEmailPart)
SimpleEmail.Builder subject(SimpleEmailPart subject)
The subject line, or title, of the email.
subject
- The subject line, or title, of the email.default SimpleEmail.Builder subject(Consumer<SimpleEmailPart.Builder> subject)
The subject line, or title, of the email.
This is a convenience that creates an instance of theSimpleEmailPart.Builder
avoiding the need to
create one manually via SimpleEmailPart.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to subject(SimpleEmailPart)
.subject
- a consumer that will call methods on SimpleEmailPart.Builder
subject(SimpleEmailPart)
SimpleEmail.Builder textPart(SimpleEmailPart textPart)
The body of the email message, in text format. We recommend using a text part for email clients that don't support HTML and clients that are connected to high-latency networks, such as mobile devices.
textPart
- The body of the email message, in text format. We recommend using a text part for email clients that
don't support HTML and clients that are connected to high-latency networks, such as mobile devices.default SimpleEmail.Builder textPart(Consumer<SimpleEmailPart.Builder> textPart)
The body of the email message, in text format. We recommend using a text part for email clients that don't support HTML and clients that are connected to high-latency networks, such as mobile devices.
This is a convenience that creates an instance of theSimpleEmailPart.Builder
avoiding the need to
create one manually via SimpleEmailPart.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to textPart(SimpleEmailPart)
.textPart
- a consumer that will call methods on SimpleEmailPart.Builder
textPart(SimpleEmailPart)
Copyright © 2019. All rights reserved.