Class BackupPolicyInner

java.lang.Object
com.azure.core.management.ProxyResource
com.azure.core.management.Resource
com.azure.resourcemanager.netapp.fluent.models.BackupPolicyInner

public final class BackupPolicyInner extends com.azure.core.management.Resource
Backup policy information.
  • Constructor Details

    • BackupPolicyInner

      public BackupPolicyInner()
  • Method Details

    • etag

      public String etag()
      Get the etag property: A unique read-only string that changes whenever the resource is updated.
      Returns:
      the etag value.
    • systemData

      public com.azure.core.management.SystemData systemData()
      Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
      Returns:
      the systemData value.
    • withLocation

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

      public BackupPolicyInner 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 BackupPolicyInner withDailyBackupsToKeep(Integer dailyBackupsToKeep)
      Set the dailyBackupsToKeep property: Daily backups count to keep.
      Parameters:
      dailyBackupsToKeep - the dailyBackupsToKeep value to set.
      Returns:
      the BackupPolicyInner object itself.
    • weeklyBackupsToKeep

      public Integer weeklyBackupsToKeep()
      Get the weeklyBackupsToKeep property: Weekly backups count to keep.
      Returns:
      the weeklyBackupsToKeep value.
    • withWeeklyBackupsToKeep

      public BackupPolicyInner withWeeklyBackupsToKeep(Integer weeklyBackupsToKeep)
      Set the weeklyBackupsToKeep property: Weekly backups count to keep.
      Parameters:
      weeklyBackupsToKeep - the weeklyBackupsToKeep value to set.
      Returns:
      the BackupPolicyInner object itself.
    • monthlyBackupsToKeep

      public Integer monthlyBackupsToKeep()
      Get the monthlyBackupsToKeep property: Monthly backups count to keep.
      Returns:
      the monthlyBackupsToKeep value.
    • withMonthlyBackupsToKeep

      public BackupPolicyInner withMonthlyBackupsToKeep(Integer monthlyBackupsToKeep)
      Set the monthlyBackupsToKeep property: Monthly backups count to keep.
      Parameters:
      monthlyBackupsToKeep - the monthlyBackupsToKeep value to set.
      Returns:
      the BackupPolicyInner 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 BackupPolicyInner 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 BackupPolicyInner 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.