@Generated(value="software.amazon.awssdk:codegen") public final class ClassifyDocumentResponse extends ComprehendResponse implements ToCopyableBuilder<ClassifyDocumentResponse.Builder,ClassifyDocumentResponse>
| Modifier and Type | Class and Description |
|---|---|
static interface |
ClassifyDocumentResponse.Builder |
| Modifier and Type | Method and Description |
|---|---|
static ClassifyDocumentResponse.Builder |
builder() |
List<DocumentClass> |
classes()
The classes used by the document being analyzed.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasClasses()
Returns true if the Classes property was specified by the sender (it may be empty), or false if the sender did
not specify the value (it will be empty).
|
int |
hashCode() |
boolean |
hasLabels()
Returns true if the Labels 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<DocumentLabel> |
labels()
The labels used the document being analyzed.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends ClassifyDocumentResponse.Builder> |
serializableBuilderClass() |
ClassifyDocumentResponse.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
responseMetadatasdkHttpResponseclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final boolean hasClasses()
public final List<DocumentClass> classes()
The classes used by the document being analyzed. These are used for multi-class trained models. Individual classes are mutually exclusive and each document is expected to have only a single class assigned to it. For example, an animal can be a dog or a cat, but not both at the same time.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasClasses() to see if a value was sent in this field.
public final boolean hasLabels()
public final List<DocumentLabel> labels()
The labels used the document being analyzed. These are used for multi-label trained models. Individual labels represent different categories that are related in some manner and are not mutually exclusive. For example, a movie can be just an action movie, or it can be an action movie, a science fiction movie, and a comedy, all at the same time.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasLabels() to see if a value was sent in this field.
public ClassifyDocumentResponse.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<ClassifyDocumentResponse.Builder,ClassifyDocumentResponse>toBuilder in class AwsResponsepublic static ClassifyDocumentResponse.Builder builder()
public static Class<? extends ClassifyDocumentResponse.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsResponsepublic final boolean equals(Object obj)
equals in class AwsResponsepublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkResponseCopyright © 2021. All rights reserved.