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.BuilderboundingBox(Consumer<BoundingBox.Builder> boundingBox)An axis-aligned coarse representation of the detected item's location on the image.Geometry.BuilderboundingBox(BoundingBox boundingBox)An axis-aligned coarse representation of the detected item's location on the image.Geometry.Builderpolygon(Collection<Point> polygon)Within the bounding box, a fine-grained polygon around the detected item.Geometry.Builderpolygon(Consumer<Point.Builder>... polygon)Within the bounding box, a fine-grained polygon around the detected item.Geometry.Builderpolygon(Point... polygon)Within the bounding box, a fine-grained polygon around the detected 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 detected item's location on the image.
- Parameters:
boundingBox- An axis-aligned coarse representation of the detected item's location on the image.- 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 detected item's location on the image.
This is a convenience method that creates an instance of theBoundingBox.Builderavoiding the need to create one manually viaBoundingBox.builder().When the
Consumercompletes,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 detected item.
- Parameters:
polygon- Within the bounding box, a fine-grained polygon around the detected 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 detected item.
- Parameters:
polygon- Within the bounding box, a fine-grained polygon around the detected 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 detected item.
This is a convenience method that creates an instance of thePoint.Builderavoiding the need to create one manually viaPoint.builder().When the
Consumercompletes,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)
-
-