BuildDocumentModelOptions Class
- java.
lang. Object - com.
azure. ai. documentintelligence. models. BuildDocumentModelOptions
- com.
Implements
public final class BuildDocumentModelOptions
implements JsonSerializable<BuildDocumentModelOptions>
Request body to build a new custom document model.
Constructor Summary
| Constructor | Description |
|---|---|
| BuildDocumentModelOptions(String modelId, DocumentBuildMode buildMode) |
Creates an instance of Build |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Build |
fromJson(JsonReader jsonReader)
Reads an instance of Build |
|
Azure |
getAzureBlobFileListSource()
Get the azure |
|
Azure |
getAzureBlobSource()
Get the azure |
|
Document |
getBuildMode()
Get the build |
| String |
getDescription()
Get the description property: Document model description. |
| Double |
getMaxTrainingHours()
Get the max |
| String |
getModelId()
Get the model |
| Map<String,String> |
getTags()
Get the tags property: List of key-value tag attributes associated with the document model. |
| Boolean |
isAllowOverwrite()
Get the allow |
|
Build |
setAllowOverwrite(Boolean allowOverwrite)
Set the allow |
|
Build |
setAzureBlobFileListSource(AzureBlobFileListContentSource azureBlobFileListSource)
Set the azure |
|
Build |
setAzureBlobSource(AzureBlobContentSource azureBlobSource)
Set the azure |
|
Build |
setDescription(String description)
Set the description property: Document model description. |
|
Build |
setMaxTrainingHours(Double maxTrainingHours)
Set the max |
|
Build |
setTags(Map<String,String> tags)
Set the tags property: List of key-value tag attributes associated with the document model. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
BuildDocumentModelOptions
public BuildDocumentModelOptions(String modelId, DocumentBuildMode buildMode)
Creates an instance of BuildDocumentModelOptions class.
Parameters:
Method Details
fromJson
public static BuildDocumentModelOptions fromJson(JsonReader jsonReader)
Reads an instance of BuildDocumentModelOptions from the JsonReader.
Parameters:
Returns:
Throws:
getAzureBlobFileListSource
public AzureBlobFileListContentSource getAzureBlobFileListSource()
Get the azureBlobFileListSource property: Azure Blob Storage file list specifying the training data. Either azureBlobSource or azureBlobFileListSource must be specified.
Returns:
getAzureBlobSource
public AzureBlobContentSource getAzureBlobSource()
Get the azureBlobSource property: Azure Blob Storage location containing the training data. Either azureBlobSource or azureBlobFileListSource must be specified.
Returns:
getBuildMode
public DocumentBuildMode getBuildMode()
Get the buildMode property: Custom document model build mode.
Returns:
getDescription
public String getDescription()
Get the description property: Document model description.
Returns:
getMaxTrainingHours
public Double getMaxTrainingHours()
Get the maxTrainingHours property: Max number of V100-equivalent GPU hours to use for model training. Default=0.5.
Returns:
getModelId
public String getModelId()
Get the modelId property: Unique document model name.
Returns:
getTags
public Map<String,String> getTags()
Get the tags property: List of key-value tag attributes associated with the document model.
Returns:
isAllowOverwrite
public Boolean isAllowOverwrite()
Get the allowOverwrite property: Allow overwriting an existing model with the same name.
Returns:
setAllowOverwrite
public BuildDocumentModelOptions setAllowOverwrite(Boolean allowOverwrite)
Set the allowOverwrite property: Allow overwriting an existing model with the same name.
Parameters:
Returns:
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:
Returns:
setAzureBlobSource
public BuildDocumentModelOptions setAzureBlobSource(AzureBlobContentSource azureBlobSource)
Set the azureBlobSource property: Azure Blob Storage location containing the training data. Either azureBlobSource or azureBlobFileListSource must be specified.
Parameters:
Returns:
setDescription
public BuildDocumentModelOptions setDescription(String description)
Set the description property: Document model description.
Parameters:
Returns:
setMaxTrainingHours
public BuildDocumentModelOptions setMaxTrainingHours(Double maxTrainingHours)
Set the maxTrainingHours property: Max number of V100-equivalent GPU hours to use for model training. Default=0.5.
Parameters:
Returns:
setTags
public BuildDocumentModelOptions setTags(Map<String,String> tags)
Set the tags property: List of key-value tag attributes associated with the document model.
Parameters:
Returns: