Partilhar via


ClassifierDocumentTypeDetails Class

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

Implements

public final class ClassifierDocumentTypeDetails
implements JsonSerializable<ClassifierDocumentTypeDetails>

Classifier document type info.

Constructor Summary

Constructor Description
ClassifierDocumentTypeDetails()

Creates an instance of ClassifierDocumentTypeDetails class.

Method Summary

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

Reads an instance of ClassifierDocumentTypeDetails from the JsonReader.

AzureBlobFileListContentSource getAzureBlobFileListSource()

Get the azureBlobFileListSource property: Azure Blob Storage file list specifying the training data for a classifier document type.

AzureBlobContentSource getAzureBlobSource()

Get the azureBlobSource property: Azure Blob Storage location containing the training data for a classifier document type.

ContentSourceKind getSourceKind()

Get the sourceKind property: Type of training data source.

ClassifierDocumentTypeDetails setAzureBlobFileListSource(AzureBlobFileListContentSource azureBlobFileListSource)

Set the azureBlobFileListSource property: Azure Blob Storage file list specifying the training data for a classifier document type.

ClassifierDocumentTypeDetails setAzureBlobSource(AzureBlobContentSource azureBlobSource)

Set the azureBlobSource property: Azure Blob Storage location containing the training data for a classifier document type.

ClassifierDocumentTypeDetails setSourceKind(ContentSourceKind sourceKind)

Set the sourceKind property: Type of training data source.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

ClassifierDocumentTypeDetails

public ClassifierDocumentTypeDetails()

Creates an instance of ClassifierDocumentTypeDetails class.

Method Details

fromJson

public static ClassifierDocumentTypeDetails fromJson(JsonReader jsonReader)

Reads an instance of ClassifierDocumentTypeDetails from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the ClassifierDocumentTypeDetails.

getAzureBlobFileListSource

public AzureBlobFileListContentSource getAzureBlobFileListSource()

Get the azureBlobFileListSource property: Azure Blob Storage file list specifying the training data for a classifier document type. 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 for a classifier document type. Either azureBlobSource or azureBlobFileListSource must be specified.

Returns:

the azureBlobSource value.

getSourceKind

public ContentSourceKind getSourceKind()

Get the sourceKind property: Type of training data source.

Returns:

the sourceKind value.

setAzureBlobFileListSource

public ClassifierDocumentTypeDetails setAzureBlobFileListSource(AzureBlobFileListContentSource azureBlobFileListSource)

Set the azureBlobFileListSource property: Azure Blob Storage file list specifying the training data for a classifier document type. Either azureBlobSource or azureBlobFileListSource must be specified.

Parameters:

azureBlobFileListSource - the azureBlobFileListSource value to set.

Returns:

the ClassifierDocumentTypeDetails object itself.

setAzureBlobSource

public ClassifierDocumentTypeDetails setAzureBlobSource(AzureBlobContentSource azureBlobSource)

Set the azureBlobSource property: Azure Blob Storage location containing the training data for a classifier document type. Either azureBlobSource or azureBlobFileListSource must be specified.

Parameters:

azureBlobSource - the azureBlobSource value to set.

Returns:

the ClassifierDocumentTypeDetails object itself.

setSourceKind

public ClassifierDocumentTypeDetails setSourceKind(ContentSourceKind sourceKind)

Set the sourceKind property: Type of training data source.

Parameters:

sourceKind - the sourceKind value to set.

Returns:

the ClassifierDocumentTypeDetails object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to