Interface SuggestModel.Builder
- All Superinterfaces:
- Buildable,- CopyableBuilder<SuggestModel.Builder,,- SuggestModel> - SdkBuilder<SuggestModel.Builder,,- SuggestModel> - SdkPojo
- Enclosing class:
- SuggestModel
@Mutable
@NotThreadSafe
public static interface SuggestModel.Builder
extends SdkPojo, CopyableBuilder<SuggestModel.Builder,SuggestModel> 
- 
Method SummaryModifier 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.CopyableBuildercopyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilderapplyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojoequalsBySdkFields, sdkFieldNameToField, sdkFields
- 
Method Details- 
queryThe 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.
 
- 
foundThe 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.
 
- 
suggestionsThe 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.
 
- 
suggestionsThe 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.
 
- 
suggestionsThe 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 tosuggestions(List<SuggestionMatch>).- Parameters:
- suggestions- a consumer that will call methods on- SuggestionMatch.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
 
-