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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DocumentText.Builderhighlights(Collection<Highlight> highlights)Highlights in the document text.DocumentText.Builderhighlights(Consumer<Highlight.Builder>... highlights)Highlights in the document text.DocumentText.Builderhighlights(Highlight... highlights)Highlights in the document text.DocumentText.Buildertext(String 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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
highlights
DocumentText.Builder highlights(Collection<Highlight> 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
DocumentText.Builder highlights(Highlight... 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
DocumentText.Builder highlights(Consumer<Highlight.Builder>... highlights)
Highlights in the document text.
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)
-
text
DocumentText.Builder text(String 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.
-
-