@Generated(value="software.amazon.awssdk:codegen") public final class DocumentLabel extends Object implements SdkPojo, Serializable, ToCopyableBuilder<DocumentLabel.Builder,DocumentLabel>
Specifies one of the label or labels that categorize the document being analyzed.
| Modifier and Type | Class and Description |
|---|---|
static interface |
DocumentLabel.Builder |
| Modifier and Type | Method and Description |
|---|---|
static DocumentLabel.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
name()
The name of the label.
|
Integer |
page()
Page number where the label occurs.
|
Float |
score()
The confidence score that Amazon Comprehend has this label correctly attributed.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends DocumentLabel.Builder> |
serializableBuilderClass() |
DocumentLabel.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String name()
The name of the label.
public final Float score()
The confidence score that Amazon Comprehend has this label correctly attributed.
public final Integer page()
Page number where the label occurs. This field is present in the response only if your request includes the
Byte parameter.
Byte parameter.public DocumentLabel.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<DocumentLabel.Builder,DocumentLabel>public static DocumentLabel.Builder builder()
public static Class<? extends DocumentLabel.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.