Class Job
- 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 Summary
Constructors Constructor Description Job()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
activityId()
Get the activityId property: ActivityId of job.BackupManagementType
backupManagementType()
Get the backupManagementType property: Backup management type to execute the current job.OffsetDateTime
endTime()
Get the endTime property: The end time.String
entityFriendlyName()
Get the entityFriendlyName property: Friendly name of the entity on which the current job is executing.String
operation()
Get the operation property: The operation name.OffsetDateTime
startTime()
Get the startTime property: The start time.String
status()
Get the status property: Job status.void
validate()
Validates the instance.Job
withActivityId(String activityId)
Set the activityId property: ActivityId of job.Job
withBackupManagementType(BackupManagementType backupManagementType)
Set the backupManagementType property: Backup management type to execute the current job.Job
withEndTime(OffsetDateTime endTime)
Set the endTime property: The end time.Job
withEntityFriendlyName(String entityFriendlyName)
Set the entityFriendlyName property: Friendly name of the entity on which the current job is executing.Job
withOperation(String operation)
Set the operation property: The operation name.Job
withStartTime(OffsetDateTime startTime)
Set the startTime property: The start time.Job
withStatus(String status)
Set the status property: Job status.
-
-
-
Method Detail
-
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.
-
-