Class AnalyzeResultOperation

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

public final class AnalyzeResultOperation extends Object implements com.azure.json.JsonSerializable<AnalyzeResultOperation>
Status and result of the analyze operation.
  • Method Details

    • getStatus

      public OperationStatus getStatus()
      Get the status property: Operation status. notStarted, running, succeeded, or failed.
      Returns:
      the status value.
    • getCreatedDateTime

      public OffsetDateTime getCreatedDateTime()
      Get the createdDateTime property: Date and time (UTC) when the analyze operation was submitted.
      Returns:
      the createdDateTime value.
    • getLastUpdatedDateTime

      public OffsetDateTime getLastUpdatedDateTime()
      Get the lastUpdatedDateTime property: Date and time (UTC) when the status was last updated.
      Returns:
      the lastUpdatedDateTime value.
    • getError

      public Error getError()
      Get the error property: Encountered error during document analysis.
      Returns:
      the error value.
    • getAnalyzeResult

      public AnalyzeResult getAnalyzeResult()
      Get the analyzeResult property: Document analysis result.
      Returns:
      the analyzeResult value.
    • toJson

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

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

      public String getOperationId()
      Gets the operationId property: Operation ID.
      Returns:
      the operationId value.
    • setOperationId

      public void setOperationId(String operationId)
      Sets the operationId property: Operation ID.
      Parameters:
      operationId - the operationId value to set.