Class ChatMessage

    • Method Detail

      • contentType

        public final String contentType()

        The type of the content. Supported types are text/plain, text/markdown, application/json, and application/vnd.amazonaws.connect.message.interactive.response.

        Returns:
        The type of the content. Supported types are text/plain, text/markdown, application/json, and application/vnd.amazonaws.connect.message.interactive.response.
      • content

        public final String content()

        The content of the chat message.

        • For text/plain and text/markdown, the Length Constraints are Minimum of 1, Maximum of 1024.

        • For application/json, the Length Constraints are Minimum of 1, Maximum of 12000.

        • For application/vnd.amazonaws.connect.message.interactive.response, the Length Constraints are Minimum of 1, Maximum of 12288.

        Returns:
        The content of the chat message.

        • For text/plain and text/markdown, the Length Constraints are Minimum of 1, Maximum of 1024.

        • For application/json, the Length Constraints are Minimum of 1, Maximum of 12000.

        • For application/vnd.amazonaws.connect.message.interactive.response, the Length Constraints are Minimum of 1, Maximum of 12288.

      • 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)