Class BuildDocumentClassifierOptions
java.lang.Object
com.azure.ai.documentintelligence.models.BuildDocumentClassifierOptions
- All Implemented Interfaces:
com.azure.json.JsonSerializable<BuildDocumentClassifierOptions>
public final class BuildDocumentClassifierOptions
extends Object
implements com.azure.json.JsonSerializable<BuildDocumentClassifierOptions>
Request body to build a new custom document classifier.
-
Constructor Summary
ConstructorsConstructorDescriptionBuildDocumentClassifierOptions(String classifierId, Map<String, ClassifierDocumentTypeDetails> documentTypes) Creates an instance of BuildDocumentClassifierOptions class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of BuildDocumentClassifierOptions from the JsonReader.Get the baseClassifierId property: Base classifierId on top of which to train the classifier.Get the classifierId property: Unique document classifier name.Get the description property: Document classifier description.Get the documentTypes property: List of document types to classify against.Get the allowOverwrite property: Allow overwriting an existing classifier with the same name.setAllowOverwrite(Boolean allowOverwrite) Set the allowOverwrite property: Allow overwriting an existing classifier with the same name.setBaseClassifierId(String baseClassifierId) Set the baseClassifierId property: Base classifierId on top of which to train the classifier.setDescription(String description) Set the description property: Document classifier description.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
BuildDocumentClassifierOptions
public BuildDocumentClassifierOptions(String classifierId, Map<String, ClassifierDocumentTypeDetails> documentTypes) Creates an instance of BuildDocumentClassifierOptions class.- Parameters:
classifierId- the classifierId value to set.documentTypes- the documentTypes value to set.
-
-
Method Details
-
getClassifierId
Get the classifierId property: Unique document classifier name.- Returns:
- the classifierId value.
-
getDescription
Get the description property: Document classifier description.- Returns:
- the description value.
-
setDescription
Set the description property: Document classifier description.- Parameters:
description- the description value to set.- Returns:
- the BuildDocumentClassifierOptions object itself.
-
getBaseClassifierId
Get the baseClassifierId property: Base classifierId on top of which to train the classifier.- Returns:
- the baseClassifierId value.
-
setBaseClassifierId
Set the baseClassifierId property: Base classifierId on top of which to train the classifier.- Parameters:
baseClassifierId- the baseClassifierId value to set.- Returns:
- the BuildDocumentClassifierOptions object itself.
-
getDocumentTypes
Get the documentTypes property: List of document types to classify against.- Returns:
- the documentTypes value.
-
isAllowOverwrite
Get the allowOverwrite property: Allow overwriting an existing classifier with the same name.- Returns:
- the allowOverwrite value.
-
setAllowOverwrite
Set the allowOverwrite property: Allow overwriting an existing classifier with the same name.- Parameters:
allowOverwrite- the allowOverwrite value to set.- Returns:
- the BuildDocumentClassifierOptions object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<BuildDocumentClassifierOptions>- Throws:
IOException
-
fromJson
public static BuildDocumentClassifierOptions fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of BuildDocumentClassifierOptions from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of BuildDocumentClassifierOptions if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the BuildDocumentClassifierOptions.
-