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 Details

    • BackupPolicyPatch

      public BackupPolicyPatch()
  • Method Details

    • withLocation

      public BackupPolicyPatch withLocation(String location)
      Overrides:
      withLocation in class com.azure.core.management.Resource
    • withTags

      public BackupPolicyPatch withTags(Map<String,String> tags)
      Overrides:
      withTags in class com.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.