Interface GetSearchResultsResponse.Builder

  • Method Details

    • searchResults

      A page of search results, ordered by descending relevance score.

      Parameters:
      searchResults - A page of search results, ordered by descending relevance score.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • searchResults

      GetSearchResultsResponse.Builder searchResults(SearchResult... searchResults)

      A page of search results, ordered by descending relevance score.

      Parameters:
      searchResults - A page of search results, ordered by descending relevance score.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • searchResults

      A page of search results, ordered by descending relevance score.

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

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

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

      The pagination token to use in a subsequent GetSearchResults call to retrieve the next page. Absent when there are no more results.

      Parameters:
      nextToken - The pagination token to use in a subsequent GetSearchResults call to retrieve the next page. Absent when there are no more results.
      Returns:
      Returns a reference to this object so that method calls can be chained together.