Interface SuggestModel.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<SuggestModel.Builder,
,SuggestModel> SdkBuilder<SuggestModel.Builder,
,SuggestModel> SdkPojo
- Enclosing class:
SuggestModel
public static interface SuggestModel.Builder
extends SdkPojo, CopyableBuilder<SuggestModel.Builder,SuggestModel>
-
Method Summary
Modifier and TypeMethodDescriptionThe number of documents that were found to match the query string.The query string specified in the suggest request.suggestions
(Collection<SuggestionMatch> suggestions) The documents that match the query string.suggestions
(Consumer<SuggestionMatch.Builder>... suggestions) The documents that match the query string.suggestions
(SuggestionMatch... suggestions) The documents that match the query string.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
query
The query string specified in the suggest request.
- Parameters:
query
- The query string specified in the suggest request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
found
The number of documents that were found to match the query string.
- Parameters:
found
- The number of documents that were found to match the query string.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
suggestions
The documents that match the query string.
- Parameters:
suggestions
- The documents that match the query string.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
suggestions
The documents that match the query string.
- Parameters:
suggestions
- The documents that match the query string.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
suggestions
The documents that match the query string.
This is a convenience method that creates an instance of theSuggestionMatch.Builder
avoiding the need to create one manually viaSuggestionMatch.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosuggestions(List<SuggestionMatch>)
.- Parameters:
suggestions
- a consumer that will call methods onSuggestionMatch.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-