Class AzureWorkloadJob
- java.lang.Object
-
- com.azure.resourcemanager.recoveryservicesbackup.models.Job
-
- com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadJob
-
public final class AzureWorkloadJob extends Job
Azure storage specific job.
-
-
Constructor Summary
Constructors Constructor Description AzureWorkloadJob()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<JobSupportedAction>
actionsInfo()
Get the actionsInfo property: Gets or sets the state/actions applicable on this job like cancel/retry.Duration
duration()
Get the duration property: Time elapsed during the execution of this job.List<AzureWorkloadErrorInfo>
errorDetails()
Get the errorDetails property: Error details on execution of this job.AzureWorkloadJobExtendedInfo
extendedInfo()
Get the extendedInfo property: Additional information about the job.void
validate()
Validates the instance.AzureWorkloadJob
withActionsInfo(List<JobSupportedAction> actionsInfo)
Set the actionsInfo property: Gets or sets the state/actions applicable on this job like cancel/retry.AzureWorkloadJob
withActivityId(String activityId)
Set the activityId property: ActivityId of job.AzureWorkloadJob
withBackupManagementType(BackupManagementType backupManagementType)
Set the backupManagementType property: Backup management type to execute the current job.AzureWorkloadJob
withDuration(Duration duration)
Set the duration property: Time elapsed during the execution of this job.AzureWorkloadJob
withEndTime(OffsetDateTime endTime)
Set the endTime property: The end time.AzureWorkloadJob
withEntityFriendlyName(String entityFriendlyName)
Set the entityFriendlyName property: Friendly name of the entity on which the current job is executing.AzureWorkloadJob
withErrorDetails(List<AzureWorkloadErrorInfo> errorDetails)
Set the errorDetails property: Error details on execution of this job.AzureWorkloadJob
withExtendedInfo(AzureWorkloadJobExtendedInfo extendedInfo)
Set the extendedInfo property: Additional information about the job.AzureWorkloadJob
withOperation(String operation)
Set the operation property: The operation name.AzureWorkloadJob
withStartTime(OffsetDateTime startTime)
Set the startTime property: The start time.AzureWorkloadJob
withStatus(String status)
Set the status property: Job status.AzureWorkloadJob
withWorkloadType(String workloadType)
Set the workloadType property: Workload type of the job.String
workloadType()
Get the workloadType property: Workload type of the job.-
Methods inherited from class com.azure.resourcemanager.recoveryservicesbackup.models.Job
activityId, backupManagementType, endTime, entityFriendlyName, operation, startTime, status
-
-
-
-
Method Detail
-
workloadType
public String workloadType()
Get the workloadType property: Workload type of the job.- Returns:
- the workloadType value.
-
withWorkloadType
public AzureWorkloadJob withWorkloadType(String workloadType)
Set the workloadType property: Workload type of the job.- Parameters:
workloadType
- the workloadType value to set.- Returns:
- the AzureWorkloadJob object itself.
-
duration
public Duration duration()
Get the duration property: Time elapsed during the execution of this job.- Returns:
- the duration value.
-
withDuration
public AzureWorkloadJob withDuration(Duration duration)
Set the duration property: Time elapsed during the execution of this job.- Parameters:
duration
- the duration value to set.- Returns:
- the AzureWorkloadJob object itself.
-
actionsInfo
public List<JobSupportedAction> actionsInfo()
Get the actionsInfo property: Gets or sets the state/actions applicable on this job like cancel/retry.- Returns:
- the actionsInfo value.
-
withActionsInfo
public AzureWorkloadJob withActionsInfo(List<JobSupportedAction> actionsInfo)
Set the actionsInfo property: Gets or sets the state/actions applicable on this job like cancel/retry.- Parameters:
actionsInfo
- the actionsInfo value to set.- Returns:
- the AzureWorkloadJob object itself.
-
errorDetails
public List<AzureWorkloadErrorInfo> errorDetails()
Get the errorDetails property: Error details on execution of this job.- Returns:
- the errorDetails value.
-
withErrorDetails
public AzureWorkloadJob withErrorDetails(List<AzureWorkloadErrorInfo> errorDetails)
Set the errorDetails property: Error details on execution of this job.- Parameters:
errorDetails
- the errorDetails value to set.- Returns:
- the AzureWorkloadJob object itself.
-
extendedInfo
public AzureWorkloadJobExtendedInfo extendedInfo()
Get the extendedInfo property: Additional information about the job.- Returns:
- the extendedInfo value.
-
withExtendedInfo
public AzureWorkloadJob withExtendedInfo(AzureWorkloadJobExtendedInfo extendedInfo)
Set the extendedInfo property: Additional information about the job.- Parameters:
extendedInfo
- the extendedInfo value to set.- Returns:
- the AzureWorkloadJob object itself.
-
withEntityFriendlyName
public AzureWorkloadJob 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 AzureWorkloadJob 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 AzureWorkloadJob 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 AzureWorkloadJob 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 AzureWorkloadJob 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 AzureWorkloadJob 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 AzureWorkloadJob 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.
-
-