Class AzureSqlProtectedItem
java.lang.Object
com.azure.resourcemanager.recoveryservicesbackup.models.ProtectedItem
com.azure.resourcemanager.recoveryservicesbackup.models.AzureSqlProtectedItem
Azure SQL workload-specific backup item.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the extendedInfo property: Additional information for this backup item.Get the protectedItemDataId property: Internal ID of a backup item.Get the protectionState property: Backup state of the backed up item.void
validate()
Validates the instance.withBackupSetName
(String backupSetName) Set the backupSetName property: Name of the backup set the backup item belongs to.withContainerName
(String containerName) Set the containerName property: Unique name of container.withCreateMode
(CreateMode createMode) Set the createMode property: Create mode to indicate recovery of existing soft deleted data source or creation of new data source.withDeferredDeleteTimeInUtc
(OffsetDateTime deferredDeleteTimeInUtc) Set the deferredDeleteTimeInUtc property: Time for deferred deletion in UTC.withDeferredDeleteTimeRemaining
(String deferredDeleteTimeRemaining) Set the deferredDeleteTimeRemaining property: Time remaining before the DS marked for deferred delete is permanently deleted.withExtendedInfo
(AzureSqlProtectedItemExtendedInfo extendedInfo) Set the extendedInfo property: Additional information for this backup item.withIsArchiveEnabled
(Boolean isArchiveEnabled) Set the isArchiveEnabled property: Flag to identify whether datasource is protected in archive.withIsDeferredDeleteScheduleUpcoming
(Boolean isDeferredDeleteScheduleUpcoming) Set the isDeferredDeleteScheduleUpcoming property: Flag to identify whether the deferred deleted DS is to be purged soon.withIsRehydrate
(Boolean isRehydrate) Set the isRehydrate property: Flag to identify that deferred deleted DS is to be moved into Pause state.withIsScheduledForDeferredDelete
(Boolean isScheduledForDeferredDelete) Set the isScheduledForDeferredDelete property: Flag to identify whether the DS is scheduled for deferred delete.withLastRecoveryPoint
(OffsetDateTime lastRecoveryPoint) Set the lastRecoveryPoint property: Timestamp when the last (latest) backup copy was created for this backup item.withPolicyId
(String policyId) Set the policyId property: ID of the backup policy with which this item is backed up.withPolicyName
(String policyName) Set the policyName property: Name of the policy used for protection.withProtectedItemDataId
(String protectedItemDataId) Set the protectedItemDataId property: Internal ID of a backup item.withProtectionState
(ProtectedItemState protectionState) Set the protectionState property: Backup state of the backed up item.withResourceGuardOperationRequests
(List<String> resourceGuardOperationRequests) Set the resourceGuardOperationRequests property: ResourceGuardOperationRequests on which LAC check will be performed.withSoftDeleteRetentionPeriod
(Integer softDeleteRetentionPeriod) Set the softDeleteRetentionPeriod property: Soft delete retention period in days.withSourceResourceId
(String sourceResourceId) Set the sourceResourceId property: ARM ID of the resource to be backed up.Methods inherited from class com.azure.resourcemanager.recoveryservicesbackup.models.ProtectedItem
backupManagementType, backupSetName, containerName, createMode, deferredDeleteTimeInUtc, deferredDeleteTimeRemaining, isArchiveEnabled, isDeferredDeleteScheduleUpcoming, isRehydrate, isScheduledForDeferredDelete, lastRecoveryPoint, policyId, policyName, resourceGuardOperationRequests, softDeleteRetentionPeriod, sourceResourceId, workloadType
-
Constructor Details
-
AzureSqlProtectedItem
public AzureSqlProtectedItem()Creates an instance of AzureSqlProtectedItem class.
-
-
Method Details
-
protectedItemDataId
Get the protectedItemDataId property: Internal ID of a backup item. Used by Azure SQL Backup engine to contact Recovery Services.- Returns:
- the protectedItemDataId value.
-
withProtectedItemDataId
Set the protectedItemDataId property: Internal ID of a backup item. Used by Azure SQL Backup engine to contact Recovery Services.- Parameters:
protectedItemDataId
- the protectedItemDataId value to set.- Returns:
- the AzureSqlProtectedItem object itself.
-
protectionState
Get the protectionState property: Backup state of the backed up item.- Returns:
- the protectionState value.
-
withProtectionState
Set the protectionState property: Backup state of the backed up item.- Parameters:
protectionState
- the protectionState value to set.- Returns:
- the AzureSqlProtectedItem object itself.
-
extendedInfo
Get the extendedInfo property: Additional information for this backup item.- Returns:
- the extendedInfo value.
-
withExtendedInfo
Set the extendedInfo property: Additional information for this backup item.- Parameters:
extendedInfo
- the extendedInfo value to set.- Returns:
- the AzureSqlProtectedItem object itself.
-
withContainerName
Set the containerName property: Unique name of container.- Overrides:
withContainerName
in classProtectedItem
- Parameters:
containerName
- the containerName value to set.- Returns:
- the ProtectedItem object itself.
-
withSourceResourceId
Set the sourceResourceId property: ARM ID of the resource to be backed up.- Overrides:
withSourceResourceId
in classProtectedItem
- Parameters:
sourceResourceId
- the sourceResourceId value to set.- Returns:
- the ProtectedItem object itself.
-
withPolicyId
Set the policyId property: ID of the backup policy with which this item is backed up.- Overrides:
withPolicyId
in classProtectedItem
- Parameters:
policyId
- the policyId value to set.- Returns:
- the ProtectedItem object itself.
-
withLastRecoveryPoint
Set the lastRecoveryPoint property: Timestamp when the last (latest) backup copy was created for this backup item.- Overrides:
withLastRecoveryPoint
in classProtectedItem
- Parameters:
lastRecoveryPoint
- the lastRecoveryPoint value to set.- Returns:
- the ProtectedItem object itself.
-
withBackupSetName
Set the backupSetName property: Name of the backup set the backup item belongs to.- Overrides:
withBackupSetName
in classProtectedItem
- Parameters:
backupSetName
- the backupSetName value to set.- Returns:
- the ProtectedItem object itself.
-
withCreateMode
Set the createMode property: Create mode to indicate recovery of existing soft deleted data source or creation of new data source.- Overrides:
withCreateMode
in classProtectedItem
- Parameters:
createMode
- the createMode value to set.- Returns:
- the ProtectedItem object itself.
-
withDeferredDeleteTimeInUtc
Set the deferredDeleteTimeInUtc property: Time for deferred deletion in UTC.- Overrides:
withDeferredDeleteTimeInUtc
in classProtectedItem
- Parameters:
deferredDeleteTimeInUtc
- the deferredDeleteTimeInUtc value to set.- Returns:
- the ProtectedItem object itself.
-
withIsScheduledForDeferredDelete
Set the isScheduledForDeferredDelete property: Flag to identify whether the DS is scheduled for deferred delete.- Overrides:
withIsScheduledForDeferredDelete
in classProtectedItem
- Parameters:
isScheduledForDeferredDelete
- the isScheduledForDeferredDelete value to set.- Returns:
- the ProtectedItem object itself.
-
withDeferredDeleteTimeRemaining
Set the deferredDeleteTimeRemaining property: Time remaining before the DS marked for deferred delete is permanently deleted.- Overrides:
withDeferredDeleteTimeRemaining
in classProtectedItem
- Parameters:
deferredDeleteTimeRemaining
- the deferredDeleteTimeRemaining value to set.- Returns:
- the ProtectedItem object itself.
-
withIsDeferredDeleteScheduleUpcoming
public AzureSqlProtectedItem withIsDeferredDeleteScheduleUpcoming(Boolean isDeferredDeleteScheduleUpcoming) Set the isDeferredDeleteScheduleUpcoming property: Flag to identify whether the deferred deleted DS is to be purged soon.- Overrides:
withIsDeferredDeleteScheduleUpcoming
in classProtectedItem
- Parameters:
isDeferredDeleteScheduleUpcoming
- the isDeferredDeleteScheduleUpcoming value to set.- Returns:
- the ProtectedItem object itself.
-
withIsRehydrate
Set the isRehydrate property: Flag to identify that deferred deleted DS is to be moved into Pause state.- Overrides:
withIsRehydrate
in classProtectedItem
- Parameters:
isRehydrate
- the isRehydrate value to set.- Returns:
- the ProtectedItem object itself.
-
withResourceGuardOperationRequests
public AzureSqlProtectedItem withResourceGuardOperationRequests(List<String> resourceGuardOperationRequests) Set the resourceGuardOperationRequests property: ResourceGuardOperationRequests on which LAC check will be performed.- Overrides:
withResourceGuardOperationRequests
in classProtectedItem
- Parameters:
resourceGuardOperationRequests
- the resourceGuardOperationRequests value to set.- Returns:
- the ProtectedItem object itself.
-
withIsArchiveEnabled
Set the isArchiveEnabled property: Flag to identify whether datasource is protected in archive.- Overrides:
withIsArchiveEnabled
in classProtectedItem
- Parameters:
isArchiveEnabled
- the isArchiveEnabled value to set.- Returns:
- the ProtectedItem object itself.
-
withPolicyName
Set the policyName property: Name of the policy used for protection.- Overrides:
withPolicyName
in classProtectedItem
- Parameters:
policyName
- the policyName value to set.- Returns:
- the ProtectedItem object itself.
-
withSoftDeleteRetentionPeriod
Set the softDeleteRetentionPeriod property: Soft delete retention period in days.- Overrides:
withSoftDeleteRetentionPeriod
in classProtectedItem
- Parameters:
softDeleteRetentionPeriod
- the softDeleteRetentionPeriod value to set.- Returns:
- the ProtectedItem object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classProtectedItem
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-