Interface Suggestion.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Suggestion.Builder,Suggestion>,SdkBuilder<Suggestion.Builder,Suggestion>,SdkPojo
- Enclosing class:
- Suggestion
public static interface Suggestion.Builder extends SdkPojo, CopyableBuilder<Suggestion.Builder,Suggestion>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Suggestion.Builderid(String id)The UUID (universally unique identifier) of a single query suggestion.Suggestion.BuildersourceDocuments(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.BuildersourceDocuments(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.BuildersourceDocuments(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.Buildervalue(Consumer<SuggestionValue.Builder> value)The value for the UUID (universally unique identifier) of a single query suggestion.Suggestion.Buildervalue(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 Detail
-
id
Suggestion.Builder id(String 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
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.
- 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
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.Builderavoiding the need to create one manually viaSuggestionValue.builder().When the
Consumercompletes,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:
value(SuggestionValue)
-
sourceDocuments
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.
- 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
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.
- 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
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.Builderavoiding the need to create one manually viaSourceDocument.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#sourceDocuments(List.) - 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:
#sourceDocuments(java.util.Collection)
-
-