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:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic Content.Builderbuilder()final Stringcharset()The character set for the content.final Stringdata()The content of the message itself.final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()static Class<? extends Content.Builder>final StringtoString()Returns a string representation of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
data
The content of the message itself.
- Returns:
- The content of the message itself.
-
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
- Specified by:
toBuilderin interfaceToCopyableBuilder<Content.Builder,Content>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
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. -
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-