Class AnalyzeOperationDetails
java.lang.Object
com.azure.ai.documentintelligence.models.AnalyzeOperationDetails
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AnalyzeOperationDetails>
public final class AnalyzeOperationDetails
extends Object
implements com.azure.json.JsonSerializable<AnalyzeOperationDetails>
Status and result of the analyze operation.
-
Method Summary
Modifier and TypeMethodDescriptionstatic AnalyzeOperationDetailsfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AnalyzeOperationDetails from the JsonReader.Get the analyzeResult property: Document analysis result.Get the createdOn property: Date and time (UTC) when the analyze operation was submitted.getError()Get the error property: Encountered error during document analysis.Get the lastUpdatedOn property: Date and time (UTC) when the status was last updated.Gets the operationId property: Operation ID.Get the status property: Operation status. notStarted, running, succeeded, or failed.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Method Details
-
getStatus
Get the status property: Operation status. notStarted, running, succeeded, or failed.- Returns:
- the status value.
-
getCreatedOn
Get the createdOn property: Date and time (UTC) when the analyze operation was submitted.- Returns:
- the createdOn value.
-
getLastUpdatedOn
Get the lastUpdatedOn property: Date and time (UTC) when the status was last updated.- Returns:
- the lastUpdatedOn value.
-
getError
Get the error property: Encountered error during document analysis.- Returns:
- the error value.
-
getAnalyzeResult
Get the analyzeResult property: Document analysis result.- Returns:
- the analyzeResult value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<AnalyzeOperationDetails>- Throws:
IOException
-
fromJson
public static AnalyzeOperationDetails fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AnalyzeOperationDetails from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AnalyzeOperationDetails 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 AnalyzeOperationDetails.
-
getResultId
Gets the operationId property: Operation ID.- Returns:
- the operationId value.
-