Class ChatEvent

    • Method Detail

      • typeAsString

        public final String typeAsString()

        Type of chat integration event.

        If the service returns an enum value that is not available in the current SDK version, type will return ChatEventType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from typeAsString().

        Returns:
        Type of chat integration event.
        See Also:
        ChatEventType
      • contentType

        public final String contentType()

        Type of content. This is required when Type is MESSAGE or EVENT.

        • For allowed message content types, see the ContentType parameter in the SendMessage topic in the Amazon Connect Participant Service API Reference.

        • For allowed event content types, see the ContentType parameter in the SendEvent topic in the Amazon Connect Participant Service API Reference.

        Returns:
        Type of content. This is required when Type is MESSAGE or EVENT.

        • For allowed message content types, see the ContentType parameter in the SendMessage topic in the Amazon Connect Participant Service API Reference.

        • For allowed event content types, see the ContentType parameter in the SendEvent topic in the Amazon Connect Participant Service API Reference.

      • content

        public final String content()

        Content of the message or event. This is required when Type is MESSAGE and for certain ContentTypes when Type is EVENT.

        • For allowed message content, see the Content parameter in the SendMessage topic in the Amazon Connect Participant Service API Reference.

        • For allowed event content, see the Content parameter in the SendEvent topic in the Amazon Connect Participant Service API Reference.

        Returns:
        Content of the message or event. This is required when Type is MESSAGE and for certain ContentTypes when Type is EVENT.

        • For allowed message content, see the Content parameter in the SendMessage topic in the Amazon Connect Participant Service API Reference.

        • For allowed event content, see the Content parameter in the SendEvent topic in the Amazon Connect Participant Service API Reference.

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