Interface MetadataEvent.Builder

    • Method Detail

      • conversationId

        MetadataEvent.Builder conversationId​(String conversationId)

        The identifier of the conversation with which the generated metadata is associated.

        Parameters:
        conversationId - The identifier of the conversation with which the generated metadata is associated.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • userMessageId

        MetadataEvent.Builder userMessageId​(String userMessageId)

        The identifier of an Amazon Q Business end user text input message within the conversation.

        Parameters:
        userMessageId - The identifier of an Amazon Q Business end user text input message within the conversation.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • systemMessageId

        MetadataEvent.Builder systemMessageId​(String systemMessageId)

        The identifier of an Amazon Q Business AI generated message within the conversation.

        Parameters:
        systemMessageId - The identifier of an Amazon Q Business AI generated message within the conversation.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • sourceAttributions

        MetadataEvent.Builder sourceAttributions​(Collection<SourceAttribution> sourceAttributions)

        The source documents used to generate the conversation response.

        Parameters:
        sourceAttributions - The source documents used to generate the conversation response.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • sourceAttributions

        MetadataEvent.Builder sourceAttributions​(SourceAttribution... sourceAttributions)

        The source documents used to generate the conversation response.

        Parameters:
        sourceAttributions - The source documents used to generate the conversation response.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • finalTextMessage

        MetadataEvent.Builder finalTextMessage​(String finalTextMessage)

        The final text output message generated by the system.

        Parameters:
        finalTextMessage - The final text output message generated by the system.
        Returns:
        Returns a reference to this object so that method calls can be chained together.