Interface RescoreResponse.Builder

All Superinterfaces:
AwsResponse.Builder, Buildable, CopyableBuilder<RescoreResponse.Builder,RescoreResponse>, KendraRankingResponse.Builder, SdkBuilder<RescoreResponse.Builder,RescoreResponse>, SdkPojo, SdkResponse.Builder
Enclosing class:
RescoreResponse

public static interface RescoreResponse.Builder extends KendraRankingResponse.Builder, SdkPojo, CopyableBuilder<RescoreResponse.Builder,RescoreResponse>
  • Method Details

    • rescoreId

      RescoreResponse.Builder rescoreId(String rescoreId)

      The identifier associated with the scores that Amazon Kendra Intelligent Ranking gives to the results. Amazon Kendra Intelligent Ranking rescores or re-ranks the results for the search service.

      Parameters:
      rescoreId - The identifier associated with the scores that Amazon Kendra Intelligent Ranking gives to the results. Amazon Kendra Intelligent Ranking rescores or re-ranks the results for the search service.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resultItems

      A list of result items for documents with new relevancy scores. The results are in descending order.

      Parameters:
      resultItems - A list of result items for documents with new relevancy scores. The results are in descending order.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resultItems

      RescoreResponse.Builder resultItems(RescoreResultItem... resultItems)

      A list of result items for documents with new relevancy scores. The results are in descending order.

      Parameters:
      resultItems - A list of result items for documents with new relevancy scores. The results are in descending order.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resultItems

      A list of result items for documents with new relevancy scores. The results are in descending order.

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

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

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