java.lang.Object
com.azure.resourcemanager.dataprotection.models.BaseBackupPolicy
com.azure.resourcemanager.dataprotection.models.BackupPolicy

public final class BackupPolicy extends BaseBackupPolicy
BackupPolicy

Rule based backup policy.

  • Constructor Details

    • BackupPolicy

      public BackupPolicy()
      Creates an instance of BackupPolicy class.
  • Method Details

    • policyRules

      public List<BasePolicyRule> policyRules()
      Get the policyRules property: Policy rule dictionary that contains rules for each backuptype i.e Full/Incremental/Logs etc.
      Returns:
      the policyRules value.
    • withPolicyRules

      public BackupPolicy withPolicyRules(List<BasePolicyRule> policyRules)
      Set the policyRules property: Policy rule dictionary that contains rules for each backuptype i.e Full/Incremental/Logs etc.
      Parameters:
      policyRules - the policyRules value to set.
      Returns:
      the BackupPolicy object itself.
    • withDatasourceTypes

      public BackupPolicy withDatasourceTypes(List<String> datasourceTypes)
      Set the datasourceTypes property: Type of datasource for the backup management.
      Overrides:
      withDatasourceTypes in class BaseBackupPolicy
      Parameters:
      datasourceTypes - the datasourceTypes value to set.
      Returns:
      the BaseBackupPolicy object itself.
    • validate

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