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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CustomLabel.Builderconfidence(Float confidence)The confidence that the model has in the detection of the custom label.default CustomLabel.Buildergeometry(Consumer<Geometry.Builder> geometry)The location of the detected object on the image that corresponds to the custom label.CustomLabel.Buildergeometry(Geometry geometry)The location of the detected object on the image that corresponds to the custom label.CustomLabel.Buildername(String name)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 Detail
-
name
CustomLabel.Builder name(String 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
CustomLabel.Builder confidence(Float 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
CustomLabel.Builder geometry(Geometry 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
default CustomLabel.Builder geometry(Consumer<Geometry.Builder> 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.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)
-
-