Class AzureBackupJob
java.lang.Object
com.azure.resourcemanager.dataprotection.models.AzureBackupJob
AzureBackup Job Class.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the activityId property: Job Activity Id.Get the backupInstanceFriendlyName property: Name of the Backup Instance.Get the backupInstanceId property: ARM ID of the Backup Instance.Get the dataSourceId property: ARM ID of the DataSource.Get the dataSourceLocation property: Location of the DataSource.Get the dataSourceName property: User Friendly Name of the DataSource.Get the dataSourceSetName property: Data Source Set Name of the DataSource.Get the dataSourceType property: Type of DataSource.Get the destinationDataStoreName property: The destinationDataStoreName property.duration()
Get the duration property: Total run time of the job.endTime()
Get the endTime property: EndTime of the job(in UTC).Get the errorDetails property: A List, detailing the errors related to the job.etag()
Get the etag property: The etag property.Get the extendedInfo property: Extended Information about the job.boolean
Get the isUserTriggered property: Indicated that whether the job is adhoc(true) or scheduled(false).Get the operation property: It indicates the type of Job i.e.Get the operationCategory property: It indicates the type of Job i.e.policyId()
Get the policyId property: ARM ID of the policy.Get the policyName property: Name of the policy.boolean
Get the progressEnabled property: Indicated whether progress is enabled for the job.Get the progressUrl property: Url which contains job's progress.Get the restoreType property: It indicates the sub type of operation i.e.Get the sourceDataStoreName property: The sourceDataStoreName property.Get the sourceResourceGroup property: Resource Group Name of the Datasource.Get the sourceSubscriptionId property: SubscriptionId corresponding to the DataSource.Get the startTime property: StartTime of the job(in UTC).status()
Get the status property: Status of the job like InProgress/Success/Failed/Cancelled/SuccessWithWarning.Get the subscriptionId property: Subscription Id of the corresponding backup vault.Get the supportedActions property: List of supported actions.void
validate()
Validates the instance.Get the vaultName property: Name of the vault.withActivityId
(String activityId) Set the activityId property: Job Activity Id.withBackupInstanceFriendlyName
(String backupInstanceFriendlyName) Set the backupInstanceFriendlyName property: Name of the Backup Instance.withDataSourceId
(String dataSourceId) Set the dataSourceId property: ARM ID of the DataSource.withDataSourceLocation
(String dataSourceLocation) Set the dataSourceLocation property: Location of the DataSource.withDataSourceName
(String dataSourceName) Set the dataSourceName property: User Friendly Name of the DataSource.withDataSourceSetName
(String dataSourceSetName) Set the dataSourceSetName property: Data Source Set Name of the DataSource.withDataSourceType
(String dataSourceType) Set the dataSourceType property: Type of DataSource.withDestinationDataStoreName
(String destinationDataStoreName) Set the destinationDataStoreName property: The destinationDataStoreName property.withDuration
(String duration) Set the duration property: Total run time of the job.Set the etag property: The etag property.withIsUserTriggered
(boolean isUserTriggered) Set the isUserTriggered property: Indicated that whether the job is adhoc(true) or scheduled(false).withOperation
(String operation) Set the operation property: It indicates the type of Job i.e.withOperationCategory
(String operationCategory) Set the operationCategory property: It indicates the type of Job i.e.withProgressEnabled
(boolean progressEnabled) Set the progressEnabled property: Indicated whether progress is enabled for the job.withSourceDataStoreName
(String sourceDataStoreName) Set the sourceDataStoreName property: The sourceDataStoreName property.withSourceResourceGroup
(String sourceResourceGroup) Set the sourceResourceGroup property: Resource Group Name of the Datasource.withSourceSubscriptionId
(String sourceSubscriptionId) Set the sourceSubscriptionId property: SubscriptionId corresponding to the DataSource.withStartTime
(OffsetDateTime startTime) Set the startTime property: StartTime of the job(in UTC).withStatus
(String status) Set the status property: Status of the job like InProgress/Success/Failed/Cancelled/SuccessWithWarning.withSubscriptionId
(String subscriptionId) Set the subscriptionId property: Subscription Id of the corresponding backup vault.withSupportedActions
(List<String> supportedActions) Set the supportedActions property: List of supported actions.withVaultName
(String vaultName) Set the vaultName property: Name of the vault.
-
Constructor Details
-
AzureBackupJob
public AzureBackupJob()Creates an instance of AzureBackupJob class.
-
-
Method Details
-
activityId
Get the activityId property: Job Activity Id.- Returns:
- the activityId value.
-
withActivityId
Set the activityId property: Job Activity Id.- Parameters:
activityId
- the activityId value to set.- Returns:
- the AzureBackupJob object itself.
-
backupInstanceFriendlyName
Get the backupInstanceFriendlyName property: Name of the Backup Instance.- Returns:
- the backupInstanceFriendlyName value.
-
withBackupInstanceFriendlyName
Set the backupInstanceFriendlyName property: Name of the Backup Instance.- Parameters:
backupInstanceFriendlyName
- the backupInstanceFriendlyName value to set.- Returns:
- the AzureBackupJob object itself.
-
backupInstanceId
Get the backupInstanceId property: ARM ID of the Backup Instance.- Returns:
- the backupInstanceId value.
-
dataSourceId
Get the dataSourceId property: ARM ID of the DataSource.- Returns:
- the dataSourceId value.
-
withDataSourceId
Set the dataSourceId property: ARM ID of the DataSource.- Parameters:
dataSourceId
- the dataSourceId value to set.- Returns:
- the AzureBackupJob object itself.
-
dataSourceLocation
Get the dataSourceLocation property: Location of the DataSource.- Returns:
- the dataSourceLocation value.
-
withDataSourceLocation
Set the dataSourceLocation property: Location of the DataSource.- Parameters:
dataSourceLocation
- the dataSourceLocation value to set.- Returns:
- the AzureBackupJob object itself.
-
dataSourceName
Get the dataSourceName property: User Friendly Name of the DataSource.- Returns:
- the dataSourceName value.
-
withDataSourceName
Set the dataSourceName property: User Friendly Name of the DataSource.- Parameters:
dataSourceName
- the dataSourceName value to set.- Returns:
- the AzureBackupJob object itself.
-
dataSourceSetName
Get the dataSourceSetName property: Data Source Set Name of the DataSource.- Returns:
- the dataSourceSetName value.
-
withDataSourceSetName
Set the dataSourceSetName property: Data Source Set Name of the DataSource.- Parameters:
dataSourceSetName
- the dataSourceSetName value to set.- Returns:
- the AzureBackupJob object itself.
-
dataSourceType
Get the dataSourceType property: Type of DataSource.- Returns:
- the dataSourceType value.
-
withDataSourceType
Set the dataSourceType property: Type of DataSource.- Parameters:
dataSourceType
- the dataSourceType value to set.- Returns:
- the AzureBackupJob object itself.
-
duration
Get the duration property: Total run time of the job. ISO 8601 format.- Returns:
- the duration value.
-
withDuration
Set the duration property: Total run time of the job. ISO 8601 format.- Parameters:
duration
- the duration value to set.- Returns:
- the AzureBackupJob object itself.
-
endTime
Get the endTime property: EndTime of the job(in UTC).- Returns:
- the endTime value.
-
errorDetails
Get the errorDetails property: A List, detailing the errors related to the job.- Returns:
- the errorDetails value.
-
extendedInfo
Get the extendedInfo property: Extended Information about the job.- Returns:
- the extendedInfo value.
-
isUserTriggered
public boolean isUserTriggered()Get the isUserTriggered property: Indicated that whether the job is adhoc(true) or scheduled(false).- Returns:
- the isUserTriggered value.
-
withIsUserTriggered
Set the isUserTriggered property: Indicated that whether the job is adhoc(true) or scheduled(false).- Parameters:
isUserTriggered
- the isUserTriggered value to set.- Returns:
- the AzureBackupJob object itself.
-
operation
Get the operation property: It indicates the type of Job i.e. Backup:full/log/diff ;Restore:ALR/OLR; Tiering:Backup/Archive ; Management:ConfigureProtection/UnConfigure.- Returns:
- the operation value.
-
withOperation
Set the operation property: It indicates the type of Job i.e. Backup:full/log/diff ;Restore:ALR/OLR; Tiering:Backup/Archive ; Management:ConfigureProtection/UnConfigure.- Parameters:
operation
- the operation value to set.- Returns:
- the AzureBackupJob object itself.
-
operationCategory
Get the operationCategory property: It indicates the type of Job i.e. Backup/Restore/Tiering/Management.- Returns:
- the operationCategory value.
-
withOperationCategory
Set the operationCategory property: It indicates the type of Job i.e. Backup/Restore/Tiering/Management.- Parameters:
operationCategory
- the operationCategory value to set.- Returns:
- the AzureBackupJob object itself.
-
policyId
Get the policyId property: ARM ID of the policy.- Returns:
- the policyId value.
-
policyName
Get the policyName property: Name of the policy.- Returns:
- the policyName value.
-
progressEnabled
public boolean progressEnabled()Get the progressEnabled property: Indicated whether progress is enabled for the job.- Returns:
- the progressEnabled value.
-
withProgressEnabled
Set the progressEnabled property: Indicated whether progress is enabled for the job.- Parameters:
progressEnabled
- the progressEnabled value to set.- Returns:
- the AzureBackupJob object itself.
-
progressUrl
Get the progressUrl property: Url which contains job's progress.- Returns:
- the progressUrl value.
-
restoreType
Get the restoreType property: It indicates the sub type of operation i.e. in case of Restore it can be ALR/OLR.- Returns:
- the restoreType value.
-
sourceResourceGroup
Get the sourceResourceGroup property: Resource Group Name of the Datasource.- Returns:
- the sourceResourceGroup value.
-
withSourceResourceGroup
Set the sourceResourceGroup property: Resource Group Name of the Datasource.- Parameters:
sourceResourceGroup
- the sourceResourceGroup value to set.- Returns:
- the AzureBackupJob object itself.
-
sourceSubscriptionId
Get the sourceSubscriptionId property: SubscriptionId corresponding to the DataSource.- Returns:
- the sourceSubscriptionId value.
-
withSourceSubscriptionId
Set the sourceSubscriptionId property: SubscriptionId corresponding to the DataSource.- Parameters:
sourceSubscriptionId
- the sourceSubscriptionId value to set.- Returns:
- the AzureBackupJob object itself.
-
startTime
Get the startTime property: StartTime of the job(in UTC).- Returns:
- the startTime value.
-
withStartTime
Set the startTime property: StartTime of the job(in UTC).- Parameters:
startTime
- the startTime value to set.- Returns:
- the AzureBackupJob object itself.
-
status
Get the status property: Status of the job like InProgress/Success/Failed/Cancelled/SuccessWithWarning.- Returns:
- the status value.
-
withStatus
Set the status property: Status of the job like InProgress/Success/Failed/Cancelled/SuccessWithWarning.- Parameters:
status
- the status value to set.- Returns:
- the AzureBackupJob object itself.
-
subscriptionId
Get the subscriptionId property: Subscription Id of the corresponding backup vault.- Returns:
- the subscriptionId value.
-
withSubscriptionId
Set the subscriptionId property: Subscription Id of the corresponding backup vault.- Parameters:
subscriptionId
- the subscriptionId value to set.- Returns:
- the AzureBackupJob object itself.
-
supportedActions
Get the supportedActions property: List of supported actions.- Returns:
- the supportedActions value.
-
withSupportedActions
Set the supportedActions property: List of supported actions.- Parameters:
supportedActions
- the supportedActions value to set.- Returns:
- the AzureBackupJob object itself.
-
vaultName
Get the vaultName property: Name of the vault.- Returns:
- the vaultName value.
-
withVaultName
Set the vaultName property: Name of the vault.- Parameters:
vaultName
- the vaultName value to set.- Returns:
- the AzureBackupJob object itself.
-
etag
Get the etag property: The etag property.- Returns:
- the etag value.
-
withEtag
Set the etag property: The etag property.- Parameters:
etag
- the etag value to set.- Returns:
- the AzureBackupJob object itself.
-
sourceDataStoreName
Get the sourceDataStoreName property: The sourceDataStoreName property.- Returns:
- the sourceDataStoreName value.
-
withSourceDataStoreName
Set the sourceDataStoreName property: The sourceDataStoreName property.- Parameters:
sourceDataStoreName
- the sourceDataStoreName value to set.- Returns:
- the AzureBackupJob object itself.
-
destinationDataStoreName
Get the destinationDataStoreName property: The destinationDataStoreName property.- Returns:
- the destinationDataStoreName value.
-
withDestinationDataStoreName
Set the destinationDataStoreName property: The destinationDataStoreName property.- Parameters:
destinationDataStoreName
- the destinationDataStoreName value to set.- Returns:
- the AzureBackupJob object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-