Interface SuggestionValue.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<SuggestionValue.Builder,
,SuggestionValue> SdkBuilder<SuggestionValue.Builder,
,SuggestionValue> SdkPojo
- Enclosing class:
SuggestionValue
public static interface SuggestionValue.Builder
extends SdkPojo, CopyableBuilder<SuggestionValue.Builder,SuggestionValue>
-
Method Summary
Modifier and TypeMethodDescriptiondefault SuggestionValue.Builder
TheSuggestionTextWithHighlights
structure that contains the query suggestion text and highlights.TheSuggestionTextWithHighlights
structure that contains the query suggestion text and highlights.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
-
text
The
SuggestionTextWithHighlights
structure that contains the query suggestion text and highlights.- Parameters:
text
- TheSuggestionTextWithHighlights
structure that contains the query suggestion text and highlights.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
text
The
This is a convenience method that creates an instance of theSuggestionTextWithHighlights
structure that contains the query suggestion text and highlights.SuggestionTextWithHighlights.Builder
avoiding the need to create one manually viaSuggestionTextWithHighlights.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totext(SuggestionTextWithHighlights)
.- Parameters:
text
- a consumer that will call methods onSuggestionTextWithHighlights.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-