Class TemplateConfiguration

    • Method Detail

      • emailTemplate

        public final Template emailTemplate()

        The email template to use for the message.

        Returns:
        The email template to use for the message.
      • pushTemplate

        public final Template pushTemplate()

        The push notification template to use for the message.

        Returns:
        The push notification template to use for the message.
      • smsTemplate

        public final Template smsTemplate()

        The SMS template to use for the message.

        Returns:
        The SMS template to use for the message.
      • voiceTemplate

        public final Template voiceTemplate()

        The voice template to use for the message. This object isn't supported for campaigns.

        Returns:
        The voice template to use for the message. This object isn't supported for campaigns.
      • inAppTemplate

        public final Template inAppTemplate()

        The InApp template to use for the message. The InApp template object is not supported for SendMessages.

        Returns:
        The InApp template to use for the message. The InApp template object is not supported for SendMessages.
      • 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)