Class SharedGalleryDataDiskImage

java.lang.Object
com.azure.resourcemanager.compute.models.SharedGalleryDiskImage
com.azure.resourcemanager.compute.models.SharedGalleryDataDiskImage

public final class SharedGalleryDataDiskImage extends SharedGalleryDiskImage
This is the data disk image.
  • Constructor Details

    • SharedGalleryDataDiskImage

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

      public SharedGalleryDataDiskImage withLun(int lun)
      Set 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.
      Parameters:
      lun - the lun value to set.
      Returns:
      the SharedGalleryDataDiskImage object itself.
    • withHostCaching

      public SharedGalleryDataDiskImage withHostCaching(SharedGalleryHostCaching hostCaching)
      Set the hostCaching property: The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'.
      Overrides:
      withHostCaching in class SharedGalleryDiskImage
      Parameters:
      hostCaching - the hostCaching value to set.
      Returns:
      the SharedGalleryDiskImage object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class SharedGalleryDiskImage
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.