Class BackupPolicyPatch
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.core.management.Resource
com.azure.resourcemanager.netapp.models.BackupPolicyPatch
public final class BackupPolicyPatch
extends com.azure.core.management.Resource
Backup policy Details for create and update.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the backupPolicyId property: Backup Policy Resource ID.Get the dailyBackupsToKeep property: Daily backups count to keep.enabled()
Get the enabled property: The property to decide policy is enabled or not.Get the monthlyBackupsToKeep property: Monthly backups count to keep.Get the provisioningState property: Azure lifecycle management.void
validate()
Validates the instance.Get the volumeBackups property: A list of volumes assigned to this policy.Get the volumesAssigned property: Volumes using current backup policy.Get the weeklyBackupsToKeep property: Weekly backups count to keep.withDailyBackupsToKeep
(Integer dailyBackupsToKeep) Set the dailyBackupsToKeep property: Daily backups count to keep.withEnabled
(Boolean enabled) Set the enabled property: The property to decide policy is enabled or not.withLocation
(String location) withMonthlyBackupsToKeep
(Integer monthlyBackupsToKeep) Set the monthlyBackupsToKeep property: Monthly backups count to keep.withWeeklyBackupsToKeep
(Integer weeklyBackupsToKeep) Set the weeklyBackupsToKeep property: Weekly backups count to keep.Methods inherited from class com.azure.core.management.Resource
location, tags
Methods inherited from class com.azure.core.management.ProxyResource
id, name, type
-
Constructor Details
-
BackupPolicyPatch
public BackupPolicyPatch()
-
-
Method Details
-
withLocation
- Overrides:
withLocation
in classcom.azure.core.management.Resource
-
withTags
- Overrides:
withTags
in classcom.azure.core.management.Resource
-
backupPolicyId
Get the backupPolicyId property: Backup Policy Resource ID.- Returns:
- the backupPolicyId value.
-
provisioningState
Get the provisioningState property: Azure lifecycle management.- Returns:
- the provisioningState value.
-
dailyBackupsToKeep
Get the dailyBackupsToKeep property: Daily backups count to keep.- Returns:
- the dailyBackupsToKeep value.
-
withDailyBackupsToKeep
Set the dailyBackupsToKeep property: Daily backups count to keep.- Parameters:
dailyBackupsToKeep
- the dailyBackupsToKeep value to set.- Returns:
- the BackupPolicyPatch object itself.
-
weeklyBackupsToKeep
Get the weeklyBackupsToKeep property: Weekly backups count to keep.- Returns:
- the weeklyBackupsToKeep value.
-
withWeeklyBackupsToKeep
Set the weeklyBackupsToKeep property: Weekly backups count to keep.- Parameters:
weeklyBackupsToKeep
- the weeklyBackupsToKeep value to set.- Returns:
- the BackupPolicyPatch object itself.
-
monthlyBackupsToKeep
Get the monthlyBackupsToKeep property: Monthly backups count to keep.- Returns:
- the monthlyBackupsToKeep value.
-
withMonthlyBackupsToKeep
Set the monthlyBackupsToKeep property: Monthly backups count to keep.- Parameters:
monthlyBackupsToKeep
- the monthlyBackupsToKeep value to set.- Returns:
- the BackupPolicyPatch object itself.
-
volumesAssigned
Get the volumesAssigned property: Volumes using current backup policy.- Returns:
- the volumesAssigned value.
-
enabled
Get the enabled property: The property to decide policy is enabled or not.- Returns:
- the enabled value.
-
withEnabled
Set the enabled property: The property to decide policy is enabled or not.- Parameters:
enabled
- the enabled value to set.- Returns:
- the BackupPolicyPatch object itself.
-
volumeBackups
Get the volumeBackups property: A list of volumes assigned to this policy.- Returns:
- the volumeBackups value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-