Interface Suggestion.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Suggestion.Builder,
,Suggestion> SdkBuilder<Suggestion.Builder,
,Suggestion> SdkPojo
- Enclosing class:
Suggestion
-
Method Summary
Modifier and TypeMethodDescriptionThe UUID (universally unique identifier) of a single query suggestion.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
(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.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.value
(SuggestionValue value) The value for the UUID (universally unique identifier) of a single query suggestion.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
-
id
The UUID (universally unique identifier) of a single query suggestion.
- Parameters:
id
- The UUID (universally unique identifier) of a single query suggestion.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
value
The value for the UUID (universally unique identifier) of a single query suggestion.
The value is the text string of a suggestion.
- Parameters:
value
- The value for the UUID (universally unique identifier) of a single query suggestion.The value is the text string of a suggestion.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 viaSuggestionValue.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tovalue(SuggestionValue)
.- Parameters:
value
- a consumer that will call methods onSuggestionValue.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 viaSourceDocument.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosourceDocuments(List<SourceDocument>)
.- Parameters:
sourceDocuments
- a consumer that will call methods onSourceDocument.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-