Interface RetrieveResponse.Builder

    • Method Detail

      • guardrailAction

        RetrieveResponse.Builder guardrailAction​(String guardrailAction)

        Specifies if there is a guardrail intervention in the response.

        Parameters:
        guardrailAction - Specifies if there is a guardrail intervention in the response.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        GuadrailAction, GuadrailAction
      • guardrailAction

        RetrieveResponse.Builder guardrailAction​(GuadrailAction guardrailAction)

        Specifies if there is a guardrail intervention in the response.

        Parameters:
        guardrailAction - Specifies if there is a guardrail intervention in the response.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        GuadrailAction, GuadrailAction
      • nextToken

        RetrieveResponse.Builder nextToken​(String nextToken)

        If there are more results than can fit in the response, the response returns a nextToken. Use this token in the nextToken field of another request to retrieve the next batch of results.

        Parameters:
        nextToken - If there are more results than can fit in the response, the response returns a nextToken. Use this token in the nextToken field of another request to retrieve the next batch of results.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • retrievalResults

        RetrieveResponse.Builder retrievalResults​(Collection<KnowledgeBaseRetrievalResult> retrievalResults)

        A list of results from querying the knowledge base.

        Parameters:
        retrievalResults - A list of results from querying the knowledge base.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • retrievalResults

        RetrieveResponse.Builder retrievalResults​(KnowledgeBaseRetrievalResult... retrievalResults)

        A list of results from querying the knowledge base.

        Parameters:
        retrievalResults - A list of results from querying the knowledge base.
        Returns:
        Returns a reference to this object so that method calls can be chained together.