Interface Block.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Block.Builder,
,Block> SdkBuilder<Block.Builder,
,Block> SdkPojo
- Enclosing class:
Block
-
Method Summary
Modifier and TypeMethodDescriptionThe block represents a line of text or one word of text.The block represents a line of text or one word of text.default Block.Builder
geometry
(Consumer<Geometry.Builder> geometry) Co-ordinates of the rectangle or polygon that contains the text.Co-ordinates of the rectangle or polygon that contains the text.Unique identifier for the block.Page number where the block appears.relationships
(Collection<RelationshipsListItem> relationships) A list of child blocks of the current block.relationships
(Consumer<RelationshipsListItem.Builder>... relationships) A list of child blocks of the current block.relationships
(RelationshipsListItem... relationships) A list of child blocks of the current block.The word or line of text extracted from the block.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
-
id
Unique identifier for the block.
- Parameters:
id
- Unique identifier for the block.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
blockType
The block represents a line of text or one word of text.
-
WORD - A word that's detected on a document page. A word is one or more ISO basic Latin script characters that aren't separated by spaces.
-
LINE - A string of tab-delimited, contiguous words that are detected on a document page
- Parameters:
blockType
- The block represents a line of text or one word of text.-
WORD - A word that's detected on a document page. A word is one or more ISO basic Latin script characters that aren't separated by spaces.
-
LINE - A string of tab-delimited, contiguous words that are detected on a document page
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
blockType
The block represents a line of text or one word of text.
-
WORD - A word that's detected on a document page. A word is one or more ISO basic Latin script characters that aren't separated by spaces.
-
LINE - A string of tab-delimited, contiguous words that are detected on a document page
- Parameters:
blockType
- The block represents a line of text or one word of text.-
WORD - A word that's detected on a document page. A word is one or more ISO basic Latin script characters that aren't separated by spaces.
-
LINE - A string of tab-delimited, contiguous words that are detected on a document page
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
text
The word or line of text extracted from the block.
- Parameters:
text
- The word or line of text extracted from the block.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
page
Page number where the block appears.
- Parameters:
page
- Page number where the block appears.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
geometry
Co-ordinates of the rectangle or polygon that contains the text.
- Parameters:
geometry
- Co-ordinates of the rectangle or polygon that contains the text.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
geometry
Co-ordinates of the rectangle or polygon that contains the text.
This is a convenience method that creates an instance of theGeometry.Builder
avoiding the need to create one manually viaGeometry.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed togeometry(Geometry)
.- Parameters:
geometry
- a consumer that will call methods onGeometry.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
relationships
A list of child blocks of the current block. For example, a LINE object has child blocks for each WORD block that's part of the line of text.
- Parameters:
relationships
- A list of child blocks of the current block. For example, a LINE object has child blocks for each WORD block that's part of the line of text.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
relationships
A list of child blocks of the current block. For example, a LINE object has child blocks for each WORD block that's part of the line of text.
- Parameters:
relationships
- A list of child blocks of the current block. For example, a LINE object has child blocks for each WORD block that's part of the line of text.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
relationships
A list of child blocks of the current block. For example, a LINE object has child blocks for each WORD block that's part of the line of text.
This is a convenience method that creates an instance of theRelationshipsListItem.Builder
avoiding the need to create one manually viaRelationshipsListItem.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torelationships(List<RelationshipsListItem>)
.- Parameters:
relationships
- a consumer that will call methods onRelationshipsListItem.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-