public static interface SuggestModel.Builder extends CopyableBuilder<SuggestModel.Builder,SuggestModel>
| Modifier and Type | Method and Description |
|---|---|
SuggestModel.Builder |
found(Long found)
The number of documents that were found to match the query string.
|
SuggestModel.Builder |
query(String query)
The query string specified in the suggest request.
|
SuggestModel.Builder |
suggestions(Collection<SuggestionMatch> suggestions)
The documents that match the query string.
|
SuggestModel.Builder |
suggestions(Consumer<SuggestionMatch.Builder>... suggestions)
The documents that match the query string.
|
SuggestModel.Builder |
suggestions(SuggestionMatch... suggestions)
The documents that match the query string.
|
copyapply, buildSuggestModel.Builder query(String query)
The query string specified in the suggest request.
query - The query string specified in the suggest request.SuggestModel.Builder found(Long found)
The number of documents that were found to match the query string.
found - The number of documents that were found to match the query string.SuggestModel.Builder suggestions(Collection<SuggestionMatch> suggestions)
The documents that match the query string.
suggestions - The documents that match the query string.SuggestModel.Builder suggestions(SuggestionMatch... suggestions)
The documents that match the query string.
suggestions - The documents that match the query string.SuggestModel.Builder suggestions(Consumer<SuggestionMatch.Builder>... suggestions)
The documents that match the query string.
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 #suggestions(List) .suggestions - a consumer that will call methods on List.Builder #suggestions(List) Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.