Class MessageBody
- java.lang.Object
-
- software.amazon.awssdk.services.mailmanager.model.MessageBody
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<MessageBody.Builder,MessageBody>
@Generated("software.amazon.awssdk:codegen") public final class MessageBody extends Object implements SdkPojo, Serializable, ToCopyableBuilder<MessageBody.Builder,MessageBody>
The textual body content of an email message.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceMessageBody.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MessageBody.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringhtml()The HTML body content of the message.BooleanmessageMalformed()A flag indicating if the email was malformed.List<SdkField<?>>sdkFields()static Class<? extends MessageBody.Builder>serializableBuilderClass()Stringtext()The plain text body content of the message.MessageBody.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
-
html
public final String html()
The HTML body content of the message.
- Returns:
- The HTML body content of the message.
-
messageMalformed
public final Boolean messageMalformed()
A flag indicating if the email was malformed.
- Returns:
- A flag indicating if the email was malformed.
-
text
public final String text()
The plain text body content of the message.
- Returns:
- The plain text body content of the message.
-
toBuilder
public MessageBody.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<MessageBody.Builder,MessageBody>
-
builder
public static MessageBody.Builder builder()
-
serializableBuilderClass
public static Class<? extends MessageBody.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.
-
-