Class BackupPolicyInner

java.lang.Object
com.azure.core.management.ProxyResource
com.azure.core.management.Resource
com.azure.resourcemanager.netapp.fluent.models.BackupPolicyInner
All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>

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

    • BackupPolicyInner

      public BackupPolicyInner()
      Creates an instance of BackupPolicyInner class.
  • 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.
    • type

      public String type()
      Get the type property: The type of the resource.
      Overrides:
      type in class com.azure.core.management.ProxyResource
      Returns:
      the type value.
    • name

      public String name()
      Get the name property: The name of the resource.
      Overrides:
      name in class com.azure.core.management.ProxyResource
      Returns:
      the name value.
    • id

      public String id()
      Get the id property: Fully qualified resource Id for the resource.
      Overrides:
      id in class com.azure.core.management.ProxyResource
      Returns:
      the id 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 GUID 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.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
      Overrides:
      toJson in class com.azure.core.management.Resource
      Throws:
      IOException
    • fromJson

      public static BackupPolicyInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of BackupPolicyInner from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of BackupPolicyInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the BackupPolicyInner.