Class ComposeDocumentModelRequest
java.lang.Object
com.azure.ai.documentintelligence.models.ComposeDocumentModelRequest
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ComposeDocumentModelRequest>
public final class ComposeDocumentModelRequest
extends Object
implements com.azure.json.JsonSerializable<ComposeDocumentModelRequest>
Request body to create a composed document model from component document models.
-
Constructor Summary
ConstructorDescriptionComposeDocumentModelRequest
(String modelId, String classifierId, Map<String, DocumentTypeDetails> docTypes) Creates an instance of ComposeDocumentModelRequest class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ComposeDocumentModelRequest
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of ComposeDocumentModelRequest from the JsonReader.Get the classifierId property: Custom classifier to split and classify the input file.Get the description property: Document model description.Get the docTypes property: Dictionary mapping supported docTypes to the corresponding document models.Get the modelId property: Unique document model name.getSplit()
Get the split property: File splitting behavior.getTags()
Get the tags property: List of key-value tag attributes associated with the document model.setDescription
(String description) Set the description property: Document model description.Set the split property: File splitting behavior.Set the tags property: List of key-value tag attributes associated with the document model.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
-
ComposeDocumentModelRequest
public ComposeDocumentModelRequest(String modelId, String classifierId, Map<String, DocumentTypeDetails> docTypes) Creates an instance of ComposeDocumentModelRequest class.- Parameters:
modelId
- the modelId value to set.classifierId
- the classifierId value to set.docTypes
- the docTypes value to set.
-
-
Method Details
-
getModelId
Get the modelId property: Unique document model name.- Returns:
- the modelId value.
-
getDescription
Get the description property: Document model description.- Returns:
- the description value.
-
setDescription
Set the description property: Document model description.- Parameters:
description
- the description value to set.- Returns:
- the ComposeDocumentModelRequest object itself.
-
getClassifierId
Get the classifierId property: Custom classifier to split and classify the input file.- Returns:
- the classifierId value.
-
getSplit
Get the split property: File splitting behavior.- Returns:
- the split value.
-
setSplit
Set the split property: File splitting behavior.- Parameters:
split
- the split value to set.- Returns:
- the ComposeDocumentModelRequest object itself.
-
getDocTypes
Get the docTypes property: Dictionary mapping supported docTypes to the corresponding document models.- Returns:
- the docTypes value.
-
getTags
Get the tags property: List of key-value tag attributes associated with the document model.- Returns:
- the tags value.
-
setTags
Set the tags property: List of key-value tag attributes associated with the document model.- Parameters:
tags
- the tags value to set.- Returns:
- the ComposeDocumentModelRequest object itself.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<ComposeDocumentModelRequest>
- Throws:
IOException
-
fromJson
public static ComposeDocumentModelRequest fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ComposeDocumentModelRequest from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of ComposeDocumentModelRequest 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 ComposeDocumentModelRequest.
-