java.lang.Object
com.azure.resourcemanager.recoveryservicesbackup.models.Job
Direct Known Subclasses:
AzureIaaSvmJob, AzureIaaSvmJobV2, AzureStorageJob, AzureWorkloadJob, DpmJob, MabJob, VaultJob

public class Job extends Object
Defines workload agnostic properties for a job.
  • Constructor Details

    • Job

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

    • entityFriendlyName

      public String entityFriendlyName()
      Get the entityFriendlyName property: Friendly name of the entity on which the current job is executing.
      Returns:
      the entityFriendlyName value.
    • withEntityFriendlyName

      public Job withEntityFriendlyName(String entityFriendlyName)
      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

      public BackupManagementType backupManagementType()
      Get the backupManagementType property: Backup management type to execute the current job.
      Returns:
      the backupManagementType value.
    • withBackupManagementType

      public Job withBackupManagementType(BackupManagementType backupManagementType)
      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

      public String operation()
      Get the operation property: The operation name.
      Returns:
      the operation value.
    • withOperation

      public Job withOperation(String operation)
      Set the operation property: The operation name.
      Parameters:
      operation - the operation value to set.
      Returns:
      the Job object itself.
    • status

      public String status()
      Get the status property: Job status.
      Returns:
      the status value.
    • withStatus

      public Job withStatus(String status)
      Set the status property: Job status.
      Parameters:
      status - the status value to set.
      Returns:
      the Job object itself.
    • startTime

      public OffsetDateTime startTime()
      Get the startTime property: The start time.
      Returns:
      the startTime value.
    • withStartTime

      public Job withStartTime(OffsetDateTime startTime)
      Set the startTime property: The start time.
      Parameters:
      startTime - the startTime value to set.
      Returns:
      the Job object itself.
    • endTime

      public OffsetDateTime endTime()
      Get the endTime property: The end time.
      Returns:
      the endTime value.
    • withEndTime

      public Job withEndTime(OffsetDateTime endTime)
      Set the endTime property: The end time.
      Parameters:
      endTime - the endTime value to set.
      Returns:
      the Job object itself.
    • activityId

      public String activityId()
      Get the activityId property: ActivityId of job.
      Returns:
      the activityId value.
    • withActivityId

      public Job withActivityId(String activityId)
      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.