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
Modifier and TypeMethodDescriptiondefault Geometry.Builder
boundingBox
(Consumer<BoundingBox.Builder> boundingBox) An axis-aligned coarse representation of the location of the recognized item on the document page.boundingBox
(BoundingBox boundingBox) An axis-aligned coarse representation of the location of the recognized item on the document page.polygon
(Collection<Point> polygon) Within the bounding box, a fine-grained polygon around the recognized item.polygon
(Consumer<Point.Builder>... polygon) Within the bounding box, a fine-grained polygon around the recognized item.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 Details
-
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
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:
-
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
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
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 topolygon(List<Point>)
.- 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:
-