Interface Label.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Label.Builder,Label>,SdkBuilder<Label.Builder,Label>,SdkPojo
- Enclosing class:
- Label
public static interface Label.Builder extends SdkPojo, CopyableBuilder<Label.Builder,Label>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Label.Builderaliases(Collection<LabelAlias> aliases)A list of potential aliases for a given label.Label.Builderaliases(Consumer<LabelAlias.Builder>... aliases)A list of potential aliases for a given label.Label.Builderaliases(LabelAlias... aliases)A list of potential aliases for a given label.Label.Buildercategories(Collection<LabelCategory> categories)A list of the categories associated with a given label.Label.Buildercategories(Consumer<LabelCategory.Builder>... categories)A list of the categories associated with a given label.Label.Buildercategories(LabelCategory... categories)A list of the categories associated with a given label.Label.Builderconfidence(Float confidence)Level of confidence.Label.Builderinstances(Collection<Instance> instances)IfLabelrepresents an object,Instancescontains the bounding boxes for each instance of the detected object.Label.Builderinstances(Consumer<Instance.Builder>... instances)IfLabelrepresents an object,Instancescontains the bounding boxes for each instance of the detected object.Label.Builderinstances(Instance... instances)IfLabelrepresents an object,Instancescontains the bounding boxes for each instance of the detected object.Label.Buildername(String name)The name (label) of the object or scene.Label.Builderparents(Collection<Parent> parents)The parent labels for a label.Label.Builderparents(Consumer<Parent.Builder>... parents)The parent labels for a label.Label.Builderparents(Parent... parents)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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
name
Label.Builder name(String 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
Label.Builder confidence(Float 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
Label.Builder instances(Collection<Instance> 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
Label.Builder instances(Instance... 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
Label.Builder instances(Consumer<Instance.Builder>... 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 to#instances(List.) - 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:
#instances(java.util.Collection)
-
parents
Label.Builder parents(Collection<Parent> 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
Label.Builder parents(Parent... 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
Label.Builder parents(Consumer<Parent.Builder>... 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 to#parents(List.) - 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:
#parents(java.util.Collection)
-
aliases
Label.Builder aliases(Collection<LabelAlias> 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
Label.Builder aliases(LabelAlias... 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
Label.Builder aliases(Consumer<LabelAlias.Builder>... 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 to#aliases(List.) - 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:
#aliases(java.util.Collection)
-
categories
Label.Builder categories(Collection<LabelCategory> 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
Label.Builder categories(LabelCategory... 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
Label.Builder categories(Consumer<LabelCategory.Builder>... 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 to#categories(List.) - 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:
#categories(java.util.Collection)
-
-