Class Content
- java.lang.Object
-
- software.amazon.awssdk.services.pinpointemail.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 interfaceContent.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Content.Builderbuilder()Stringcharset()The character set for the content.Stringdata()The content of the message itself.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends Content.Builder>serializableBuilderClass()Content.BuildertoBuilder()StringtoString()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 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, orShift_JIS.- Returns:
- 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, orShift_JIS.
-
toBuilder
public Content.Builder toBuilder()
- Specified by:
toBuilderin 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:
equalsBySdkFieldsin 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:
sdkFieldNameToFieldin interfaceSdkPojo
-
-