Class DeidentificationJob
java.lang.Object
com.azure.health.deidentification.models.DeidentificationJob
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DeidentificationJob>
public final class DeidentificationJob
extends Object
implements com.azure.json.JsonSerializable<DeidentificationJob>
A job containing a batch of documents to de-identify.
-
Constructor Summary
ConstructorsConstructorDescriptionDeidentificationJob(SourceStorageLocation sourceLocation, TargetStorageLocation targetLocation) Creates an instance of DeidentificationJob class. -
Method Summary
Modifier and TypeMethodDescriptionstatic DeidentificationJobfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DeidentificationJob from the JsonReader.Get the createdAt property: Date and time when the job was created.Get the customizations property: Customization parameters to override default service behaviors.com.azure.core.models.ResponseErrorgetError()Get the error property: Error when job fails in it's entirety.Get the jobName property: The name of a job.Get the lastUpdatedAt property: Date and time when the job was completed.Get the operationType property: Operation to perform on the input documents.Get the sourceLocation property: Storage location to perform the operation on.Get the startedAt property: Date and time when the job was started.Get the status property: Current status of a job.Get the summary property: Summary of a job.Get the targetLocation property: Target location to store output of operation.setCustomizations(DeidentificationJobCustomizationOptions customizations) Set the customizations property: Customization parameters to override default service behaviors.setOperationType(DeidentificationOperationType operationType) Set the operationType property: Operation to perform on the input documents.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
-
Constructor Details
-
DeidentificationJob
public DeidentificationJob(SourceStorageLocation sourceLocation, TargetStorageLocation targetLocation) Creates an instance of DeidentificationJob class.- Parameters:
sourceLocation- the sourceLocation value to set.targetLocation- the targetLocation value to set.
-
-
Method Details
-
getSourceLocation
Get the sourceLocation property: Storage location to perform the operation on.- Returns:
- the sourceLocation value.
-
getTargetLocation
Get the targetLocation property: Target location to store output of operation.- Returns:
- the targetLocation value.
-
getCustomizations
Get the customizations property: Customization parameters to override default service behaviors.- Returns:
- the customizations value.
-
setCustomizations
public DeidentificationJob setCustomizations(DeidentificationJobCustomizationOptions customizations) Set the customizations property: Customization parameters to override default service behaviors.- Parameters:
customizations- the customizations value to set.- Returns:
- the DeidentificationJob object itself.
-
getStatus
Get the status property: Current status of a job.- Returns:
- the status value.
-
getError
public com.azure.core.models.ResponseError getError()Get the error property: Error when job fails in it's entirety.- Returns:
- the error value.
-
getLastUpdatedAt
Get the lastUpdatedAt property: Date and time when the job was completed. If the job is canceled, this is the time when the job was canceled. If the job failed, this is the time when the job failed.- Returns:
- the lastUpdatedAt value.
-
getCreatedAt
Get the createdAt property: Date and time when the job was created.- Returns:
- the createdAt value.
-
getStartedAt
Get the startedAt property: Date and time when the job was started.- Returns:
- the startedAt value.
-
getSummary
Get the summary property: Summary of a job. Exists only when the job is completed.- Returns:
- the summary value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<DeidentificationJob>- Throws:
IOException
-
fromJson
Reads an instance of DeidentificationJob from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of DeidentificationJob 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 DeidentificationJob.
-
getOperationType
Get the operationType property: Operation to perform on the input documents.- Returns:
- the operationType value.
-
setOperationType
Set the operationType property: Operation to perform on the input documents.- Parameters:
operationType- the operationType value to set.- Returns:
- the DeidentificationJob object itself.
-
getJobName
Get the jobName property: The name of a job.- Returns:
- the jobName value.
-