Interface ChatSyncResponse.Builder

    • Method Detail

      • conversationId

        ChatSyncResponse.Builder conversationId​(String conversationId)

        The identifier of the Amazon Q Business conversation.

        Parameters:
        conversationId - The identifier of the Amazon Q Business conversation.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • systemMessage

        ChatSyncResponse.Builder systemMessage​(String systemMessage)

        An AI-generated message in a conversation.

        Parameters:
        systemMessage - An AI-generated message in a conversation.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • systemMessageId

        ChatSyncResponse.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.
      • userMessageId

        ChatSyncResponse.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.
      • actionReview

        ChatSyncResponse.Builder actionReview​(ActionReview actionReview)

        A request from Amazon Q Business to the end user for information Amazon Q Business needs to successfully complete a requested plugin action.

        Parameters:
        actionReview - A request from Amazon Q Business to the end user for information Amazon Q Business needs to successfully complete a requested plugin action.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • authChallengeRequest

        ChatSyncResponse.Builder authChallengeRequest​(AuthChallengeRequest authChallengeRequest)

        An authentication verification event activated by an end user request to use a custom plugin.

        Parameters:
        authChallengeRequest - An authentication verification event activated by an end user request to use a custom plugin.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • sourceAttributions

        ChatSyncResponse.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

        ChatSyncResponse.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.
      • failedAttachments

        ChatSyncResponse.Builder failedAttachments​(Collection<AttachmentOutput> failedAttachments)

        A list of files which failed to upload during chat.

        Parameters:
        failedAttachments - A list of files which failed to upload during chat.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • failedAttachments

        ChatSyncResponse.Builder failedAttachments​(AttachmentOutput... failedAttachments)

        A list of files which failed to upload during chat.

        Parameters:
        failedAttachments - A list of files which failed to upload during chat.
        Returns:
        Returns a reference to this object so that method calls can be chained together.