@Generated(value="software.amazon.awssdk:codegen") public final class Content extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Content.Builder,Content>
An object that represents the content of the email, and optionally a character set specification.
Modifier and Type | Class and Description |
---|---|
static interface |
Content.Builder |
Modifier and Type | Method and Description |
---|---|
static Content.Builder |
builder() |
String |
charset()
The character set for the content.
|
String |
data()
The content of the message itself.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends Content.Builder> |
serializableBuilderClass() |
Content.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public String data()
The content of the message itself.
public String charset()
The character set for the content. Because of the constraints of the SMTP protocol, Amazon Pinpoint uses 7-bit
ASCII by default. If the text includes characters outside of the ASCII range, you have to specify a character
set. For example, you could specify UTF-8
, ISO-8859-1
, or Shift_JIS
.
UTF-8
, ISO-8859-1
, or
Shift_JIS
.public Content.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Content.Builder,Content>
public static Content.Builder builder()
public static Class<? extends Content.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.