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
Constructors Constructor Description BackupPolicyPatch()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
backupPolicyId()
Get the backupPolicyId property: Backup Policy Resource ID.Integer
dailyBackupsToKeep()
Get the dailyBackupsToKeep property: Daily backups count to keep.Boolean
enabled()
Get the enabled property: The property to decide policy is enabled or not.Integer
monthlyBackupsToKeep()
Get the monthlyBackupsToKeep property: Monthly backups count to keep.String
provisioningState()
Get the provisioningState property: Azure lifecycle management.void
validate()
Validates the instance.List<VolumeBackups>
volumeBackups()
Get the volumeBackups property: A list of volumes assigned to this policy.Integer
volumesAssigned()
Get the volumesAssigned property: Volumes using current backup policy.Integer
weeklyBackupsToKeep()
Get the weeklyBackupsToKeep property: Weekly backups count to keep.BackupPolicyPatch
withDailyBackupsToKeep(Integer dailyBackupsToKeep)
Set the dailyBackupsToKeep property: Daily backups count to keep.BackupPolicyPatch
withEnabled(Boolean enabled)
Set the enabled property: The property to decide policy is enabled or not.BackupPolicyPatch
withLocation(String location)
BackupPolicyPatch
withMonthlyBackupsToKeep(Integer monthlyBackupsToKeep)
Set the monthlyBackupsToKeep property: Monthly backups count to keep.BackupPolicyPatch
withTags(Map<String,String> tags)
BackupPolicyPatch
withWeeklyBackupsToKeep(Integer weeklyBackupsToKeep)
Set the weeklyBackupsToKeep property: Weekly backups count to keep.
-
-
-
Method Detail
-
withLocation
public BackupPolicyPatch withLocation(String location)
- Overrides:
withLocation
in classcom.azure.core.management.Resource
-
withTags
public BackupPolicyPatch withTags(Map<String,String> tags)
- Overrides:
withTags
in classcom.azure.core.management.Resource
-
backupPolicyId
public String backupPolicyId()
Get the backupPolicyId property: Backup Policy Resource ID.- Returns:
- the backupPolicyId value.
-
provisioningState
public String provisioningState()
Get the provisioningState property: Azure lifecycle management.- Returns:
- the provisioningState value.
-
dailyBackupsToKeep
public Integer dailyBackupsToKeep()
Get the dailyBackupsToKeep property: Daily backups count to keep.- Returns:
- the dailyBackupsToKeep value.
-
withDailyBackupsToKeep
public BackupPolicyPatch withDailyBackupsToKeep(Integer dailyBackupsToKeep)
Set the dailyBackupsToKeep property: Daily backups count to keep.- Parameters:
dailyBackupsToKeep
- the dailyBackupsToKeep value to set.- Returns:
- the BackupPolicyPatch object itself.
-
weeklyBackupsToKeep
public Integer weeklyBackupsToKeep()
Get the weeklyBackupsToKeep property: Weekly backups count to keep.- Returns:
- the weeklyBackupsToKeep value.
-
withWeeklyBackupsToKeep
public BackupPolicyPatch withWeeklyBackupsToKeep(Integer weeklyBackupsToKeep)
Set the weeklyBackupsToKeep property: Weekly backups count to keep.- Parameters:
weeklyBackupsToKeep
- the weeklyBackupsToKeep value to set.- Returns:
- the BackupPolicyPatch object itself.
-
monthlyBackupsToKeep
public Integer monthlyBackupsToKeep()
Get the monthlyBackupsToKeep property: Monthly backups count to keep.- Returns:
- the monthlyBackupsToKeep value.
-
withMonthlyBackupsToKeep
public BackupPolicyPatch withMonthlyBackupsToKeep(Integer monthlyBackupsToKeep)
Set the monthlyBackupsToKeep property: Monthly backups count to keep.- Parameters:
monthlyBackupsToKeep
- the monthlyBackupsToKeep value to set.- Returns:
- the BackupPolicyPatch object itself.
-
volumesAssigned
public Integer volumesAssigned()
Get the volumesAssigned property: Volumes using current backup policy.- Returns:
- the volumesAssigned value.
-
enabled
public Boolean enabled()
Get the enabled property: The property to decide policy is enabled or not.- Returns:
- the enabled value.
-
withEnabled
public BackupPolicyPatch withEnabled(Boolean enabled)
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
public List<VolumeBackups> 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.
-
-