Interface RetrieveResponse.Builder

  • Method Details

    • results

      The results of the content retrieval operation.

      Parameters:
      results - The results of the content retrieval operation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • results

      The results of the content retrieval operation.

      Parameters:
      results - The results of the content retrieval operation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • results

      The results of the content retrieval operation.

      This is a convenience method that creates an instance of the RetrieveResult.Builder avoiding the need to create one manually via RetrieveResult.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to results(List<RetrieveResult>).

      Parameters:
      results - a consumer that will call methods on RetrieveResult.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • errors

      The per-association errors returned when one or more knowledge base associations fail during a Retrieve operation that spans multiple assistant associations. The overall operation still succeeds and returns the results from the associations that were queried successfully. This list contains one entry for each association that failed, up to a maximum of five.

      Parameters:
      errors - The per-association errors returned when one or more knowledge base associations fail during a Retrieve operation that spans multiple assistant associations. The overall operation still succeeds and returns the results from the associations that were queried successfully. This list contains one entry for each association that failed, up to a maximum of five.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • errors

      The per-association errors returned when one or more knowledge base associations fail during a Retrieve operation that spans multiple assistant associations. The overall operation still succeeds and returns the results from the associations that were queried successfully. This list contains one entry for each association that failed, up to a maximum of five.

      Parameters:
      errors - The per-association errors returned when one or more knowledge base associations fail during a Retrieve operation that spans multiple assistant associations. The overall operation still succeeds and returns the results from the associations that were queried successfully. This list contains one entry for each association that failed, up to a maximum of five.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • errors

      The per-association errors returned when one or more knowledge base associations fail during a Retrieve operation that spans multiple assistant associations. The overall operation still succeeds and returns the results from the associations that were queried successfully. This list contains one entry for each association that failed, up to a maximum of five.

      This is a convenience method that creates an instance of the RetrieveError.Builder avoiding the need to create one manually via RetrieveError.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to errors(List<RetrieveError>).

      Parameters:
      errors - a consumer that will call methods on RetrieveError.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: