Interface TextWithHighlights.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<TextWithHighlights.Builder,TextWithHighlights>,SdkBuilder<TextWithHighlights.Builder,TextWithHighlights>,SdkPojo
- Enclosing class:
- TextWithHighlights
public static interface TextWithHighlights.Builder extends SdkPojo, CopyableBuilder<TextWithHighlights.Builder,TextWithHighlights>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TextWithHighlights.Builderhighlights(Collection<Highlight> highlights)The beginning and end of the text that should be highlighted.TextWithHighlights.Builderhighlights(Consumer<Highlight.Builder>... highlights)The beginning and end of the text that should be highlighted.TextWithHighlights.Builderhighlights(Highlight... highlights)The beginning and end of the text that should be highlighted.TextWithHighlights.Buildertext(String text)The text to display to the user.-
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
TextWithHighlights.Builder text(String text)
The text to display to the user.
- Parameters:
text- The text to display to the user.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
highlights
TextWithHighlights.Builder highlights(Collection<Highlight> highlights)
The beginning and end of the text that should be highlighted.
- Parameters:
highlights- The beginning and end of the text that should be highlighted.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
highlights
TextWithHighlights.Builder highlights(Highlight... highlights)
The beginning and end of the text that should be highlighted.
- Parameters:
highlights- The beginning and end of the text that should be highlighted.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
highlights
TextWithHighlights.Builder highlights(Consumer<Highlight.Builder>... highlights)
The beginning and end of the text that should be highlighted.
This is a convenience method that creates an instance of theHighlight.Builderavoiding the need to create one manually viaHighlight.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#highlights(List.) - Parameters:
highlights- a consumer that will call methods onHighlight.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#highlights(java.util.Collection)
-
-