CopyableBuilder<SuggestModel.Builder,SuggestModel>
, SdkBuilder<SuggestModel.Builder,SuggestModel>
public static interface SuggestModel.Builder extends CopyableBuilder<SuggestModel.Builder,SuggestModel>
Modifier and Type | Method | 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(SuggestionMatch... suggestions) |
The documents that match the query string.
|
copy
apply, build
SuggestModel.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.
NOTE: This method appends the values to the existing list (if any). Use
#setSuggestions(java.util.Collection)
or #withSuggestions(java.util.Collection)
if you want
to override the existing values.
suggestions
- The documents that match the query string.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.