Class ClassifierDocumentTypeDetails

java.lang.Object
com.azure.ai.documentintelligence.models.ClassifierDocumentTypeDetails
All Implemented Interfaces:
com.azure.json.JsonSerializable<ClassifierDocumentTypeDetails>

public final class ClassifierDocumentTypeDetails extends Object implements com.azure.json.JsonSerializable<ClassifierDocumentTypeDetails>
Classifier document type info.
  • Constructor Details

    • ClassifierDocumentTypeDetails

      public ClassifierDocumentTypeDetails()
      Creates an instance of ClassifierDocumentTypeDetails class.
  • Method Details

    • getSourceKind

      public ContentSourceKind getSourceKind()
      Get the sourceKind property: Type of training data source.
      Returns:
      the sourceKind value.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<ClassifierDocumentTypeDetails>
      Throws:
      IOException
    • fromJson

      public static ClassifierDocumentTypeDetails fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.