Class DpmJob
java.lang.Object
com.azure.resourcemanager.recoveryservicesbackup.models.Job
com.azure.resourcemanager.recoveryservicesbackup.models.DpmJob
DPM workload-specific job object.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the actionsInfo property: The state/actions applicable on this job like cancel/retry.Get the containerName property: Name of cluster/server protecting current backup item, if any.Get the containerType property: Type of container.Get the dpmServerName property: DPM server name managing the backup item or backup job.duration()
Get the duration property: Time elapsed for job.Get the errorDetails property: The errors.Get the extendedInfo property: Additional information for this job.void
validate()
Validates the instance.withActionsInfo
(List<JobSupportedAction> actionsInfo) Set the actionsInfo property: The state/actions applicable on this job like cancel/retry.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.withContainerName
(String containerName) Set the containerName property: Name of cluster/server protecting current backup item, if any.withContainerType
(String containerType) Set the containerType property: Type of container.withDpmServerName
(String dpmServerName) Set the dpmServerName property: DPM server name managing the backup item or backup job.withDuration
(Duration duration) Set the duration property: Time elapsed for 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.withErrorDetails
(List<DpmErrorInfo> errorDetails) Set the errorDetails property: The errors.withExtendedInfo
(DpmJobExtendedInfo extendedInfo) Set the extendedInfo property: Additional information for this job.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.withWorkloadType
(String workloadType) Set the workloadType property: Type of backup item.Get the workloadType property: Type of backup item.Methods inherited from class com.azure.resourcemanager.recoveryservicesbackup.models.Job
activityId, backupManagementType, endTime, entityFriendlyName, operation, startTime, status
-
Constructor Details
-
DpmJob
public DpmJob()Creates an instance of DpmJob class.
-
-
Method Details
-
duration
Get the duration property: Time elapsed for job.- Returns:
- the duration value.
-
withDuration
Set the duration property: Time elapsed for job.- Parameters:
duration
- the duration value to set.- Returns:
- the DpmJob object itself.
-
dpmServerName
Get the dpmServerName property: DPM server name managing the backup item or backup job.- Returns:
- the dpmServerName value.
-
withDpmServerName
Set the dpmServerName property: DPM server name managing the backup item or backup job.- Parameters:
dpmServerName
- the dpmServerName value to set.- Returns:
- the DpmJob object itself.
-
containerName
Get the containerName property: Name of cluster/server protecting current backup item, if any.- Returns:
- the containerName value.
-
withContainerName
Set the containerName property: Name of cluster/server protecting current backup item, if any.- Parameters:
containerName
- the containerName value to set.- Returns:
- the DpmJob object itself.
-
containerType
Get the containerType property: Type of container.- Returns:
- the containerType value.
-
withContainerType
Set the containerType property: Type of container.- Parameters:
containerType
- the containerType value to set.- Returns:
- the DpmJob object itself.
-
workloadType
Get the workloadType property: Type of backup item.- Returns:
- the workloadType value.
-
withWorkloadType
Set the workloadType property: Type of backup item.- Parameters:
workloadType
- the workloadType value to set.- Returns:
- the DpmJob object itself.
-
actionsInfo
Get the actionsInfo property: The state/actions applicable on this job like cancel/retry.- Returns:
- the actionsInfo value.
-
withActionsInfo
Set the actionsInfo property: The state/actions applicable on this job like cancel/retry.- Parameters:
actionsInfo
- the actionsInfo value to set.- Returns:
- the DpmJob object itself.
-
errorDetails
Get the errorDetails property: The errors.- Returns:
- the errorDetails value.
-
withErrorDetails
Set the errorDetails property: The errors.- Parameters:
errorDetails
- the errorDetails value to set.- Returns:
- the DpmJob object itself.
-
extendedInfo
Get the extendedInfo property: Additional information for this job.- Returns:
- the extendedInfo value.
-
withExtendedInfo
Set the extendedInfo property: Additional information for this job.- Parameters:
extendedInfo
- the extendedInfo value to set.- Returns:
- the DpmJob object itself.
-
withEntityFriendlyName
Set the entityFriendlyName property: Friendly name of the entity on which the current job is executing.- Overrides:
withEntityFriendlyName
in classJob
- Parameters:
entityFriendlyName
- the entityFriendlyName value to set.- Returns:
- the Job object itself.
-
withBackupManagementType
Set the backupManagementType property: Backup management type to execute the current job.- Overrides:
withBackupManagementType
in classJob
- Parameters:
backupManagementType
- the backupManagementType value to set.- Returns:
- the Job object itself.
-
withOperation
Set the operation property: The operation name.- Overrides:
withOperation
in classJob
- Parameters:
operation
- the operation value to set.- Returns:
- the Job object itself.
-
withStatus
Set the status property: Job status.- Overrides:
withStatus
in classJob
- Parameters:
status
- the status value to set.- Returns:
- the Job object itself.
-
withStartTime
Set the startTime property: The start time.- Overrides:
withStartTime
in classJob
- Parameters:
startTime
- the startTime value to set.- Returns:
- the Job object itself.
-
withEndTime
Set the endTime property: The end time.- Overrides:
withEndTime
in classJob
- Parameters:
endTime
- the endTime value to set.- Returns:
- the Job object itself.
-
withActivityId
Set the activityId property: ActivityId of job.- Overrides:
withActivityId
in classJob
- Parameters:
activityId
- the activityId value to set.- Returns:
- the Job object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classJob
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-