Class MabFileFolderProtectedItem
- java.lang.Object
-
- com.azure.resourcemanager.recoveryservicesbackup.models.ProtectedItem
-
- com.azure.resourcemanager.recoveryservicesbackup.models.MabFileFolderProtectedItem
-
public final class MabFileFolderProtectedItem extends ProtectedItem
MAB workload-specific backup item.
-
-
Constructor Summary
Constructors Constructor Description MabFileFolderProtectedItem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
computerName()
Get the computerName property: Name of the computer associated with this backup item.Long
deferredDeleteSyncTimeInUtc()
Get the deferredDeleteSyncTimeInUtc property: Sync time for deferred deletion in UTC.MabFileFolderProtectedItemExtendedInfo
extendedInfo()
Get the extendedInfo property: Additional information with this backup item.String
friendlyName()
Get the friendlyName property: Friendly name of this backup item.String
lastBackupStatus()
Get the lastBackupStatus property: Status of last backup operation.OffsetDateTime
lastBackupTime()
Get the lastBackupTime property: Timestamp of the last backup operation on this backup item.String
protectionState()
Get the protectionState property: Protected, ProtectionStopped, IRPending or ProtectionError.void
validate()
Validates the instance.MabFileFolderProtectedItem
withBackupManagementType(BackupManagementType backupManagementType)
Set the backupManagementType property: Type of backup management for the backed up item.MabFileFolderProtectedItem
withBackupSetName(String backupSetName)
Set the backupSetName property: Name of the backup set the backup item belongs to.MabFileFolderProtectedItem
withComputerName(String computerName)
Set the computerName property: Name of the computer associated with this backup item.MabFileFolderProtectedItem
withContainerName(String containerName)
Set the containerName property: Unique name of container.MabFileFolderProtectedItem
withCreateMode(CreateMode createMode)
Set the createMode property: Create mode to indicate recovery of existing soft deleted data source or creation of new data source.MabFileFolderProtectedItem
withDeferredDeleteSyncTimeInUtc(Long deferredDeleteSyncTimeInUtc)
Set the deferredDeleteSyncTimeInUtc property: Sync time for deferred deletion in UTC.MabFileFolderProtectedItem
withDeferredDeleteTimeInUtc(OffsetDateTime deferredDeleteTimeInUtc)
Set the deferredDeleteTimeInUtc property: Time for deferred deletion in UTC.MabFileFolderProtectedItem
withDeferredDeleteTimeRemaining(String deferredDeleteTimeRemaining)
Set the deferredDeleteTimeRemaining property: Time remaining before the DS marked for deferred delete is permanently deleted.MabFileFolderProtectedItem
withExtendedInfo(MabFileFolderProtectedItemExtendedInfo extendedInfo)
Set the extendedInfo property: Additional information with this backup item.MabFileFolderProtectedItem
withFriendlyName(String friendlyName)
Set the friendlyName property: Friendly name of this backup item.MabFileFolderProtectedItem
withIsArchiveEnabled(Boolean isArchiveEnabled)
Set the isArchiveEnabled property: Flag to identify whether datasource is protected in archive.MabFileFolderProtectedItem
withIsDeferredDeleteScheduleUpcoming(Boolean isDeferredDeleteScheduleUpcoming)
Set the isDeferredDeleteScheduleUpcoming property: Flag to identify whether the deferred deleted DS is to be purged soon.MabFileFolderProtectedItem
withIsRehydrate(Boolean isRehydrate)
Set the isRehydrate property: Flag to identify that deferred deleted DS is to be moved into Pause state.MabFileFolderProtectedItem
withIsScheduledForDeferredDelete(Boolean isScheduledForDeferredDelete)
Set the isScheduledForDeferredDelete property: Flag to identify whether the DS is scheduled for deferred delete.MabFileFolderProtectedItem
withLastBackupStatus(String lastBackupStatus)
Set the lastBackupStatus property: Status of last backup operation.MabFileFolderProtectedItem
withLastBackupTime(OffsetDateTime lastBackupTime)
Set the lastBackupTime property: Timestamp of the last backup operation on this backup item.MabFileFolderProtectedItem
withLastRecoveryPoint(OffsetDateTime lastRecoveryPoint)
Set the lastRecoveryPoint property: Timestamp when the last (latest) backup copy was created for this backup item.MabFileFolderProtectedItem
withPolicyId(String policyId)
Set the policyId property: ID of the backup policy with which this item is backed up.MabFileFolderProtectedItem
withPolicyName(String policyName)
Set the policyName property: Name of the policy used for protection.MabFileFolderProtectedItem
withProtectionState(String protectionState)
Set the protectionState property: Protected, ProtectionStopped, IRPending or ProtectionError.MabFileFolderProtectedItem
withResourceGuardOperationRequests(List<String> resourceGuardOperationRequests)
Set the resourceGuardOperationRequests property: ResourceGuardOperationRequests on which LAC check will be performed.MabFileFolderProtectedItem
withSourceResourceId(String sourceResourceId)
Set the sourceResourceId property: ARM ID of the resource to be backed up.MabFileFolderProtectedItem
withWorkloadType(DataSourceType workloadType)
Set the workloadType property: Type of workload this item represents.-
Methods inherited from class com.azure.resourcemanager.recoveryservicesbackup.models.ProtectedItem
backupManagementType, backupSetName, containerName, createMode, deferredDeleteTimeInUtc, deferredDeleteTimeRemaining, isArchiveEnabled, isDeferredDeleteScheduleUpcoming, isRehydrate, isScheduledForDeferredDelete, lastRecoveryPoint, policyId, policyName, resourceGuardOperationRequests, sourceResourceId, workloadType
-
-
-
-
Method Detail
-
friendlyName
public String friendlyName()
Get the friendlyName property: Friendly name of this backup item.- Returns:
- the friendlyName value.
-
withFriendlyName
public MabFileFolderProtectedItem withFriendlyName(String friendlyName)
Set the friendlyName property: Friendly name of this backup item.- Parameters:
friendlyName
- the friendlyName value to set.- Returns:
- the MabFileFolderProtectedItem object itself.
-
computerName
public String computerName()
Get the computerName property: Name of the computer associated with this backup item.- Returns:
- the computerName value.
-
withComputerName
public MabFileFolderProtectedItem withComputerName(String computerName)
Set the computerName property: Name of the computer associated with this backup item.- Parameters:
computerName
- the computerName value to set.- Returns:
- the MabFileFolderProtectedItem object itself.
-
lastBackupStatus
public String lastBackupStatus()
Get the lastBackupStatus property: Status of last backup operation.- Returns:
- the lastBackupStatus value.
-
withLastBackupStatus
public MabFileFolderProtectedItem withLastBackupStatus(String lastBackupStatus)
Set the lastBackupStatus property: Status of last backup operation.- Parameters:
lastBackupStatus
- the lastBackupStatus value to set.- Returns:
- the MabFileFolderProtectedItem object itself.
-
lastBackupTime
public OffsetDateTime lastBackupTime()
Get the lastBackupTime property: Timestamp of the last backup operation on this backup item.- Returns:
- the lastBackupTime value.
-
withLastBackupTime
public MabFileFolderProtectedItem withLastBackupTime(OffsetDateTime lastBackupTime)
Set the lastBackupTime property: Timestamp of the last backup operation on this backup item.- Parameters:
lastBackupTime
- the lastBackupTime value to set.- Returns:
- the MabFileFolderProtectedItem object itself.
-
protectionState
public String protectionState()
Get the protectionState property: Protected, ProtectionStopped, IRPending or ProtectionError.- Returns:
- the protectionState value.
-
withProtectionState
public MabFileFolderProtectedItem withProtectionState(String protectionState)
Set the protectionState property: Protected, ProtectionStopped, IRPending or ProtectionError.- Parameters:
protectionState
- the protectionState value to set.- Returns:
- the MabFileFolderProtectedItem object itself.
-
deferredDeleteSyncTimeInUtc
public Long deferredDeleteSyncTimeInUtc()
Get the deferredDeleteSyncTimeInUtc property: Sync time for deferred deletion in UTC.- Returns:
- the deferredDeleteSyncTimeInUtc value.
-
withDeferredDeleteSyncTimeInUtc
public MabFileFolderProtectedItem withDeferredDeleteSyncTimeInUtc(Long deferredDeleteSyncTimeInUtc)
Set the deferredDeleteSyncTimeInUtc property: Sync time for deferred deletion in UTC.- Parameters:
deferredDeleteSyncTimeInUtc
- the deferredDeleteSyncTimeInUtc value to set.- Returns:
- the MabFileFolderProtectedItem object itself.
-
extendedInfo
public MabFileFolderProtectedItemExtendedInfo extendedInfo()
Get the extendedInfo property: Additional information with this backup item.- Returns:
- the extendedInfo value.
-
withExtendedInfo
public MabFileFolderProtectedItem withExtendedInfo(MabFileFolderProtectedItemExtendedInfo extendedInfo)
Set the extendedInfo property: Additional information with this backup item.- Parameters:
extendedInfo
- the extendedInfo value to set.- Returns:
- the MabFileFolderProtectedItem object itself.
-
withBackupManagementType
public MabFileFolderProtectedItem withBackupManagementType(BackupManagementType backupManagementType)
Set the backupManagementType property: Type of backup management for the backed up item.- Overrides:
withBackupManagementType
in classProtectedItem
- Parameters:
backupManagementType
- the backupManagementType value to set.- Returns:
- the ProtectedItem object itself.
-
withWorkloadType
public MabFileFolderProtectedItem withWorkloadType(DataSourceType workloadType)
Set the workloadType property: Type of workload this item represents.- Overrides:
withWorkloadType
in classProtectedItem
- Parameters:
workloadType
- the workloadType value to set.- Returns:
- the ProtectedItem object itself.
-
withContainerName
public MabFileFolderProtectedItem withContainerName(String containerName)
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
public MabFileFolderProtectedItem withSourceResourceId(String sourceResourceId)
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
public MabFileFolderProtectedItem withPolicyId(String policyId)
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
public MabFileFolderProtectedItem withLastRecoveryPoint(OffsetDateTime lastRecoveryPoint)
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
public MabFileFolderProtectedItem withBackupSetName(String backupSetName)
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
public MabFileFolderProtectedItem withCreateMode(CreateMode createMode)
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
public MabFileFolderProtectedItem withDeferredDeleteTimeInUtc(OffsetDateTime deferredDeleteTimeInUtc)
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
public MabFileFolderProtectedItem withIsScheduledForDeferredDelete(Boolean isScheduledForDeferredDelete)
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
public MabFileFolderProtectedItem withDeferredDeleteTimeRemaining(String deferredDeleteTimeRemaining)
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 MabFileFolderProtectedItem 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
public MabFileFolderProtectedItem withIsRehydrate(Boolean isRehydrate)
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 MabFileFolderProtectedItem 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
public MabFileFolderProtectedItem withIsArchiveEnabled(Boolean isArchiveEnabled)
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
public MabFileFolderProtectedItem withPolicyName(String policyName)
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.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classProtectedItem
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-