Class Content
- java.lang.Object
-
- software.amazon.awssdk.services.sesv2.model.Content
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<Content.Builder,Content>
@Generated("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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
Content.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
Map<String,SdkField<?>>
sdkFieldNameToField()
List<SdkField<?>>
sdkFields()
static Class<? extends Content.Builder>
serializableBuilderClass()
Content.Builder
toBuilder()
String
toString()
Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
data
public final String data()
The content of the message itself.
- Returns:
- The content of the message itself.
-
charset
public final String charset()
The character set for the content. Because of the constraints of the SMTP protocol, Amazon SES 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
, orShift_JIS
.- Returns:
- The character set for the content. Because of the constraints of the SMTP protocol, Amazon SES 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
, orShift_JIS
.
-
toBuilder
public Content.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<Content.Builder,Content>
-
builder
public static Content.Builder builder()
-
serializableBuilderClass
public static Class<? extends Content.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToField
in interfaceSdkPojo
-
-