Class DocumentModelBuildOperationDetails
java.lang.Object
com.azure.ai.documentintelligence.models.OperationDetails
com.azure.ai.documentintelligence.models.DocumentModelBuildOperationDetails
- All Implemented Interfaces:
com.azure.json.JsonSerializable<OperationDetails>
Get Operation response object.
-
Method Summary
Modifier and TypeMethodDescriptionfromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of DocumentModelBuildOperationDetails from the JsonReader.Get the apiVersion property: API version used to create this operation.getError()
Get the error property: Encountered error.getKind()
Get the kind property: Type of operation.Get the percentCompleted property: Operation progress (0-100).Get the result property: Operation result upon success.getTags()
Get the tags property: List of key-value tag attributes associated with the document model.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) Methods inherited from class com.azure.ai.documentintelligence.models.OperationDetails
getCreatedDateTime, getLastUpdatedDateTime, getOperationId, getResourceLocation, getStatus
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Method Details
-
getKind
Get the kind property: Type of operation.- Overrides:
getKind
in classOperationDetails
- Returns:
- the kind value.
-
getResult
Get the result property: Operation result upon success.- Returns:
- the result value.
-
getError
Get the error property: Encountered error.- Overrides:
getError
in classOperationDetails
- Returns:
- the error value.
-
getTags
Get the tags property: List of key-value tag attributes associated with the document model.- Overrides:
getTags
in classOperationDetails
- Returns:
- the tags value.
-
getApiVersion
Get the apiVersion property: API version used to create this operation.- Overrides:
getApiVersion
in classOperationDetails
- Returns:
- the apiVersion value.
-
getPercentCompleted
Get the percentCompleted property: Operation progress (0-100).- Overrides:
getPercentCompleted
in classOperationDetails
- Returns:
- the percentCompleted value.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<OperationDetails>
- Overrides:
toJson
in classOperationDetails
- Throws:
IOException
-
fromJson
public static DocumentModelBuildOperationDetails fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of DocumentModelBuildOperationDetails from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of DocumentModelBuildOperationDetails 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 DocumentModelBuildOperationDetails.
-