Class ProtectedItem

    • Constructor Detail

      • ProtectedItem

        public ProtectedItem()
    • Method Detail

      • backupManagementType

        public BackupManagementType backupManagementType()
        Get the backupManagementType property: Type of backup management for the backed up item.
        Returns:
        the backupManagementType value.
      • withBackupManagementType

        public ProtectedItem withBackupManagementType​(BackupManagementType backupManagementType)
        Set the backupManagementType property: Type of backup management for the backed up item.
        Parameters:
        backupManagementType - the backupManagementType value to set.
        Returns:
        the ProtectedItem object itself.
      • workloadType

        public DataSourceType workloadType()
        Get the workloadType property: Type of workload this item represents.
        Returns:
        the workloadType value.
      • withWorkloadType

        public ProtectedItem withWorkloadType​(DataSourceType workloadType)
        Set the workloadType property: Type of workload this item represents.
        Parameters:
        workloadType - the workloadType value to set.
        Returns:
        the ProtectedItem object itself.
      • containerName

        public String containerName()
        Get the containerName property: Unique name of container.
        Returns:
        the containerName value.
      • withContainerName

        public ProtectedItem withContainerName​(String containerName)
        Set the containerName property: Unique name of container.
        Parameters:
        containerName - the containerName value to set.
        Returns:
        the ProtectedItem object itself.
      • sourceResourceId

        public String sourceResourceId()
        Get the sourceResourceId property: ARM ID of the resource to be backed up.
        Returns:
        the sourceResourceId value.
      • withSourceResourceId

        public ProtectedItem withSourceResourceId​(String sourceResourceId)
        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

        public String policyId()
        Get the policyId property: ID of the backup policy with which this item is backed up.
        Returns:
        the policyId value.
      • withPolicyId

        public ProtectedItem withPolicyId​(String policyId)
        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

        public OffsetDateTime lastRecoveryPoint()
        Get the lastRecoveryPoint property: Timestamp when the last (latest) backup copy was created for this backup item.
        Returns:
        the lastRecoveryPoint value.
      • withLastRecoveryPoint

        public ProtectedItem withLastRecoveryPoint​(OffsetDateTime lastRecoveryPoint)
        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

        public String backupSetName()
        Get the backupSetName property: Name of the backup set the backup item belongs to.
        Returns:
        the backupSetName value.
      • withBackupSetName

        public ProtectedItem withBackupSetName​(String backupSetName)
        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

        public CreateMode 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

        public ProtectedItem withCreateMode​(CreateMode createMode)
        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

        public OffsetDateTime deferredDeleteTimeInUtc()
        Get the deferredDeleteTimeInUtc property: Time for deferred deletion in UTC.
        Returns:
        the deferredDeleteTimeInUtc value.
      • withDeferredDeleteTimeInUtc

        public ProtectedItem withDeferredDeleteTimeInUtc​(OffsetDateTime deferredDeleteTimeInUtc)
        Set the deferredDeleteTimeInUtc property: Time for deferred deletion in UTC.
        Parameters:
        deferredDeleteTimeInUtc - the deferredDeleteTimeInUtc value to set.
        Returns:
        the ProtectedItem object itself.
      • isScheduledForDeferredDelete

        public Boolean isScheduledForDeferredDelete()
        Get the isScheduledForDeferredDelete property: Flag to identify whether the DS is scheduled for deferred delete.
        Returns:
        the isScheduledForDeferredDelete value.
      • withIsScheduledForDeferredDelete

        public ProtectedItem withIsScheduledForDeferredDelete​(Boolean isScheduledForDeferredDelete)
        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

        public String deferredDeleteTimeRemaining()
        Get the deferredDeleteTimeRemaining property: Time remaining before the DS marked for deferred delete is permanently deleted.
        Returns:
        the deferredDeleteTimeRemaining value.
      • withDeferredDeleteTimeRemaining

        public ProtectedItem withDeferredDeleteTimeRemaining​(String deferredDeleteTimeRemaining)
        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

        public Boolean isDeferredDeleteScheduleUpcoming()
        Get the isDeferredDeleteScheduleUpcoming property: Flag to identify whether the deferred deleted DS is to be purged soon.
        Returns:
        the isDeferredDeleteScheduleUpcoming value.
      • withIsDeferredDeleteScheduleUpcoming

        public ProtectedItem withIsDeferredDeleteScheduleUpcoming​(Boolean isDeferredDeleteScheduleUpcoming)
        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

        public Boolean isRehydrate()
        Get the isRehydrate property: Flag to identify that deferred deleted DS is to be moved into Pause state.
        Returns:
        the isRehydrate value.
      • withIsRehydrate

        public ProtectedItem withIsRehydrate​(Boolean isRehydrate)
        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

        public List<String> 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

        public Boolean isArchiveEnabled()
        Get the isArchiveEnabled property: Flag to identify whether datasource is protected in archive.
        Returns:
        the isArchiveEnabled value.
      • withIsArchiveEnabled

        public ProtectedItem withIsArchiveEnabled​(Boolean isArchiveEnabled)
        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

        public String policyName()
        Get the policyName property: Name of the policy used for protection.
        Returns:
        the policyName value.
      • withPolicyName

        public ProtectedItem withPolicyName​(String policyName)
        Set the policyName property: Name of the policy used for protection.
        Parameters:
        policyName - the policyName value to set.
        Returns:
        the ProtectedItem object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.