Class VolumeBackups

java.lang.Object
com.azure.resourcemanager.netapp.models.VolumeBackups
All Implemented Interfaces:
com.azure.json.JsonSerializable<VolumeBackups>

public final class VolumeBackups extends Object implements com.azure.json.JsonSerializable<VolumeBackups>
Volume details using the backup policy.
  • Constructor Details

    • VolumeBackups

      public VolumeBackups()
      Creates an instance of VolumeBackups class.
  • Method Details

    • volumeName

      public String volumeName()
      Get the volumeName property: Volume name.
      Returns:
      the volumeName value.
    • withVolumeName

      public VolumeBackups withVolumeName(String volumeName)
      Set the volumeName property: Volume name.
      Parameters:
      volumeName - the volumeName value to set.
      Returns:
      the VolumeBackups object itself.
    • volumeResourceId

      public String volumeResourceId()
      Get the volumeResourceId property: ResourceId used to identify the Volume.
      Returns:
      the volumeResourceId value.
    • withVolumeResourceId

      public VolumeBackups withVolumeResourceId(String volumeResourceId)
      Set the volumeResourceId property: ResourceId used to identify the Volume.
      Parameters:
      volumeResourceId - the volumeResourceId value to set.
      Returns:
      the VolumeBackups object itself.
    • backupsCount

      public Integer backupsCount()
      Get the backupsCount property: Total count of backups for volume.
      Returns:
      the backupsCount value.
    • withBackupsCount

      public VolumeBackups withBackupsCount(Integer backupsCount)
      Set the backupsCount property: Total count of backups for volume.
      Parameters:
      backupsCount - the backupsCount value to set.
      Returns:
      the VolumeBackups object itself.
    • policyEnabled

      public Boolean policyEnabled()
      Get the policyEnabled property: Policy enabled.
      Returns:
      the policyEnabled value.
    • withPolicyEnabled

      public VolumeBackups withPolicyEnabled(Boolean policyEnabled)
      Set the policyEnabled property: Policy enabled.
      Parameters:
      policyEnabled - the policyEnabled value to set.
      Returns:
      the VolumeBackups object itself.
    • 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<VolumeBackups>
      Throws:
      IOException
    • fromJson

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