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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default SuggestionValue.Buildertext(Consumer<SuggestionTextWithHighlights.Builder> text)TheSuggestionTextWithHighlightsstructure that contains the query suggestion text and highlights.SuggestionValue.Buildertext(SuggestionTextWithHighlights text)TheSuggestionTextWithHighlightsstructure 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 Detail
-
text
SuggestionValue.Builder text(SuggestionTextWithHighlights text)
The
SuggestionTextWithHighlightsstructure that contains the query suggestion text and highlights.- Parameters:
text- TheSuggestionTextWithHighlightsstructure that contains the query suggestion text and highlights.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
text
default SuggestionValue.Builder text(Consumer<SuggestionTextWithHighlights.Builder> text)
The
This is a convenience method that creates an instance of theSuggestionTextWithHighlightsstructure that contains the query suggestion text and highlights.SuggestionTextWithHighlights.Builderavoiding the need to create one manually viaSuggestionTextWithHighlights.builder().When the
Consumercompletes,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:
text(SuggestionTextWithHighlights)
-
-