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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SuggestModel.Builderfound(Long found)The number of documents that were found to match the query string.SuggestModel.Builderquery(String query)The query string specified in the suggest request.SuggestModel.Buildersuggestions(Collection<SuggestionMatch> suggestions)The documents that match the query string.SuggestModel.Buildersuggestions(Consumer<SuggestionMatch.Builder>... suggestions)The documents that match the query string.SuggestModel.Buildersuggestions(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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
query
SuggestModel.Builder query(String 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
SuggestModel.Builder found(Long 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
SuggestModel.Builder suggestions(Collection<SuggestionMatch> 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
SuggestModel.Builder suggestions(SuggestionMatch... 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
SuggestModel.Builder suggestions(Consumer<SuggestionMatch.Builder>... suggestions)
The documents that match the query string.
This is a convenience method that creates an instance of theSuggestionMatch.Builderavoiding the need to create one manually viaSuggestionMatch.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#suggestions(List.) - 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:
#suggestions(java.util.Collection)
-
-