Class Template

    • Method Detail

      • templateName

        public final String templateName()

        The name of the template. You use this name when you send email using the SendTemplatedEmail or SendBulkTemplatedEmail operations.

        Returns:
        The name of the template. You use this name when you send email using the SendTemplatedEmail or SendBulkTemplatedEmail operations.
      • 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.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • 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.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)