Interface CustomLabel.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<CustomLabel.Builder,
,CustomLabel> SdkBuilder<CustomLabel.Builder,
,CustomLabel> SdkPojo
- Enclosing class:
CustomLabel
public static interface CustomLabel.Builder
extends SdkPojo, CopyableBuilder<CustomLabel.Builder,CustomLabel>
-
Method Summary
Modifier and TypeMethodDescriptionconfidence
(Float confidence) The confidence that the model has in the detection of the custom label.default CustomLabel.Builder
geometry
(Consumer<Geometry.Builder> geometry) The location of the detected object on the image that corresponds to the custom label.The location of the detected object on the image that corresponds to the custom label.The name of the custom label.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
-
name
The name of the custom label.
- Parameters:
name
- The name of the custom label.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
confidence
The confidence that the model has in the detection of the custom label. The range is 0-100. A higher value indicates a higher confidence.
- Parameters:
confidence
- The confidence that the model has in the detection of the custom label. The range is 0-100. A higher value indicates a higher confidence.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
geometry
The location of the detected object on the image that corresponds to the custom label. Includes an axis aligned coarse bounding box surrounding the object and a finer grain polygon for more accurate spatial information.
- Parameters:
geometry
- The location of the detected object on the image that corresponds to the custom label. Includes an axis aligned coarse bounding box surrounding the object and a finer grain polygon for more accurate spatial information.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
geometry
The location of the detected object on the image that corresponds to the custom label. Includes an axis aligned coarse bounding box surrounding the object and a finer grain polygon for more accurate spatial information.
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:
-