Interface Label.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Label.Builder,
,Label> SdkBuilder<Label.Builder,
,Label> SdkPojo
- Enclosing class:
Label
-
Method Summary
Modifier and TypeMethodDescriptionaliases
(Collection<LabelAlias> aliases) A list of potential aliases for a given label.aliases
(Consumer<LabelAlias.Builder>... aliases) A list of potential aliases for a given label.aliases
(LabelAlias... aliases) A list of potential aliases for a given label.categories
(Collection<LabelCategory> categories) A list of the categories associated with a given label.categories
(Consumer<LabelCategory.Builder>... categories) A list of the categories associated with a given label.categories
(LabelCategory... categories) A list of the categories associated with a given label.confidence
(Float confidence) Level of confidence.instances
(Collection<Instance> instances) IfLabel
represents an object,Instances
contains the bounding boxes for each instance of the detected object.instances
(Consumer<Instance.Builder>... instances) IfLabel
represents an object,Instances
contains the bounding boxes for each instance of the detected object.IfLabel
represents an object,Instances
contains the bounding boxes for each instance of the detected object.The name (label) of the object or scene.parents
(Collection<Parent> parents) The parent labels for a label.parents
(Consumer<Parent.Builder>... parents) The parent labels for a label.The parent labels for a 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 (label) of the object or scene.
- Parameters:
name
- The name (label) of the object or scene.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
confidence
Level of confidence.
- Parameters:
confidence
- Level of confidence.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instances
If
Label
represents an object,Instances
contains the bounding boxes for each instance of the detected object. Bounding boxes are returned for common object labels such as people, cars, furniture, apparel or pets.- Parameters:
instances
- IfLabel
represents an object,Instances
contains the bounding boxes for each instance of the detected object. Bounding boxes are returned for common object labels such as people, cars, furniture, apparel or pets.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instances
If
Label
represents an object,Instances
contains the bounding boxes for each instance of the detected object. Bounding boxes are returned for common object labels such as people, cars, furniture, apparel or pets.- Parameters:
instances
- IfLabel
represents an object,Instances
contains the bounding boxes for each instance of the detected object. Bounding boxes are returned for common object labels such as people, cars, furniture, apparel or pets.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instances
If
This is a convenience method that creates an instance of theLabel
represents an object,Instances
contains the bounding boxes for each instance of the detected object. Bounding boxes are returned for common object labels such as people, cars, furniture, apparel or pets.Instance.Builder
avoiding the need to create one manually viaInstance.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toinstances(List<Instance>)
.- Parameters:
instances
- a consumer that will call methods onInstance.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
parents
The parent labels for a label. The response includes all ancestor labels.
- Parameters:
parents
- The parent labels for a label. The response includes all ancestor labels.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
parents
The parent labels for a label. The response includes all ancestor labels.
- Parameters:
parents
- The parent labels for a label. The response includes all ancestor labels.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
parents
The parent labels for a label. The response includes all ancestor labels.
This is a convenience method that creates an instance of theParent.Builder
avoiding the need to create one manually viaParent.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toparents(List<Parent>)
.- Parameters:
parents
- a consumer that will call methods onParent.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
aliases
A list of potential aliases for a given label.
- Parameters:
aliases
- A list of potential aliases for a given label.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
aliases
A list of potential aliases for a given label.
- Parameters:
aliases
- A list of potential aliases for a given label.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
aliases
A list of potential aliases for a given label.
This is a convenience method that creates an instance of theLabelAlias.Builder
avoiding the need to create one manually viaLabelAlias.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toaliases(List<LabelAlias>)
.- Parameters:
aliases
- a consumer that will call methods onLabelAlias.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
categories
A list of the categories associated with a given label.
- Parameters:
categories
- A list of the categories associated with a given label.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
categories
A list of the categories associated with a given label.
- Parameters:
categories
- A list of the categories associated with a given label.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
categories
A list of the categories associated with a given label.
This is a convenience method that creates an instance of theLabelCategory.Builder
avoiding the need to create one manually viaLabelCategory.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocategories(List<LabelCategory>)
.- Parameters:
categories
- a consumer that will call methods onLabelCategory.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-