Class DocumentLabel
- java.lang.Object
-
- software.amazon.awssdk.services.comprehend.model.DocumentLabel
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<DocumentLabel.Builder,DocumentLabel>
@Generated("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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDocumentLabel.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DocumentLabel.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringname()The name of the label.Integerpage()Page number where the label occurs.Floatscore()The confidence score that Amazon Comprehend has this label correctly attributed.List<SdkField<?>>sdkFields()static Class<? extends DocumentLabel.Builder>serializableBuilderClass()DocumentLabel.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
name
public final String name()
The name of the label.
- Returns:
- The name of the label.
-
score
public final Float score()
The confidence score that Amazon Comprehend has this label correctly attributed.
- Returns:
- The confidence score that Amazon Comprehend has this label correctly attributed.
-
page
public final Integer page()
Page number where the label occurs. This field is present in the response only if your request includes the
Byteparameter.- Returns:
- Page number where the label occurs. This field is present in the response only if your request includes
the
Byteparameter.
-
toBuilder
public DocumentLabel.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<DocumentLabel.Builder,DocumentLabel>
-
builder
public static DocumentLabel.Builder builder()
-
serializableBuilderClass
public static Class<? extends DocumentLabel.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-