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