public static interface Suggestion.Builder extends SdkPojo, CopyableBuilder<Suggestion.Builder,Suggestion>
| Modifier and Type | Method and Description |
|---|---|
Suggestion.Builder |
id(String id)
The UUID (universally unique identifier) of a single query suggestion.
|
Suggestion.Builder |
sourceDocuments(Collection<SourceDocument> sourceDocuments)
The list of document IDs and their fields/attributes that are used for a single query suggestion, if document
fields set to use for query suggestions.
|
Suggestion.Builder |
sourceDocuments(Consumer<SourceDocument.Builder>... sourceDocuments)
The list of document IDs and their fields/attributes that are used for a single query suggestion, if document
fields set to use for query suggestions.
|
Suggestion.Builder |
sourceDocuments(SourceDocument... sourceDocuments)
The list of document IDs and their fields/attributes that are used for a single query suggestion, if document
fields set to use for query suggestions.
|
default Suggestion.Builder |
value(Consumer<SuggestionValue.Builder> value)
The value for the UUID (universally unique identifier) of a single query suggestion.
|
Suggestion.Builder |
value(SuggestionValue value)
The value for the UUID (universally unique identifier) of a single query suggestion.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildSuggestion.Builder id(String id)
The UUID (universally unique identifier) of a single query suggestion.
id - The UUID (universally unique identifier) of a single query suggestion.Suggestion.Builder value(SuggestionValue value)
The value for the UUID (universally unique identifier) of a single query suggestion.
The value is the text string of a suggestion.
value - The value for the UUID (universally unique identifier) of a single query suggestion.
The value is the text string of a suggestion.
default Suggestion.Builder value(Consumer<SuggestionValue.Builder> value)
The value for the UUID (universally unique identifier) of a single query suggestion.
The value is the text string of a suggestion.
This is a convenience method that creates an instance of theSuggestionValue.Builder avoiding the
need to create one manually via SuggestionValue.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to value(SuggestionValue).
value - a consumer that will call methods on SuggestionValue.Buildervalue(SuggestionValue)Suggestion.Builder sourceDocuments(Collection<SourceDocument> sourceDocuments)
The list of document IDs and their fields/attributes that are used for a single query suggestion, if document fields set to use for query suggestions.
sourceDocuments - The list of document IDs and their fields/attributes that are used for a single query suggestion, if
document fields set to use for query suggestions.Suggestion.Builder sourceDocuments(SourceDocument... sourceDocuments)
The list of document IDs and their fields/attributes that are used for a single query suggestion, if document fields set to use for query suggestions.
sourceDocuments - The list of document IDs and their fields/attributes that are used for a single query suggestion, if
document fields set to use for query suggestions.Suggestion.Builder sourceDocuments(Consumer<SourceDocument.Builder>... sourceDocuments)
The list of document IDs and their fields/attributes that are used for a single query suggestion, if document fields set to use for query suggestions.
This is a convenience method that creates an instance of theSourceDocument.Builder avoiding the need to create one
manually via SourceDocument.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and
its result is passed to #sourceDocuments(List.
sourceDocuments - a consumer that will call methods on
SourceDocument.Builder#sourceDocuments(java.util.Collection) Copyright © 2023. All rights reserved.