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
Modifier and TypeMethodDescriptionhighlights(Collection<Highlight> highlights) The beginning and end of the text that should be highlighted.highlights(Consumer<Highlight.Builder>... highlights) The beginning and end of the text that should be highlighted.highlights(Highlight... highlights) The beginning and end of the text that should be highlighted.The text to display to the user.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 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
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
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
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 tohighlights(List<Highlight>).- 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:
-