Class OperationDetails

java.lang.Object
com.azure.ai.documentintelligence.models.OperationDetails
Direct Known Subclasses:
DocumentClassifierBuildOperationDetails, DocumentModelBuildOperationDetails, DocumentModelComposeOperationDetails, DocumentModelCopyToOperationDetails

public class OperationDetails extends Object
Operation info.
  • Constructor Details

    • OperationDetails

      protected OperationDetails(OperationStatus status, OffsetDateTime createdDateTime, OffsetDateTime lastUpdatedDateTime, String resourceLocation)
      Creates an instance of OperationDetails class.
      Parameters:
      status - the status value to set.
      createdDateTime - the createdDateTime value to set.
      lastUpdatedDateTime - the lastUpdatedDateTime value to set.
      resourceLocation - the resourceLocation value to set.
  • Method Details

    • getOperationId

      public String getOperationId()
      Get the operationId property: Operation ID.
      Returns:
      the operationId value.
    • getStatus

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

      public Integer getPercentCompleted()
      Get the percentCompleted property: Operation progress (0-100).
      Returns:
      the percentCompleted value.
    • getCreatedDateTime

      public OffsetDateTime getCreatedDateTime()
      Get the createdDateTime property: Date and time (UTC) when the operation was created.
      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.
    • getResourceLocation

      public String getResourceLocation()
      Get the resourceLocation property: URL of the resource targeted by this operation.
      Returns:
      the resourceLocation value.
    • getApiVersion

      public String getApiVersion()
      Get the apiVersion property: API version used to create this operation.
      Returns:
      the apiVersion value.
    • getTags

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

      public Error getError()
      Get the error property: Encountered error.
      Returns:
      the error value.