Class ComponentDocumentModelDetails
java.lang.Object
com.azure.ai.documentintelligence.models.ComponentDocumentModelDetails
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ComponentDocumentModelDetails>
public final class ComponentDocumentModelDetails
extends Object
implements com.azure.json.JsonSerializable<ComponentDocumentModelDetails>
A component of a composed document model.
-
Constructor Summary
ConstructorDescriptionComponentDocumentModelDetails
(String modelId) Creates an instance of ComponentDocumentModelDetails class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of ComponentDocumentModelDetails from the JsonReader.Get the docType property: Document type.Get the maxDocumentsToAnalyze property: Maximum number of documents of specified type to analyze.Get the modelId property: Document model to use for analyzing documents with specified type.setDocType
(String docType) Set the docType property: Document type.setMaxDocumentsToAnalyze
(Integer maxDocumentsToAnalyze) Set the maxDocumentsToAnalyze property: Maximum number of documents of specified type to analyze.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ComponentDocumentModelDetails
Creates an instance of ComponentDocumentModelDetails class.- Parameters:
modelId
- the modelId value to set.
-
-
Method Details
-
getDocType
Get the docType property: Document type.- Returns:
- the docType value.
-
setDocType
Set the docType property: Document type.- Parameters:
docType
- the docType value to set.- Returns:
- the ComponentDocumentModelDetails object itself.
-
getModelId
Get the modelId property: Document model to use for analyzing documents with specified type.- Returns:
- the modelId value.
-
getMaxDocumentsToAnalyze
Get the maxDocumentsToAnalyze property: Maximum number of documents of specified type to analyze. Default=all.- Returns:
- the maxDocumentsToAnalyze value.
-
setMaxDocumentsToAnalyze
Set the maxDocumentsToAnalyze property: Maximum number of documents of specified type to analyze. Default=all.- Parameters:
maxDocumentsToAnalyze
- the maxDocumentsToAnalyze value to set.- Returns:
- the ComponentDocumentModelDetails object itself.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<ComponentDocumentModelDetails>
- Throws:
IOException
-
fromJson
public static ComponentDocumentModelDetails fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ComponentDocumentModelDetails from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of ComponentDocumentModelDetails 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 ComponentDocumentModelDetails.
-