@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 |
|---|---|
List<LabelAlias> |
aliases()
A list of potential aliases for a given label.
|
static Label.Builder |
builder() |
List<LabelCategory> |
categories()
A list of the categories associated with a given label.
|
Float |
confidence()
Level of confidence.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasAliases()
For responses, this returns true if the service returned a value for the Aliases property.
|
boolean |
hasCategories()
For responses, this returns true if the service returned a value for the Categories property.
|
int |
hashCode() |
boolean |
hasInstances()
For responses, this returns true if the service returned a value for the Instances property.
|
boolean |
hasParents()
For responses, this returns true if the service returned a value for the Parents property.
|
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 final String name()
The name (label) of the object or scene.
public final Float confidence()
Level of confidence.
public final boolean hasInstances()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final 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.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasInstances() method.
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 final boolean hasParents()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final 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.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasParents() method.
public final boolean hasAliases()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final List<LabelAlias> aliases()
A list of potential aliases for a given label.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasAliases() method.
public final boolean hasCategories()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final List<LabelCategory> categories()
A list of the categories associated with a given label.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasCategories() method.
public Label.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Label.Builder,Label>public static Label.Builder builder()
public static Class<? extends Label.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.