public static interface RetrieveResponse.Builder extends KendraResponse.Builder, SdkPojo, CopyableBuilder<RetrieveResponse.Builder,RetrieveResponse>
| Modifier and Type | Method and Description |
|---|---|
RetrieveResponse.Builder |
queryId(String queryId)
The identifier of query used for the search.
|
RetrieveResponse.Builder |
resultItems(Collection<RetrieveResultItem> resultItems)
The results of the retrieved relevant passages for the search.
|
RetrieveResponse.Builder |
resultItems(Consumer<RetrieveResultItem.Builder>... resultItems)
The results of the retrieved relevant passages for the search.
|
RetrieveResponse.Builder |
resultItems(RetrieveResultItem... resultItems)
The results of the retrieved relevant passages for the search.
|
build, responseMetadata, responseMetadatasdkHttpResponse, sdkHttpResponseequalsBySdkFields, sdkFieldscopyapplyMutation, buildRetrieveResponse.Builder queryId(String queryId)
The identifier of query used for the search. You also use QueryId to identify the search when
using the Submitfeedback API.
queryId - The identifier of query used for the search. You also use QueryId to identify the search
when using the Submitfeedback API.RetrieveResponse.Builder resultItems(Collection<RetrieveResultItem> resultItems)
The results of the retrieved relevant passages for the search.
resultItems - The results of the retrieved relevant passages for the search.RetrieveResponse.Builder resultItems(RetrieveResultItem... resultItems)
The results of the retrieved relevant passages for the search.
resultItems - The results of the retrieved relevant passages for the search.RetrieveResponse.Builder resultItems(Consumer<RetrieveResultItem.Builder>... resultItems)
The results of the retrieved relevant passages for the search.
This is a convenience method that creates an instance of theRetrieveResultItem.Builder avoiding the need to create
one manually via RetrieveResultItem.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately
and its result is passed to #resultItems(List.
resultItems - a consumer that will call methods on
RetrieveResultItem.Builder#resultItems(java.util.Collection) Copyright © 2023. All rights reserved.