Class DocumentModelCopyToOperationDetails

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

public final class DocumentModelCopyToOperationDetails extends OperationDetails
Get Operation response object.
  • Method Details

    • getKind

      public OperationKind getKind()
      Get the kind property: Type of operation.
      Overrides:
      getKind in class OperationDetails
      Returns:
      the kind value.
    • getResult

      public DocumentModelDetails getResult()
      Get the result property: Operation result upon success.
      Returns:
      the result value.
    • getError

      public Error getError()
      Get the error property: Encountered error.
      Overrides:
      getError in class OperationDetails
      Returns:
      the error value.
    • getTags

      public Map<String,String> getTags()
      Get the tags property: List of key-value tag attributes associated with the document model.
      Overrides:
      getTags in class OperationDetails
      Returns:
      the tags value.
    • getApiVersion

      public String getApiVersion()
      Get the apiVersion property: API version used to create this operation.
      Overrides:
      getApiVersion in class OperationDetails
      Returns:
      the apiVersion value.
    • getPercentCompleted

      public Integer getPercentCompleted()
      Get the percentCompleted property: Operation progress (0-100).
      Overrides:
      getPercentCompleted in class OperationDetails
      Returns:
      the percentCompleted value.
    • toJson

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

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