Class ProtectedItem
java.lang.Object
com.azure.resourcemanager.recoveryservicesbackup.models.ProtectedItem
- Direct Known Subclasses:
AzureFileshareProtectedItem
,AzureIaaSvmProtectedItem
,AzureSqlProtectedItem
,AzureVmWorkloadProtectedItem
,DpmProtectedItem
,GenericProtectedItem
,MabFileFolderProtectedItem
Base class for backup items.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the backupManagementType property: Type of backup management for the backed up item.Get the backupSetName property: Name of the backup set the backup item belongs to.Get the containerName property: Unique name of container.Get the createMode property: Create mode to indicate recovery of existing soft deleted data source or creation of new data source.Get the deferredDeleteTimeInUtc property: Time for deferred deletion in UTC.Get the deferredDeleteTimeRemaining property: Time remaining before the DS marked for deferred delete is permanently deleted.Get the isArchiveEnabled property: Flag to identify whether datasource is protected in archive.Get the isDeferredDeleteScheduleUpcoming property: Flag to identify whether the deferred deleted DS is to be purged soon.Get the isRehydrate property: Flag to identify that deferred deleted DS is to be moved into Pause state.Get the isScheduledForDeferredDelete property: Flag to identify whether the DS is scheduled for deferred delete.Get the lastRecoveryPoint property: Timestamp when the last (latest) backup copy was created for this backup item.policyId()
Get the policyId property: ID of the backup policy with which this item is backed up.Get the policyName property: Name of the policy used for protection.Get the resourceGuardOperationRequests property: ResourceGuardOperationRequests on which LAC check will be performed.Get the softDeleteRetentionPeriod property: Soft delete retention period in days.Get the sourceResourceId property: ARM ID of the resource to be backed up.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.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.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.Get the workloadType property: Type of workload this item represents.
-
Constructor Details
-
ProtectedItem
public ProtectedItem()Creates an instance of ProtectedItem class.
-
-
Method Details
-
backupManagementType
Get the backupManagementType property: Type of backup management for the backed up item.- Returns:
- the backupManagementType value.
-
workloadType
Get the workloadType property: Type of workload this item represents.- Returns:
- the workloadType value.
-
containerName
Get the containerName property: Unique name of container.- Returns:
- the containerName value.
-
withContainerName
Set the containerName property: Unique name of container.- Parameters:
containerName
- the containerName value to set.- Returns:
- the ProtectedItem object itself.
-
sourceResourceId
Get the sourceResourceId property: ARM ID of the resource to be backed up.- Returns:
- the sourceResourceId value.
-
withSourceResourceId
Set the sourceResourceId property: ARM ID of the resource to be backed up.- Parameters:
sourceResourceId
- the sourceResourceId value to set.- Returns:
- the ProtectedItem object itself.
-
policyId
Get the policyId property: ID of the backup policy with which this item is backed up.- Returns:
- the policyId value.
-
withPolicyId
Set the policyId property: ID of the backup policy with which this item is backed up.- Parameters:
policyId
- the policyId value to set.- Returns:
- the ProtectedItem object itself.
-
lastRecoveryPoint
Get the lastRecoveryPoint property: Timestamp when the last (latest) backup copy was created for this backup item.- Returns:
- the lastRecoveryPoint value.
-
withLastRecoveryPoint
Set the lastRecoveryPoint property: Timestamp when the last (latest) backup copy was created for this backup item.- Parameters:
lastRecoveryPoint
- the lastRecoveryPoint value to set.- Returns:
- the ProtectedItem object itself.
-
backupSetName
Get the backupSetName property: Name of the backup set the backup item belongs to.- Returns:
- the backupSetName value.
-
withBackupSetName
Set the backupSetName property: Name of the backup set the backup item belongs to.- Parameters:
backupSetName
- the backupSetName value to set.- Returns:
- the ProtectedItem object itself.
-
createMode
Get the createMode property: Create mode to indicate recovery of existing soft deleted data source or creation of new data source.- Returns:
- the createMode value.
-
withCreateMode
Set the createMode property: Create mode to indicate recovery of existing soft deleted data source or creation of new data source.- Parameters:
createMode
- the createMode value to set.- Returns:
- the ProtectedItem object itself.
-
deferredDeleteTimeInUtc
Get the deferredDeleteTimeInUtc property: Time for deferred deletion in UTC.- Returns:
- the deferredDeleteTimeInUtc value.
-
withDeferredDeleteTimeInUtc
Set the deferredDeleteTimeInUtc property: Time for deferred deletion in UTC.- Parameters:
deferredDeleteTimeInUtc
- the deferredDeleteTimeInUtc value to set.- Returns:
- the ProtectedItem object itself.
-
isScheduledForDeferredDelete
Get the isScheduledForDeferredDelete property: Flag to identify whether the DS is scheduled for deferred delete.- Returns:
- the isScheduledForDeferredDelete value.
-
withIsScheduledForDeferredDelete
Set the isScheduledForDeferredDelete property: Flag to identify whether the DS is scheduled for deferred delete.- Parameters:
isScheduledForDeferredDelete
- the isScheduledForDeferredDelete value to set.- Returns:
- the ProtectedItem object itself.
-
deferredDeleteTimeRemaining
Get the deferredDeleteTimeRemaining property: Time remaining before the DS marked for deferred delete is permanently deleted.- Returns:
- the deferredDeleteTimeRemaining value.
-
withDeferredDeleteTimeRemaining
Set the deferredDeleteTimeRemaining property: Time remaining before the DS marked for deferred delete is permanently deleted.- Parameters:
deferredDeleteTimeRemaining
- the deferredDeleteTimeRemaining value to set.- Returns:
- the ProtectedItem object itself.
-
isDeferredDeleteScheduleUpcoming
Get the isDeferredDeleteScheduleUpcoming property: Flag to identify whether the deferred deleted DS is to be purged soon.- Returns:
- the isDeferredDeleteScheduleUpcoming value.
-
withIsDeferredDeleteScheduleUpcoming
Set the isDeferredDeleteScheduleUpcoming property: Flag to identify whether the deferred deleted DS is to be purged soon.- Parameters:
isDeferredDeleteScheduleUpcoming
- the isDeferredDeleteScheduleUpcoming value to set.- Returns:
- the ProtectedItem object itself.
-
isRehydrate
Get the isRehydrate property: Flag to identify that deferred deleted DS is to be moved into Pause state.- Returns:
- the isRehydrate value.
-
withIsRehydrate
Set the isRehydrate property: Flag to identify that deferred deleted DS is to be moved into Pause state.- Parameters:
isRehydrate
- the isRehydrate value to set.- Returns:
- the ProtectedItem object itself.
-
resourceGuardOperationRequests
Get the resourceGuardOperationRequests property: ResourceGuardOperationRequests on which LAC check will be performed.- Returns:
- the resourceGuardOperationRequests value.
-
withResourceGuardOperationRequests
public ProtectedItem withResourceGuardOperationRequests(List<String> resourceGuardOperationRequests) Set the resourceGuardOperationRequests property: ResourceGuardOperationRequests on which LAC check will be performed.- Parameters:
resourceGuardOperationRequests
- the resourceGuardOperationRequests value to set.- Returns:
- the ProtectedItem object itself.
-
isArchiveEnabled
Get the isArchiveEnabled property: Flag to identify whether datasource is protected in archive.- Returns:
- the isArchiveEnabled value.
-
withIsArchiveEnabled
Set the isArchiveEnabled property: Flag to identify whether datasource is protected in archive.- Parameters:
isArchiveEnabled
- the isArchiveEnabled value to set.- Returns:
- the ProtectedItem object itself.
-
policyName
Get the policyName property: Name of the policy used for protection.- Returns:
- the policyName value.
-
withPolicyName
Set the policyName property: Name of the policy used for protection.- Parameters:
policyName
- the policyName value to set.- Returns:
- the ProtectedItem object itself.
-
softDeleteRetentionPeriod
Get the softDeleteRetentionPeriod property: Soft delete retention period in days.- Returns:
- the softDeleteRetentionPeriod value.
-
withSoftDeleteRetentionPeriod
Set the softDeleteRetentionPeriod property: Soft delete retention period in days.- Parameters:
softDeleteRetentionPeriod
- the softDeleteRetentionPeriod value to set.- Returns:
- the ProtectedItem object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-