Class AzureStorageJob
- java.lang.Object
-
- com.azure.resourcemanager.recoveryservicesbackup.models.Job
-
- com.azure.resourcemanager.recoveryservicesbackup.models.AzureStorageJob
-
public final class AzureStorageJob extends Job
Azure storage specific job.
-
-
Constructor Summary
Constructors Constructor Description AzureStorageJob()
-
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<AzureStorageErrorInfo>
errorDetails()
Get the errorDetails property: Error details on execution of this job.AzureStorageJobExtendedInfo
extendedInfo()
Get the extendedInfo property: Additional information about the job.Boolean
isUserTriggered()
Get the isUserTriggered property: Indicated that whether the job is adhoc(true) or scheduled(false).String
storageAccountName()
Get the storageAccountName property: Specifies friendly name of the storage account.String
storageAccountVersion()
Get the storageAccountVersion property: Specifies whether the Storage account is a Classic or an Azure Resource Manager Storage account.void
validate()
Validates the instance.AzureStorageJob
withActionsInfo(List<JobSupportedAction> actionsInfo)
Set the actionsInfo property: Gets or sets the state/actions applicable on this job like cancel/retry.AzureStorageJob
withActivityId(String activityId)
Set the activityId property: ActivityId of job.AzureStorageJob
withBackupManagementType(BackupManagementType backupManagementType)
Set the backupManagementType property: Backup management type to execute the current job.AzureStorageJob
withDuration(Duration duration)
Set the duration property: Time elapsed during the execution of this job.AzureStorageJob
withEndTime(OffsetDateTime endTime)
Set the endTime property: The end time.AzureStorageJob
withEntityFriendlyName(String entityFriendlyName)
Set the entityFriendlyName property: Friendly name of the entity on which the current job is executing.AzureStorageJob
withErrorDetails(List<AzureStorageErrorInfo> errorDetails)
Set the errorDetails property: Error details on execution of this job.AzureStorageJob
withExtendedInfo(AzureStorageJobExtendedInfo extendedInfo)
Set the extendedInfo property: Additional information about the job.AzureStorageJob
withIsUserTriggered(Boolean isUserTriggered)
Set the isUserTriggered property: Indicated that whether the job is adhoc(true) or scheduled(false).AzureStorageJob
withOperation(String operation)
Set the operation property: The operation name.AzureStorageJob
withStartTime(OffsetDateTime startTime)
Set the startTime property: The start time.AzureStorageJob
withStatus(String status)
Set the status property: Job status.AzureStorageJob
withStorageAccountName(String storageAccountName)
Set the storageAccountName property: Specifies friendly name of the storage account.AzureStorageJob
withStorageAccountVersion(String storageAccountVersion)
Set the storageAccountVersion property: Specifies whether the Storage account is a Classic or an Azure Resource Manager Storage account.-
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 elapsed during the execution of this job.- Returns:
- the duration value.
-
withDuration
public AzureStorageJob withDuration(Duration duration)
Set the duration property: Time elapsed during the execution of this job.- Parameters:
duration
- the duration value to set.- Returns:
- the AzureStorageJob 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 AzureStorageJob 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 AzureStorageJob object itself.
-
errorDetails
public List<AzureStorageErrorInfo> errorDetails()
Get the errorDetails property: Error details on execution of this job.- Returns:
- the errorDetails value.
-
withErrorDetails
public AzureStorageJob withErrorDetails(List<AzureStorageErrorInfo> errorDetails)
Set the errorDetails property: Error details on execution of this job.- Parameters:
errorDetails
- the errorDetails value to set.- Returns:
- the AzureStorageJob object itself.
-
storageAccountName
public String storageAccountName()
Get the storageAccountName property: Specifies friendly name of the storage account.- Returns:
- the storageAccountName value.
-
withStorageAccountName
public AzureStorageJob withStorageAccountName(String storageAccountName)
Set the storageAccountName property: Specifies friendly name of the storage account.- Parameters:
storageAccountName
- the storageAccountName value to set.- Returns:
- the AzureStorageJob object itself.
-
storageAccountVersion
public String storageAccountVersion()
Get the storageAccountVersion property: Specifies whether the Storage account is a Classic or an Azure Resource Manager Storage account.- Returns:
- the storageAccountVersion value.
-
withStorageAccountVersion
public AzureStorageJob withStorageAccountVersion(String storageAccountVersion)
Set the storageAccountVersion property: Specifies whether the Storage account is a Classic or an Azure Resource Manager Storage account.- Parameters:
storageAccountVersion
- the storageAccountVersion value to set.- Returns:
- the AzureStorageJob object itself.
-
extendedInfo
public AzureStorageJobExtendedInfo extendedInfo()
Get the extendedInfo property: Additional information about the job.- Returns:
- the extendedInfo value.
-
withExtendedInfo
public AzureStorageJob withExtendedInfo(AzureStorageJobExtendedInfo extendedInfo)
Set the extendedInfo property: Additional information about the job.- Parameters:
extendedInfo
- the extendedInfo value to set.- Returns:
- the AzureStorageJob object itself.
-
isUserTriggered
public Boolean isUserTriggered()
Get the isUserTriggered property: Indicated that whether the job is adhoc(true) or scheduled(false).- Returns:
- the isUserTriggered value.
-
withIsUserTriggered
public AzureStorageJob withIsUserTriggered(Boolean isUserTriggered)
Set the isUserTriggered property: Indicated that whether the job is adhoc(true) or scheduled(false).- Parameters:
isUserTriggered
- the isUserTriggered value to set.- Returns:
- the AzureStorageJob object itself.
-
withEntityFriendlyName
public AzureStorageJob 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 AzureStorageJob 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 AzureStorageJob 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 AzureStorageJob 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 AzureStorageJob 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 AzureStorageJob 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 AzureStorageJob 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.
-
-