Class Job
java.lang.Object
com.azure.resourcemanager.recoveryservicesbackup.models.Job
- Direct Known Subclasses:
AzureIaaSvmJob
,AzureIaaSvmJobV2
,AzureStorageJob
,AzureWorkloadJob
,DpmJob
,MabJob
,VaultJob
Defines workload agnostic properties for a job.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the activityId property: ActivityId of job.Get the backupManagementType property: Backup management type to execute the current job.endTime()
Get the endTime property: The end time.Get the entityFriendlyName property: Friendly name of the entity on which the current job is executing.Get the operation property: The operation name.Get the startTime property: The start time.status()
Get the status property: Job status.void
validate()
Validates the instance.withActivityId
(String activityId) Set the activityId property: ActivityId of job.withBackupManagementType
(BackupManagementType backupManagementType) Set the backupManagementType property: Backup management type to execute the current job.withEndTime
(OffsetDateTime endTime) Set the endTime property: The end time.withEntityFriendlyName
(String entityFriendlyName) Set the entityFriendlyName property: Friendly name of the entity on which the current job is executing.withOperation
(String operation) Set the operation property: The operation name.withStartTime
(OffsetDateTime startTime) Set the startTime property: The start time.withStatus
(String status) Set the status property: Job status.
-
Constructor Details
-
Job
public Job()Creates an instance of Job class.
-
-
Method Details
-
entityFriendlyName
Get the entityFriendlyName property: Friendly name of the entity on which the current job is executing.- Returns:
- the entityFriendlyName value.
-
withEntityFriendlyName
Set the entityFriendlyName property: Friendly name of the entity on which the current job is executing.- Parameters:
entityFriendlyName
- the entityFriendlyName value to set.- Returns:
- the Job object itself.
-
backupManagementType
Get the backupManagementType property: Backup management type to execute the current job.- Returns:
- the backupManagementType value.
-
withBackupManagementType
Set the backupManagementType property: Backup management type to execute the current job.- Parameters:
backupManagementType
- the backupManagementType value to set.- Returns:
- the Job object itself.
-
operation
Get the operation property: The operation name.- Returns:
- the operation value.
-
withOperation
Set the operation property: The operation name.- Parameters:
operation
- the operation value to set.- Returns:
- the Job object itself.
-
status
Get the status property: Job status.- Returns:
- the status value.
-
withStatus
Set the status property: Job status.- Parameters:
status
- the status value to set.- Returns:
- the Job object itself.
-
startTime
Get the startTime property: The start time.- Returns:
- the startTime value.
-
withStartTime
Set the startTime property: The start time.- Parameters:
startTime
- the startTime value to set.- Returns:
- the Job object itself.
-
endTime
Get the endTime property: The end time.- Returns:
- the endTime value.
-
withEndTime
Set the endTime property: The end time.- Parameters:
endTime
- the endTime value to set.- Returns:
- the Job object itself.
-
activityId
Get the activityId property: ActivityId of job.- Returns:
- the activityId value.
-
withActivityId
Set the activityId property: ActivityId of job.- Parameters:
activityId
- the activityId value to set.- Returns:
- the Job object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-