Class SharedGalleryDataDiskImage

java.lang.Object
com.azure.resourcemanager.compute.models.SharedGalleryDiskImage
com.azure.resourcemanager.compute.models.SharedGalleryDataDiskImage
All Implemented Interfaces:
com.azure.json.JsonSerializable<SharedGalleryDiskImage>

public final class SharedGalleryDataDiskImage extends SharedGalleryDiskImage
This is the data disk image.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the diskSizeGB property: This property indicates the size of the VHD to be created.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of SharedGalleryDataDiskImage from the JsonReader.
    Get the hostCaching property: The host caching of the disk.
    int
    lun()
    Get the lun property: This property specifies the logical unit number of the data disk.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Method Details

    • lun

      public int lun()
      Get the lun property: This property specifies the logical unit number of the data disk. This value is used to identify data disks within the Virtual Machine and therefore must be unique for each data disk attached to the Virtual Machine.
      Returns:
      the lun value.
    • hostCaching

      public SharedGalleryHostCaching hostCaching()
      Get the hostCaching property: The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'.
      Overrides:
      hostCaching in class SharedGalleryDiskImage
      Returns:
      the hostCaching value.
    • diskSizeGB

      public Integer diskSizeGB()
      Get the diskSizeGB property: This property indicates the size of the VHD to be created.
      Overrides:
      diskSizeGB in class SharedGalleryDiskImage
      Returns:
      the diskSizeGB value.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class SharedGalleryDiskImage
      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<SharedGalleryDiskImage>
      Overrides:
      toJson in class SharedGalleryDiskImage
      Throws:
      IOException
    • fromJson

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