Class MabJob
- java.lang.Object
-
- com.azure.resourcemanager.recoveryservicesbackup.models.Job
-
- com.azure.resourcemanager.recoveryservicesbackup.models.MabJob
-
public final class MabJob extends Job
MAB workload-specific job.
-
-
Constructor Summary
Constructors Constructor Description MabJob()
-
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 jobs like cancel/retry.Duration
duration()
Get the duration property: Time taken by job to run.List<MabErrorInfo>
errorDetails()
Get the errorDetails property: The errors.MabJobExtendedInfo
extendedInfo()
Get the extendedInfo property: Additional information on the job.String
mabServerName()
Get the mabServerName property: Name of server protecting the DS.MabServerType
mabServerType()
Get the mabServerType property: Server type of MAB container.void
validate()
Validates the instance.MabJob
withActionsInfo(List<JobSupportedAction> actionsInfo)
Set the actionsInfo property: The state/actions applicable on jobs like cancel/retry.MabJob
withActivityId(String activityId)
Set the activityId property: ActivityId of job.MabJob
withBackupManagementType(BackupManagementType backupManagementType)
Set the backupManagementType property: Backup management type to execute the current job.MabJob
withDuration(Duration duration)
Set the duration property: Time taken by job to run.MabJob
withEndTime(OffsetDateTime endTime)
Set the endTime property: The end time.MabJob
withEntityFriendlyName(String entityFriendlyName)
Set the entityFriendlyName property: Friendly name of the entity on which the current job is executing.MabJob
withErrorDetails(List<MabErrorInfo> errorDetails)
Set the errorDetails property: The errors.MabJob
withExtendedInfo(MabJobExtendedInfo extendedInfo)
Set the extendedInfo property: Additional information on the job.MabJob
withMabServerName(String mabServerName)
Set the mabServerName property: Name of server protecting the DS.MabJob
withMabServerType(MabServerType mabServerType)
Set the mabServerType property: Server type of MAB container.MabJob
withOperation(String operation)
Set the operation property: The operation name.MabJob
withStartTime(OffsetDateTime startTime)
Set the startTime property: The start time.MabJob
withStatus(String status)
Set the status property: Job status.MabJob
withWorkloadType(WorkloadType workloadType)
Set the workloadType property: Workload type of backup item.WorkloadType
workloadType()
Get the workloadType property: Workload 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 taken by job to run.- Returns:
- the duration value.
-
withDuration
public MabJob withDuration(Duration duration)
Set the duration property: Time taken by job to run.- Parameters:
duration
- the duration value to set.- Returns:
- the MabJob object itself.
-
actionsInfo
public List<JobSupportedAction> actionsInfo()
Get the actionsInfo property: The state/actions applicable on jobs like cancel/retry.- Returns:
- the actionsInfo value.
-
withActionsInfo
public MabJob withActionsInfo(List<JobSupportedAction> actionsInfo)
Set the actionsInfo property: The state/actions applicable on jobs like cancel/retry.- Parameters:
actionsInfo
- the actionsInfo value to set.- Returns:
- the MabJob object itself.
-
mabServerName
public String mabServerName()
Get the mabServerName property: Name of server protecting the DS.- Returns:
- the mabServerName value.
-
withMabServerName
public MabJob withMabServerName(String mabServerName)
Set the mabServerName property: Name of server protecting the DS.- Parameters:
mabServerName
- the mabServerName value to set.- Returns:
- the MabJob object itself.
-
mabServerType
public MabServerType mabServerType()
Get the mabServerType property: Server type of MAB container.- Returns:
- the mabServerType value.
-
withMabServerType
public MabJob withMabServerType(MabServerType mabServerType)
Set the mabServerType property: Server type of MAB container.- Parameters:
mabServerType
- the mabServerType value to set.- Returns:
- the MabJob object itself.
-
workloadType
public WorkloadType workloadType()
Get the workloadType property: Workload type of backup item.- Returns:
- the workloadType value.
-
withWorkloadType
public MabJob withWorkloadType(WorkloadType workloadType)
Set the workloadType property: Workload type of backup item.- Parameters:
workloadType
- the workloadType value to set.- Returns:
- the MabJob object itself.
-
errorDetails
public List<MabErrorInfo> errorDetails()
Get the errorDetails property: The errors.- Returns:
- the errorDetails value.
-
withErrorDetails
public MabJob withErrorDetails(List<MabErrorInfo> errorDetails)
Set the errorDetails property: The errors.- Parameters:
errorDetails
- the errorDetails value to set.- Returns:
- the MabJob object itself.
-
extendedInfo
public MabJobExtendedInfo extendedInfo()
Get the extendedInfo property: Additional information on the job.- Returns:
- the extendedInfo value.
-
withExtendedInfo
public MabJob withExtendedInfo(MabJobExtendedInfo extendedInfo)
Set the extendedInfo property: Additional information on the job.- Parameters:
extendedInfo
- the extendedInfo value to set.- Returns:
- the MabJob object itself.
-
withEntityFriendlyName
public MabJob 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 MabJob 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 MabJob 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 MabJob 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 MabJob 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 MabJob 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 MabJob 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.
-
-