Interface RerankResponse.Builder

  • Method Details

    • nextToken

      RerankResponse.Builder nextToken(String nextToken)

      If the total number of results is greater than can fit in the response, use this token in the nextToken field when making another request to return the next batch of results.

      Parameters:
      nextToken - If the total number of results is greater than can fit in the response, use this token in the nextToken field when making another request to return the next batch of results.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • results

      An array of objects, each of which contains information about the results of reranking.

      Parameters:
      results - An array of objects, each of which contains information about the results of reranking.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • results

      RerankResponse.Builder results(RerankResult... results)

      An array of objects, each of which contains information about the results of reranking.

      Parameters:
      results - An array of objects, each of which contains information about the results of reranking.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • results

      An array of objects, each of which contains information about the results of reranking.

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

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

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