Interface Geometry.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<Geometry.Builder,Geometry>
,SdkBuilder<Geometry.Builder,Geometry>
,SdkPojo
- Enclosing class:
- Geometry
public static interface Geometry.Builder extends SdkPojo, CopyableBuilder<Geometry.Builder,Geometry>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Geometry.Builder
boundingBox(Consumer<BoundingBox.Builder> boundingBox)
An axis-aligned coarse representation of the location of the recognized item on the document page.Geometry.Builder
boundingBox(BoundingBox boundingBox)
An axis-aligned coarse representation of the location of the recognized item on the document page.Geometry.Builder
polygon(Collection<Point> polygon)
Within the bounding box, a fine-grained polygon around the recognized item.Geometry.Builder
polygon(Consumer<Point.Builder>... polygon)
Within the bounding box, a fine-grained polygon around the recognized item.Geometry.Builder
polygon(Point... polygon)
Within the bounding box, a fine-grained polygon around the recognized item.-
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
-
boundingBox
Geometry.Builder boundingBox(BoundingBox boundingBox)
An axis-aligned coarse representation of the location of the recognized item on the document page.
- Parameters:
boundingBox
- An axis-aligned coarse representation of the location of the recognized item on the document page.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
boundingBox
default Geometry.Builder boundingBox(Consumer<BoundingBox.Builder> boundingBox)
An axis-aligned coarse representation of the location of the recognized item on the document page.
This is a convenience method that creates an instance of theBoundingBox.Builder
avoiding the need to create one manually viaBoundingBox.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toboundingBox(BoundingBox)
.- Parameters:
boundingBox
- a consumer that will call methods onBoundingBox.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
boundingBox(BoundingBox)
-
polygon
Geometry.Builder polygon(Collection<Point> polygon)
Within the bounding box, a fine-grained polygon around the recognized item.
- Parameters:
polygon
- Within the bounding box, a fine-grained polygon around the recognized item.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
polygon
Geometry.Builder polygon(Point... polygon)
Within the bounding box, a fine-grained polygon around the recognized item.
- Parameters:
polygon
- Within the bounding box, a fine-grained polygon around the recognized item.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
polygon
Geometry.Builder polygon(Consumer<Point.Builder>... polygon)
Within the bounding box, a fine-grained polygon around the recognized item.
This is a convenience method that creates an instance of thePoint.Builder
avoiding the need to create one manually viaPoint.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#polygon(List
.) - Parameters:
polygon
- a consumer that will call methods onPoint.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#polygon(java.util.Collection
)
-
-