Class BackupPolicy
java.lang.Object
com.azure.resourcemanager.dataprotection.models.BaseBackupPolicy
com.azure.resourcemanager.dataprotection.models.BackupPolicy
BackupPolicy
Rule based backup policy.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the policyRules property: Policy rule dictionary that contains rules for each backuptype i.e Full/Incremental/Logs etc.void
validate()
Validates the instance.withDatasourceTypes
(List<String> datasourceTypes) Set the datasourceTypes property: Type of datasource for the backup management.withPolicyRules
(List<BasePolicyRule> policyRules) Set the policyRules property: Policy rule dictionary that contains rules for each backuptype i.e Full/Incremental/Logs etc.Methods inherited from class com.azure.resourcemanager.dataprotection.models.BaseBackupPolicy
datasourceTypes
-
Constructor Details
-
BackupPolicy
public BackupPolicy()Creates an instance of BackupPolicy class.
-
-
Method Details
-
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
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
Set the datasourceTypes property: Type of datasource for the backup management.- Overrides:
withDatasourceTypes
in classBaseBackupPolicy
- Parameters:
datasourceTypes
- the datasourceTypes value to set.- Returns:
- the BaseBackupPolicy object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classBaseBackupPolicy
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-