public static interface SearchResponse.Builder extends SageMakerResponse.Builder, SdkPojo, CopyableBuilder<SearchResponse.Builder,SearchResponse>
Modifier and Type | Method and Description |
---|---|
SearchResponse.Builder |
nextToken(String nextToken)
If the result of the previous
Search request was truncated, the response includes a NextToken. |
SearchResponse.Builder |
results(Collection<SearchRecord> results)
A list of
SearchRecord objects. |
SearchResponse.Builder |
results(Consumer<SearchRecord.Builder>... results)
A list of
SearchRecord objects. |
SearchResponse.Builder |
results(SearchRecord... results)
A list of
SearchRecord objects. |
build, responseMetadata, responseMetadata
sdkHttpResponse, sdkHttpResponse
equalsBySdkFields, sdkFields
copy
applyMutation, build
SearchResponse.Builder results(Collection<SearchRecord> results)
A list of SearchRecord
objects.
results
- A list of SearchRecord
objects.SearchResponse.Builder results(SearchRecord... results)
A list of SearchRecord
objects.
results
- A list of SearchRecord
objects.SearchResponse.Builder results(Consumer<SearchRecord.Builder>... results)
A list of SearchRecord
objects.
List.Builder
avoiding the
need to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its
result is passed to #results(List)
.results
- a consumer that will call methods on List.Builder
#results(List)
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.
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.Copyright © 2022. All rights reserved.