@Generated(value="software.amazon.awssdk:codegen") public class Body extends Object implements ToCopyableBuilder<Body.Builder,Body>
Represents the body of the message. You can specify text, HTML, or both. If you use both, then the message should display correctly in the widest variety of email clients.
Modifier and Type | Class and Description |
---|---|
static interface |
Body.Builder |
Modifier and Type | Method and Description |
---|---|
static Body.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Content |
html()
The content of the message, in HTML format.
|
static Class<? extends Body.Builder> |
serializableBuilderClass() |
Content |
text()
The content of the message, in text format.
|
Body.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public Content text()
The content of the message, in text format. Use this for text-based email clients, or clients on high-latency networks (such as mobile devices).
public Content html()
The content of the message, in HTML format. Use this for email clients that can process HTML. You can include clickable links, formatted text, and much more in an HTML message.
public Body.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Body.Builder,Body>
public static Body.Builder builder()
public static Class<? extends Body.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.