Interface QueryResponse.Builder
- All Superinterfaces:
- AwsResponse.Builder,- Buildable,- CopyableBuilder<QueryResponse.Builder,,- QueryResponse> - KendraResponse.Builder,- SdkBuilder<QueryResponse.Builder,,- QueryResponse> - SdkPojo,- SdkResponse.Builder
- Enclosing class:
- QueryResponse
- 
Method SummaryModifier and TypeMethodDescriptionfacetResults(Collection<FacetResult> facetResults) Contains the facet results.facetResults(Consumer<FacetResult.Builder>... facetResults) Contains the facet results.facetResults(FacetResult... facetResults) Contains the facet results.featuredResultsItems(Collection<FeaturedResultsItem> featuredResultsItems) The list of featured result items.featuredResultsItems(Consumer<FeaturedResultsItem.Builder>... featuredResultsItems) The list of featured result items.featuredResultsItems(FeaturedResultsItem... featuredResultsItems) The list of featured result items.The identifier for the search.resultItems(Collection<QueryResultItem> resultItems) The results of the search.resultItems(Consumer<QueryResultItem.Builder>... resultItems) The results of the search.resultItems(QueryResultItem... resultItems) The results of the search.spellCorrectedQueries(Collection<SpellCorrectedQuery> spellCorrectedQueries) A list of information related to suggested spell corrections for a query.spellCorrectedQueries(Consumer<SpellCorrectedQuery.Builder>... spellCorrectedQueries) A list of information related to suggested spell corrections for a query.spellCorrectedQueries(SpellCorrectedQuery... spellCorrectedQueries) A list of information related to suggested spell corrections for a query.totalNumberOfResults(Integer totalNumberOfResults) The total number of items found by the search.warnings(Collection<Warning> warnings) A list of warning codes and their messages on problems with your query.warnings(Consumer<Warning.Builder>... warnings) A list of warning codes and their messages on problems with your query.A list of warning codes and their messages on problems with your query.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuildercopyMethods inherited from interface software.amazon.awssdk.services.kendra.model.KendraResponse.Builderbuild, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilderapplyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojoequalsBySdkFields, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.BuildersdkHttpResponse, sdkHttpResponse
- 
Method Details- 
queryIdThe identifier for the search. You also use QueryIdto identify the search when using the SubmitFeedback API.- Parameters:
- queryId- The identifier for the search. You also use- QueryIdto identify the search when using the SubmitFeedback API.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
resultItemsThe results of the search. - Parameters:
- resultItems- The results of the search.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
resultItemsThe results of the search. - Parameters:
- resultItems- The results of the search.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
resultItemsThe results of the search. This is a convenience method that creates an instance of theQueryResultItem.Builderavoiding the need to create one manually viaQueryResultItem.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toresultItems(List<QueryResultItem>).- Parameters:
- resultItems- a consumer that will call methods on- QueryResultItem.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
facetResultsContains the facet results. A FacetResultcontains the counts for each field/attribute key that was specified in theFacetsinput parameter.- Parameters:
- facetResults- Contains the facet results. A- FacetResultcontains the counts for each field/attribute key that was specified in the- Facetsinput parameter.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
facetResultsContains the facet results. A FacetResultcontains the counts for each field/attribute key that was specified in theFacetsinput parameter.- Parameters:
- facetResults- Contains the facet results. A- FacetResultcontains the counts for each field/attribute key that was specified in the- Facetsinput parameter.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
facetResultsContains the facet results. A This is a convenience method that creates an instance of theFacetResultcontains the counts for each field/attribute key that was specified in theFacetsinput parameter.FacetResult.Builderavoiding the need to create one manually viaFacetResult.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofacetResults(List<FacetResult>).- Parameters:
- facetResults- a consumer that will call methods on- FacetResult.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
totalNumberOfResultsThe 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. - Parameters:
- 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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
warningsA list of warning codes and their messages on problems with your query. Amazon Kendra currently only supports one type of warning, which is a warning on invalid syntax used in the query. For examples of invalid query syntax, see Searching with advanced query syntax. - Parameters:
- warnings- A list of warning codes and their messages on problems with your query.- Amazon Kendra currently only supports one type of warning, which is a warning on invalid syntax used in the query. For examples of invalid query syntax, see Searching with advanced query syntax. 
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
warningsA list of warning codes and their messages on problems with your query. Amazon Kendra currently only supports one type of warning, which is a warning on invalid syntax used in the query. For examples of invalid query syntax, see Searching with advanced query syntax. - Parameters:
- warnings- A list of warning codes and their messages on problems with your query.- Amazon Kendra currently only supports one type of warning, which is a warning on invalid syntax used in the query. For examples of invalid query syntax, see Searching with advanced query syntax. 
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
warningsA list of warning codes and their messages on problems with your query. Amazon Kendra currently only supports one type of warning, which is a warning on invalid syntax used in the query. For examples of invalid query syntax, see Searching with advanced query syntax. This is a convenience method that creates an instance of theWarning.Builderavoiding the need to create one manually viaWarning.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed towarnings(List<Warning>).- Parameters:
- warnings- a consumer that will call methods on- Warning.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
spellCorrectedQueriesA list of information related to suggested spell corrections for a query. - Parameters:
- spellCorrectedQueries- A list of information related to suggested spell corrections for a query.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
spellCorrectedQueriesA list of information related to suggested spell corrections for a query. - Parameters:
- spellCorrectedQueries- A list of information related to suggested spell corrections for a query.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
spellCorrectedQueriesQueryResponse.Builder spellCorrectedQueries(Consumer<SpellCorrectedQuery.Builder>... spellCorrectedQueries) A list of information related to suggested spell corrections for a query. This is a convenience method that creates an instance of theSpellCorrectedQuery.Builderavoiding the need to create one manually viaSpellCorrectedQuery.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tospellCorrectedQueries(List<SpellCorrectedQuery>).- Parameters:
- spellCorrectedQueries- a consumer that will call methods on- SpellCorrectedQuery.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
featuredResultsItemsThe list of featured result items. Featured results are displayed at the top of the search results page, placed above all other results for certain queries. If there's an exact match of a query, then certain documents are featured in the search results. - Parameters:
- featuredResultsItems- The list of featured result items. Featured results are displayed at the top of the search results page, placed above all other results for certain queries. If there's an exact match of a query, then certain documents are featured in the search results.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
featuredResultsItemsThe list of featured result items. Featured results are displayed at the top of the search results page, placed above all other results for certain queries. If there's an exact match of a query, then certain documents are featured in the search results. - Parameters:
- featuredResultsItems- The list of featured result items. Featured results are displayed at the top of the search results page, placed above all other results for certain queries. If there's an exact match of a query, then certain documents are featured in the search results.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
featuredResultsItemsQueryResponse.Builder featuredResultsItems(Consumer<FeaturedResultsItem.Builder>... featuredResultsItems) The list of featured result items. Featured results are displayed at the top of the search results page, placed above all other results for certain queries. If there's an exact match of a query, then certain documents are featured in the search results. This is a convenience method that creates an instance of theFeaturedResultsItem.Builderavoiding the need to create one manually viaFeaturedResultsItem.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofeaturedResultsItems(List<FeaturedResultsItem>).- Parameters:
- featuredResultsItems- a consumer that will call methods on- FeaturedResultsItem.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
 
-