@Generated(value="software.amazon.awssdk:codegen") public final class Body extends Object implements SdkPojo, Serializable, 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) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Content |
html()
The content of the message, in HTML format.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Body.Builder> |
serializableBuilderClass() |
Content |
text()
The content of the message, in text format.
|
Body.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public final 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 final 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()
toBuilder
in interface ToCopyableBuilder<Body.Builder,Body>
public static Body.Builder builder()
public static Class<? extends Body.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public final String toString()
Copyright © 2023. All rights reserved.