Class DeidentificationJobSummary
java.lang.Object
com.azure.health.deidentification.models.DeidentificationJobSummary
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DeidentificationJobSummary>
public final class DeidentificationJobSummary
extends Object
implements com.azure.json.JsonSerializable<DeidentificationJobSummary>
Summary metrics of a job.
-
Method Summary
Modifier and TypeMethodDescriptionstatic DeidentificationJobSummaryfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DeidentificationJobSummary from the JsonReader.longGet the bytesProcessed property: Number of bytes processed.intGet the canceledCount property: Number of documents that have been canceled.intGet the failedCount property: Number of documents that have failed.intGet the successfulCount property: Number of documents that have completed.intGet the totalCount property: Number of documents total.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
-
getSuccessfulCount
public int getSuccessfulCount()Get the successfulCount property: Number of documents that have completed.- Returns:
- the successfulCount value.
-
getFailedCount
public int getFailedCount()Get the failedCount property: Number of documents that have failed.- Returns:
- the failedCount value.
-
getCanceledCount
public int getCanceledCount()Get the canceledCount property: Number of documents that have been canceled.- Returns:
- the canceledCount value.
-
getTotalCount
public int getTotalCount()Get the totalCount property: Number of documents total.- Returns:
- the totalCount value.
-
getBytesProcessed
public long getBytesProcessed()Get the bytesProcessed property: Number of bytes processed.- Returns:
- the bytesProcessed value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<DeidentificationJobSummary>- Throws:
IOException
-
fromJson
public static DeidentificationJobSummary fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of DeidentificationJobSummary from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of DeidentificationJobSummary 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 DeidentificationJobSummary.
-