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 Details

    • MabJob

      public MabJob()
      Creates an instance of MabJob class.
  • Method Details

    • 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 class Job
      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 class Job
      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 class Job
      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 class Job
      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 class Job
      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 class Job
      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 class Job
      Parameters:
      activityId - the activityId value to set.
      Returns:
      the Job object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class Job
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.