Interface DocumentText.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<DocumentText.Builder,
,DocumentText> SdkBuilder<DocumentText.Builder,
,DocumentText> SdkPojo
- Enclosing class:
DocumentText
public static interface DocumentText.Builder
extends SdkPojo, CopyableBuilder<DocumentText.Builder,DocumentText>
-
Method Summary
Modifier and TypeMethodDescriptionhighlights
(Collection<Highlight> highlights) Highlights in the document text.highlights
(Consumer<Highlight.Builder>... highlights) Highlights in the document text.highlights
(Highlight... highlights) Highlights in the document text.Text in the document.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 Details
-
highlights
Highlights in the document text.
- Parameters:
highlights
- Highlights in the document text.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
highlights
Highlights in the document text.
- Parameters:
highlights
- Highlights in the document text.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
highlights
Highlights in the document text.
This is a convenience method that creates an instance of theHighlight.Builder
avoiding the need to create one manually viaHighlight.builder()
.When the
Consumer
completes,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:
-
text
Text in the document.
- Parameters:
text
- Text in the document.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-