Class BuildDocumentModelOptions
java.lang.Object
com.azure.ai.documentintelligence.models.BuildDocumentModelOptions
- All Implemented Interfaces:
com.azure.json.JsonSerializable<BuildDocumentModelOptions>
public final class BuildDocumentModelOptions
extends Object
implements com.azure.json.JsonSerializable<BuildDocumentModelOptions>
Request body to build a new custom document model.
-
Constructor Summary
ConstructorsConstructorDescriptionBuildDocumentModelOptions(String modelId, DocumentBuildMode buildMode) Creates an instance of BuildDocumentModelOptions class. -
Method Summary
Modifier and TypeMethodDescriptionstatic BuildDocumentModelOptionsfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of BuildDocumentModelOptions from the JsonReader.Get the azureBlobFileListSource property: Azure Blob Storage file list specifying the training data.Get the azureBlobSource property: Azure Blob Storage location containing the training data.Get the buildMode property: Custom document model build mode.Get the description property: Document model description.Get the maxTrainingHours property: Max number of V100-equivalent GPU hours to use for model training.Get the modelId property: Unique document model name.getTags()Get the tags property: List of key-value tag attributes associated with the document model.Get the allowOverwrite property: Allow overwriting an existing model with the same name.setAllowOverwrite(Boolean allowOverwrite) Set the allowOverwrite property: Allow overwriting an existing model with the same name.setAzureBlobFileListSource(AzureBlobFileListContentSource azureBlobFileListSource) Set the azureBlobFileListSource property: Azure Blob Storage file list specifying the training data.setAzureBlobSource(AzureBlobContentSource azureBlobSource) Set the azureBlobSource property: Azure Blob Storage location containing the training data.setDescription(String description) Set the description property: Document model description.setMaxTrainingHours(Double maxTrainingHours) Set the maxTrainingHours property: Max number of V100-equivalent GPU hours to use for model training.Set the tags property: List of key-value tag attributes associated with the document model.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
-
BuildDocumentModelOptions
Creates an instance of BuildDocumentModelOptions class.- Parameters:
modelId- the modelId value to set.buildMode- the buildMode 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 BuildDocumentModelOptions object itself.
-
getBuildMode
Get the buildMode property: Custom document model build mode.- Returns:
- the buildMode value.
-
getAzureBlobSource
Get the azureBlobSource property: Azure Blob Storage location containing the training data. Either azureBlobSource or azureBlobFileListSource must be specified.- Returns:
- the azureBlobSource value.
-
setAzureBlobSource
Set the azureBlobSource property: Azure Blob Storage location containing the training data. Either azureBlobSource or azureBlobFileListSource must be specified.- Parameters:
azureBlobSource- the azureBlobSource value to set.- Returns:
- the BuildDocumentModelOptions object itself.
-
getAzureBlobFileListSource
Get the azureBlobFileListSource property: Azure Blob Storage file list specifying the training data. Either azureBlobSource or azureBlobFileListSource must be specified.- Returns:
- the azureBlobFileListSource value.
-
setAzureBlobFileListSource
public BuildDocumentModelOptions setAzureBlobFileListSource(AzureBlobFileListContentSource azureBlobFileListSource) Set the azureBlobFileListSource property: Azure Blob Storage file list specifying the training data. Either azureBlobSource or azureBlobFileListSource must be specified.- Parameters:
azureBlobFileListSource- the azureBlobFileListSource value to set.- Returns:
- the BuildDocumentModelOptions object itself.
-
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 BuildDocumentModelOptions object itself.
-
getMaxTrainingHours
Get the maxTrainingHours property: Max number of V100-equivalent GPU hours to use for model training. Default=0.5.- Returns:
- the maxTrainingHours value.
-
setMaxTrainingHours
Set the maxTrainingHours property: Max number of V100-equivalent GPU hours to use for model training. Default=0.5.- Parameters:
maxTrainingHours- the maxTrainingHours value to set.- Returns:
- the BuildDocumentModelOptions object itself.
-
isAllowOverwrite
Get the allowOverwrite property: Allow overwriting an existing model with the same name.- Returns:
- the allowOverwrite value.
-
setAllowOverwrite
Set the allowOverwrite property: Allow overwriting an existing model with the same name.- Parameters:
allowOverwrite- the allowOverwrite value to set.- Returns:
- the BuildDocumentModelOptions object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<BuildDocumentModelOptions>- Throws:
IOException
-
fromJson
public static BuildDocumentModelOptions fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of BuildDocumentModelOptions from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of BuildDocumentModelOptions 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 BuildDocumentModelOptions.
-