public static interface QueryResponse.Builder extends KendraResponse.Builder, SdkPojo, CopyableBuilder<QueryResponse.Builder,QueryResponse>
| Modifier and Type | Method and Description |
|---|---|
QueryResponse.Builder |
facetResults(Collection<FacetResult> facetResults)
Contains the facet results.
|
QueryResponse.Builder |
facetResults(Consumer<FacetResult.Builder>... facetResults)
Contains the facet results.
|
QueryResponse.Builder |
facetResults(FacetResult... facetResults)
Contains the facet results.
|
QueryResponse.Builder |
queryId(String queryId)
The unique identifier for the search.
|
QueryResponse.Builder |
resultItems(Collection<QueryResultItem> resultItems)
The results of the search.
|
QueryResponse.Builder |
resultItems(Consumer<QueryResultItem.Builder>... resultItems)
The results of the search.
|
QueryResponse.Builder |
resultItems(QueryResultItem... resultItems)
The results of the search.
|
QueryResponse.Builder |
totalNumberOfResults(Integer totalNumberOfResults)
The total number of items found by the search; however, you can only retrieve up to 100 items.
|
build, responseMetadata, responseMetadatasdkHttpResponse, sdkHttpResponseequalsBySdkFields, sdkFieldscopyapplyMutation, buildQueryResponse.Builder queryId(String queryId)
The unique identifier for the search. You use QueryId to identify the search when using the
feedback API.
queryId - The unique identifier for the search. You use QueryId to identify the search when using
the feedback API.QueryResponse.Builder resultItems(Collection<QueryResultItem> resultItems)
The results of the search.
resultItems - The results of the search.QueryResponse.Builder resultItems(QueryResultItem... resultItems)
The results of the search.
resultItems - The results of the search.QueryResponse.Builder resultItems(Consumer<QueryResultItem.Builder>... resultItems)
The results of the search.
This is a convenience that creates an instance of theList.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 #resultItems(List) .resultItems - a consumer that will call methods on List.Builder #resultItems(List) QueryResponse.Builder facetResults(Collection<FacetResult> facetResults)
Contains the facet results. A FacetResult contains the counts for each attribute key that was
specified in the Facets input parameter.
facetResults - Contains the facet results. A FacetResult contains the counts for each attribute key that
was specified in the Facets input parameter.QueryResponse.Builder facetResults(FacetResult... facetResults)
Contains the facet results. A FacetResult contains the counts for each attribute key that was
specified in the Facets input parameter.
facetResults - Contains the facet results. A FacetResult contains the counts for each attribute key that
was specified in the Facets input parameter.QueryResponse.Builder facetResults(Consumer<FacetResult.Builder>... facetResults)
Contains the facet results. A FacetResult contains the counts for each attribute key that was
specified in the Facets input parameter.
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 #facetResults(List) .facetResults - a consumer that will call methods on List.Builder #facetResults(List) QueryResponse.Builder totalNumberOfResults(Integer totalNumberOfResults)
The total number of items found by the search; however, you can only retrieve up to 100 items. For example, if the search found 192 items, you can only retrieve the first 100 of the items.
totalNumberOfResults - The total number of items found by the search; however, you can only retrieve up to 100 items. For
example, if the search found 192 items, you can only retrieve the first 100 of the items.Copyright © 2021. All rights reserved.