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 that creates an instance of theList.Builder avoiding the need to
create one manually via List#builder() .
When the Consumer completes, List.Builder#build() is called immediately and its
result is passed to #highlights(List) .highlights - a consumer that will call methods on List.Builder #highlights(List) Copyright © 2020. All rights reserved.