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) IfLabelrepresents an object,Instancescontains the bounding boxes for each instance of the detected object.instances(Consumer<Instance.Builder>... instances) IfLabelrepresents an object,Instancescontains the bounding boxes for each instance of the detected object.IfLabelrepresents an object,Instancescontains 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
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods 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
Labelrepresents an object,Instancescontains 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- IfLabelrepresents an object,Instancescontains 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
Labelrepresents an object,Instancescontains 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- IfLabelrepresents an object,Instancescontains 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 theLabelrepresents an object,Instancescontains 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.Builderavoiding the need to create one manually viaInstance.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaParent.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaLabelAlias.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaLabelCategory.builder().When the
Consumercompletes,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:
-