@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ClassifyDocumentResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
ClassifyDocumentResult() |
Modifier and Type | Method and Description |
---|---|
ClassifyDocumentResult |
clone() |
boolean |
equals(Object obj) |
List<DocumentClass> |
getClasses()
The classes used by the document being analyzed.
|
int |
hashCode() |
void |
setClasses(Collection<DocumentClass> classes)
The classes used by the document being analyzed.
|
String |
toString()
Returns a string representation of this object.
|
ClassifyDocumentResult |
withClasses(Collection<DocumentClass> classes)
The classes used by the document being analyzed.
|
ClassifyDocumentResult |
withClasses(DocumentClass... classes)
The classes used by the document being analyzed.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<DocumentClass> getClasses()
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.
public void setClasses(Collection<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.
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.public ClassifyDocumentResult withClasses(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.
NOTE: This method appends the values to the existing list (if any). Use
setClasses(java.util.Collection)
or withClasses(java.util.Collection)
if you want to override
the existing values.
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.public ClassifyDocumentResult withClasses(Collection<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.
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.public String toString()
toString
in class Object
Object.toString()
public ClassifyDocumentResult clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.