Class DiskSnapshotList

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

public final class DiskSnapshotList extends Object implements com.azure.json.JsonSerializable<DiskSnapshotList>
object to hold array of Disk Snapshot ARM IDs.
  • Constructor Details

    • DiskSnapshotList

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

    • diskSnapshotIds

      public List<String> diskSnapshotIds()
      Get the diskSnapshotIds property: array of DiskSnapshot ARM IDs.
      Returns:
      the diskSnapshotIds value.
    • withDiskSnapshotIds

      public DiskSnapshotList withDiskSnapshotIds(List<String> diskSnapshotIds)
      Set the diskSnapshotIds property: array of DiskSnapshot ARM IDs.
      Parameters:
      diskSnapshotIds - the diskSnapshotIds value to set.
      Returns:
      the DiskSnapshotList 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<DiskSnapshotList>
      Throws:
      IOException
    • fromJson

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