@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DocumentClassificationConfig extends Object implements Serializable, Cloneable, StructuredPojo
Configuration required for a document classification model.
Constructor and Description |
---|
DocumentClassificationConfig() |
Modifier and Type | Method and Description |
---|---|
DocumentClassificationConfig |
clone() |
boolean |
equals(Object obj) |
List<String> |
getLabels()
One or more labels to associate with the custom classifier.
|
String |
getMode()
Classification mode indicates whether the documents are
MULTI_CLASS or MULTI_LABEL . |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setLabels(Collection<String> labels)
One or more labels to associate with the custom classifier.
|
void |
setMode(String mode)
Classification mode indicates whether the documents are
MULTI_CLASS or MULTI_LABEL . |
String |
toString()
Returns a string representation of this object.
|
DocumentClassificationConfig |
withLabels(Collection<String> labels)
One or more labels to associate with the custom classifier.
|
DocumentClassificationConfig |
withLabels(String... labels)
One or more labels to associate with the custom classifier.
|
DocumentClassificationConfig |
withMode(DocumentClassifierMode mode)
Classification mode indicates whether the documents are
MULTI_CLASS or MULTI_LABEL . |
DocumentClassificationConfig |
withMode(String mode)
Classification mode indicates whether the documents are
MULTI_CLASS or MULTI_LABEL . |
public void setMode(String mode)
Classification mode indicates whether the documents are MULTI_CLASS
or MULTI_LABEL
.
mode
- Classification mode indicates whether the documents are MULTI_CLASS
or
MULTI_LABEL
.DocumentClassifierMode
public String getMode()
Classification mode indicates whether the documents are MULTI_CLASS
or MULTI_LABEL
.
MULTI_CLASS
or
MULTI_LABEL
.DocumentClassifierMode
public DocumentClassificationConfig withMode(String mode)
Classification mode indicates whether the documents are MULTI_CLASS
or MULTI_LABEL
.
mode
- Classification mode indicates whether the documents are MULTI_CLASS
or
MULTI_LABEL
.DocumentClassifierMode
public DocumentClassificationConfig withMode(DocumentClassifierMode mode)
Classification mode indicates whether the documents are MULTI_CLASS
or MULTI_LABEL
.
mode
- Classification mode indicates whether the documents are MULTI_CLASS
or
MULTI_LABEL
.DocumentClassifierMode
public List<String> getLabels()
One or more labels to associate with the custom classifier.
public void setLabels(Collection<String> labels)
One or more labels to associate with the custom classifier.
labels
- One or more labels to associate with the custom classifier.public DocumentClassificationConfig withLabels(String... labels)
One or more labels to associate with the custom classifier.
NOTE: This method appends the values to the existing list (if any). Use
setLabels(java.util.Collection)
or withLabels(java.util.Collection)
if you want to override the
existing values.
labels
- One or more labels to associate with the custom classifier.public DocumentClassificationConfig withLabels(Collection<String> labels)
One or more labels to associate with the custom classifier.
labels
- One or more labels to associate with the custom classifier.public String toString()
toString
in class Object
Object.toString()
public DocumentClassificationConfig clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.