@Generated(value="software.amazon.awssdk:codegen") public final class Label extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Label.Builder,Label>
Structure containing details about the detected label, including the name, detected instances, parent labels, and level of confidence.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Label.Builder |
| Modifier and Type | Method and Description |
|---|---|
static Label.Builder |
builder() |
Float |
confidence()
Level of confidence.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasInstances()
Returns true if the Instances property was specified by the sender (it may be empty), or false if the sender did
not specify the value (it will be empty).
|
boolean |
hasParents()
Returns true if the Parents property was specified by the sender (it may be empty), or false if the sender did
not specify the value (it will be empty).
|
List<Instance> |
instances()
If
Label represents an object, Instances contains the bounding boxes for each instance
of the detected object. |
String |
name()
The name (label) of the object or scene.
|
List<Parent> |
parents()
The parent labels for a label.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Label.Builder> |
serializableBuilderClass() |
Label.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic String name()
The name (label) of the object or scene.
public Float confidence()
Level of confidence.
public boolean hasInstances()
public List<Instance> 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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasInstances() to see if a value was sent in this field.
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.public boolean hasParents()
public List<Parent> parents()
The parent labels for a label. The response includes all ancestor labels.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasParents() to see if a value was sent in this field.
public Label.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Label.Builder,Label>public static Label.Builder builder()
public static Class<? extends Label.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2020. All rights reserved.