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.BuilderTheSuggestionTextWithHighlightsstructure that contains the query suggestion text and highlights.TheSuggestionTextWithHighlightsstructure that contains the query suggestion text and highlights.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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
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:
-