Interface QueryAssistantRequest.Builder

    • Method Detail

      • assistantId

        QueryAssistantRequest.Builder assistantId​(String assistantId)

        The identifier of the Amazon Q assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

        Parameters:
        assistantId - The identifier of the Amazon Q assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • maxResults

        QueryAssistantRequest.Builder maxResults​(Integer maxResults)

        The maximum number of results to return per page.

        Parameters:
        maxResults - The maximum number of results to return per page.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • nextToken

        QueryAssistantRequest.Builder nextToken​(String nextToken)

        The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

        Parameters:
        nextToken - The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • queryCondition

        QueryAssistantRequest.Builder queryCondition​(Collection<QueryCondition> queryCondition)

        Information about how to query content.

        Parameters:
        queryCondition - Information about how to query content.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • queryCondition

        QueryAssistantRequest.Builder queryCondition​(QueryCondition... queryCondition)

        Information about how to query content.

        Parameters:
        queryCondition - Information about how to query content.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • queryText

        QueryAssistantRequest.Builder queryText​(String queryText)

        The text to search for.

        Parameters:
        queryText - The text to search for.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • sessionId

        QueryAssistantRequest.Builder sessionId​(String sessionId)

        The identifier of the Amazon Q session. Can be either the ID or the ARN. URLs cannot contain the ARN.

        Parameters:
        sessionId - The identifier of the Amazon Q session. Can be either the ID or the ARN. URLs cannot contain the ARN.
        Returns:
        Returns a reference to this object so that method calls can be chained together.