BuildDocumentModelRequest Class

  • java.lang.Object
    • com.azure.ai.documentintelligence.models.BuildDocumentModelRequest

Implements

public final class BuildDocumentModelRequest
implements JsonSerializable<BuildDocumentModelRequest>

Request body to build a new custom document model.

Constructor Summary

Constructor Description
BuildDocumentModelRequest(String modelId, DocumentBuildMode buildMode)

Creates an instance of BuildDocumentModelRequest class.

Method Summary

Modifier and Type Method and Description
static BuildDocumentModelRequest fromJson(JsonReader jsonReader)

Reads an instance of BuildDocumentModelRequest from the JsonReader.

AzureBlobFileListContentSource getAzureBlobFileListSource()

Get the azureBlobFileListSource property: Azure Blob Storage file list specifying the training data.

AzureBlobContentSource getAzureBlobSource()

Get the azureBlobSource property: Azure Blob Storage location containing the training data.

DocumentBuildMode getBuildMode()

Get the buildMode property: Custom document model build mode.

String getDescription()

Get the description property: Document model description.

Double getMaxTrainingHours()

Get the maxTrainingHours property: Max number of V100-equivalent GPU hours to use for model training.

String getModelId()

Get the modelId property: Unique document model name.

Map<String,String> getTags()

Get the tags property: List of key-value tag attributes associated with the document model.

Boolean isAllowOverwrite()

Get the allowOverwrite property: Allow overwriting an existing model with the same name.

BuildDocumentModelRequest setAllowOverwrite(Boolean allowOverwrite)

Set the allowOverwrite property: Allow overwriting an existing model with the same name.

BuildDocumentModelRequest setAzureBlobFileListSource(AzureBlobFileListContentSource azureBlobFileListSource)

Set the azureBlobFileListSource property: Azure Blob Storage file list specifying the training data.

BuildDocumentModelRequest setAzureBlobSource(AzureBlobContentSource azureBlobSource)

Set the azureBlobSource property: Azure Blob Storage location containing the training data.

BuildDocumentModelRequest setDescription(String description)

Set the description property: Document model description.

BuildDocumentModelRequest setMaxTrainingHours(Double maxTrainingHours)

Set the maxTrainingHours property: Max number of V100-equivalent GPU hours to use for model training.

BuildDocumentModelRequest setTags(Map<String,String> tags)

Set the tags property: List of key-value tag attributes associated with the document model.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

BuildDocumentModelRequest

public BuildDocumentModelRequest(String modelId, DocumentBuildMode buildMode)

Creates an instance of BuildDocumentModelRequest class.

Parameters:

modelId - the modelId value to set.
buildMode - the buildMode value to set.

Method Details

fromJson

public static BuildDocumentModelRequest fromJson(JsonReader jsonReader)

Reads an instance of BuildDocumentModelRequest from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of BuildDocumentModelRequest if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

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:

the azureBlobFileListSource value.

getAzureBlobSource

public AzureBlobContentSource getAzureBlobSource()

Get the azureBlobSource property: Azure Blob Storage location containing the training data. Either azureBlobSource or azureBlobFileListSource must be specified.

Returns:

the azureBlobSource value.

getBuildMode

public DocumentBuildMode getBuildMode()

Get the buildMode property: Custom document model build mode.

Returns:

the buildMode value.

getDescription

public String getDescription()

Get the description property: Document model description.

Returns:

the description value.

getMaxTrainingHours

public Double getMaxTrainingHours()

Get the maxTrainingHours property: Max number of V100-equivalent GPU hours to use for model training. Default=0.5.

Returns:

the maxTrainingHours value.

getModelId

public String getModelId()

Get the modelId property: Unique document model name.

Returns:

the modelId value.

getTags

public Map<String,String> getTags()

Get the tags property: List of key-value tag attributes associated with the document model.

Returns:

the tags value.

isAllowOverwrite

public Boolean isAllowOverwrite()

Get the allowOverwrite property: Allow overwriting an existing model with the same name.

Returns:

the allowOverwrite value.

setAllowOverwrite

public BuildDocumentModelRequest setAllowOverwrite(Boolean allowOverwrite)

Set the allowOverwrite property: Allow overwriting an existing model with the same name.

Parameters:

allowOverwrite - the allowOverwrite value to set.

Returns:

the BuildDocumentModelRequest object itself.

setAzureBlobFileListSource

public BuildDocumentModelRequest 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 BuildDocumentModelRequest object itself.

setAzureBlobSource

public BuildDocumentModelRequest setAzureBlobSource(AzureBlobContentSource azureBlobSource)

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 BuildDocumentModelRequest object itself.

setDescription

public BuildDocumentModelRequest setDescription(String description)

Set the description property: Document model description.

Parameters:

description - the description value to set.

Returns:

the BuildDocumentModelRequest object itself.

setMaxTrainingHours

public BuildDocumentModelRequest setMaxTrainingHours(Double maxTrainingHours)

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 BuildDocumentModelRequest object itself.

setTags

public BuildDocumentModelRequest setTags(Map<String,String> tags)

Set the tags property: List of key-value tag attributes associated with the document model.

Parameters:

tags - the tags value to set.

Returns:

the BuildDocumentModelRequest object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to