Interface Block.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Block.Builder,Block>,SdkBuilder<Block.Builder,Block>,SdkPojo
- Enclosing class:
- Block
public static interface Block.Builder extends SdkPojo, CopyableBuilder<Block.Builder,Block>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Block.BuilderblockType(String blockType)The block represents a line of text or one word of text.Block.BuilderblockType(BlockType blockType)The block represents a line of text or one word of text.default Block.Buildergeometry(Consumer<Geometry.Builder> geometry)Co-ordinates of the rectangle or polygon that contains the text.Block.Buildergeometry(Geometry geometry)Co-ordinates of the rectangle or polygon that contains the text.Block.Builderid(String id)Unique identifier for the block.Block.Builderpage(Integer page)Page number where the block appears.Block.Builderrelationships(Collection<RelationshipsListItem> relationships)A list of child blocks of the current block.Block.Builderrelationships(Consumer<RelationshipsListItem.Builder>... relationships)A list of child blocks of the current block.Block.Builderrelationships(RelationshipsListItem... relationships)A list of child blocks of the current block.Block.Buildertext(String text)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 Detail
-
id
Block.Builder id(String 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
Block.Builder blockType(String 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,BlockType
-
-
blockType
Block.Builder blockType(BlockType 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,BlockType
-
-
text
Block.Builder text(String 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
Block.Builder page(Integer 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
Block.Builder geometry(Geometry 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
default Block.Builder geometry(Consumer<Geometry.Builder> geometry)
Co-ordinates of the rectangle or polygon that contains the text.
This is a convenience method that creates an instance of theGeometry.Builderavoiding the need to create one manually viaGeometry.builder().When the
Consumercompletes,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:
geometry(Geometry)
-
relationships
Block.Builder relationships(Collection<RelationshipsListItem> 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
Block.Builder relationships(RelationshipsListItem... 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
Block.Builder relationships(Consumer<RelationshipsListItem.Builder>... 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.Builderavoiding the need to create one manually viaRelationshipsListItem.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#relationships(List.) - 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:
#relationships(java.util.Collection)
-
-