Interface SearchResponse.Builder

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

public static interface SearchResponse.Builder extends SageMakerResponse.Builder, SdkPojo, CopyableBuilder<SearchResponse.Builder,SearchResponse>
  • Method Details

    • results

      A list of SearchRecord objects.

      Parameters:
      results - A list of SearchRecord objects.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • results

      SearchResponse.Builder results(SearchRecord... results)

      A list of SearchRecord objects.

      Parameters:
      results - A list of SearchRecord objects.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • results

      A list of SearchRecord objects.

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

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

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

      SearchResponse.Builder nextToken(String nextToken)

      If the result of the previous Search request was truncated, the response includes a NextToken. To retrieve the next set of results, use the token in the next request.

      Parameters:
      nextToken - If the result of the previous Search request was truncated, the response includes a NextToken. To retrieve the next set of results, use the token in the next request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.