Class GalleryDiskImage

java.lang.Object
com.microsoft.azure.management.compute.GalleryDiskImage
Direct Known Subclasses:
GalleryDataDiskImage, GalleryOSDiskImage

public class GalleryDiskImage extends Object
This is the disk image base class.
  • Constructor Details

    • GalleryDiskImage

      public GalleryDiskImage()
  • Method Details

    • sizeInGB

      public Integer sizeInGB()
      Get this property indicates the size of the VHD to be created.
      Returns:
      the sizeInGB value
    • hostCaching

      public HostCaching hostCaching()
      Get the host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'. Possible values include: 'None', 'ReadOnly', 'ReadWrite'.
      Returns:
      the hostCaching value
    • withHostCaching

      public GalleryDiskImage withHostCaching(HostCaching hostCaching)
      Set the host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'. Possible values include: 'None', 'ReadOnly', 'ReadWrite'.
      Parameters:
      hostCaching - the hostCaching value to set
      Returns:
      the GalleryDiskImage object itself.
    • source

      Get the source value.
      Returns:
      the source value
    • withSource

      public GalleryDiskImage withSource(GalleryArtifactVersionSource source)
      Set the source value.
      Parameters:
      source - the source value to set
      Returns:
      the GalleryDiskImage object itself.