public static interface TextWithHighlights.Builder extends SdkPojo, CopyableBuilder<TextWithHighlights.Builder,TextWithHighlights>
| Modifier and Type | Method and Description |
|---|---|
TextWithHighlights.Builder |
highlights(Collection<Highlight> highlights)
The beginning and end of the text that should be highlighted.
|
TextWithHighlights.Builder |
highlights(Consumer<Highlight.Builder>... highlights)
The beginning and end of the text that should be highlighted.
|
TextWithHighlights.Builder |
highlights(Highlight... highlights)
The beginning and end of the text that should be highlighted.
|
TextWithHighlights.Builder |
text(String text)
The text to display to the user.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildTextWithHighlights.Builder text(String text)
The text to display to the user.
text - The text to display to the user.TextWithHighlights.Builder highlights(Collection<Highlight> highlights)
The beginning and end of the text that should be highlighted.
highlights - The beginning and end of the text that should be highlighted.TextWithHighlights.Builder highlights(Highlight... highlights)
The beginning and end of the text that should be highlighted.
highlights - The beginning and end of the text that should be highlighted.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.Builder avoiding the need to create one
manually via Highlight.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and its
result is passed to #highlights(List.
highlights - a consumer that will call methods on
Highlight.Builder#highlights(java.util.Collection) Copyright © 2023. All rights reserved.