Class BuildDocumentClassifierRequest

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

public final class BuildDocumentClassifierRequest extends Object implements com.azure.json.JsonSerializable<BuildDocumentClassifierRequest>
Request body to build a new custom document classifier.
  • Constructor Details

    • BuildDocumentClassifierRequest

      public BuildDocumentClassifierRequest(String classifierId, Map<String,ClassifierDocumentTypeDetails> docTypes)
      Creates an instance of BuildDocumentClassifierRequest class.
      Parameters:
      classifierId - the classifierId value to set.
      docTypes - the docTypes value to set.
  • Method Details

    • getClassifierId

      public String getClassifierId()
      Get the classifierId property: Unique document classifier name.
      Returns:
      the classifierId value.
    • getDescription

      public String getDescription()
      Get the description property: Document classifier description.
      Returns:
      the description value.
    • setDescription

      public BuildDocumentClassifierRequest setDescription(String description)
      Set the description property: Document classifier description.
      Parameters:
      description - the description value to set.
      Returns:
      the BuildDocumentClassifierRequest object itself.
    • getBaseClassifierId

      public String getBaseClassifierId()
      Get the baseClassifierId property: Base classifierId on top of which to train the classifier.
      Returns:
      the baseClassifierId value.
    • setBaseClassifierId

      public BuildDocumentClassifierRequest setBaseClassifierId(String baseClassifierId)
      Set the baseClassifierId property: Base classifierId on top of which to train the classifier.
      Parameters:
      baseClassifierId - the baseClassifierId value to set.
      Returns:
      the BuildDocumentClassifierRequest object itself.
    • getDocTypes

      public Map<String,ClassifierDocumentTypeDetails> getDocTypes()
      Get the docTypes property: List of document types to classify against.
      Returns:
      the docTypes value.
    • isAllowOverwrite

      public Boolean isAllowOverwrite()
      Get the allowOverwrite property: Allow overwriting an existing classifier with the same name.
      Returns:
      the allowOverwrite value.
    • setAllowOverwrite

      public BuildDocumentClassifierRequest setAllowOverwrite(Boolean allowOverwrite)
      Set the allowOverwrite property: Allow overwriting an existing classifier with the same name.
      Parameters:
      allowOverwrite - the allowOverwrite value to set.
      Returns:
      the BuildDocumentClassifierRequest 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<BuildDocumentClassifierRequest>
      Throws:
      IOException
    • fromJson

      public static BuildDocumentClassifierRequest fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of BuildDocumentClassifierRequest from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of BuildDocumentClassifierRequest 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 BuildDocumentClassifierRequest.