Class VolumePatchPropertiesDataProtection

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

public final class VolumePatchPropertiesDataProtection extends Object implements com.azure.json.JsonSerializable<VolumePatchPropertiesDataProtection>
DataProtection DataProtection type volumes include an object containing details of the replication.
  • Constructor Details

    • VolumePatchPropertiesDataProtection

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

    • backup

      public VolumeBackupProperties backup()
      Get the backup property: Backup Properties.
      Returns:
      the backup value.
    • withBackup

      Set the backup property: Backup Properties.
      Parameters:
      backup - the backup value to set.
      Returns:
      the VolumePatchPropertiesDataProtection object itself.
    • snapshot

      public VolumeSnapshotProperties snapshot()
      Get the snapshot property: Snapshot properties.
      Returns:
      the snapshot value.
    • withSnapshot

      Set the snapshot property: Snapshot properties.
      Parameters:
      snapshot - the snapshot value to set.
      Returns:
      the VolumePatchPropertiesDataProtection 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<VolumePatchPropertiesDataProtection>
      Throws:
      IOException
    • fromJson

      public static VolumePatchPropertiesDataProtection fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of VolumePatchPropertiesDataProtection from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of VolumePatchPropertiesDataProtection 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 VolumePatchPropertiesDataProtection.