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 plain text format.
|
SimpleEmail.Builder |
textPart(SimpleEmailPart textPart)
The body of the email message, in plain text format.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildSimpleEmail.Builder htmlPart(SimpleEmailPart 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.
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.default SimpleEmail.Builder htmlPart(Consumer<SimpleEmailPart.Builder> 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 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.BuilderhtmlPart(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.Buildersubject(SimpleEmailPart)SimpleEmail.Builder textPart(SimpleEmailPart 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.
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.default SimpleEmail.Builder textPart(Consumer<SimpleEmailPart.Builder> 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 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.BuildertextPart(SimpleEmailPart)Copyright © 2021. All rights reserved.