Class Template
- java.lang.Object
-
- software.amazon.awssdk.services.ses.model.Template
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Template.Builder,Template>
@Generated("software.amazon.awssdk:codegen") public final class Template extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Template.Builder,Template>
The content of the email, composed of a subject line and either an HTML part or a text-only part.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceTemplate.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Template.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringhtmlPart()The HTML body of the email.List<SdkField<?>>sdkFields()static Class<? extends Template.Builder>serializableBuilderClass()StringsubjectPart()The subject line of the email.StringtemplateName()The name of the template.StringtextPart()The email body that is visible to recipients whose email clients do not display HTML content.Template.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
-
templateName
public final String templateName()
The name of the template. You use this name when you send email using the
SendTemplatedEmailorSendBulkTemplatedEmailoperations.- Returns:
- The name of the template. You use this name when you send email using the
SendTemplatedEmailorSendBulkTemplatedEmailoperations.
-
subjectPart
public final String subjectPart()
The subject line of the email.
- Returns:
- The subject line of the email.
-
textPart
public final String textPart()
The email body that is visible to recipients whose email clients do not display HTML content.
- Returns:
- The email body that is visible to recipients whose email clients do not display HTML content.
-
htmlPart
public final String htmlPart()
The HTML body of the email.
- Returns:
- The HTML body of the email.
-
toBuilder
public Template.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Template.Builder,Template>
-
builder
public static Template.Builder builder()
-
serializableBuilderClass
public static Class<? extends Template.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.
-
-