Class ImageOSDisk

java.lang.Object
com.microsoft.azure.management.compute.ImageDisk
com.microsoft.azure.management.compute.ImageOSDisk

public class ImageOSDisk extends ImageDisk
Describes an Operating System disk.
  • Constructor Details

    • ImageOSDisk

      public ImageOSDisk()
  • Method Details

    • osType

      public OperatingSystemTypes osType()
      Get this property allows you to specify the type of the OS that is included in the disk if creating a VM from a custom image. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**. Possible values include: 'Windows', 'Linux'.
      Returns:
      the osType value
    • withOsType

      public ImageOSDisk withOsType(OperatingSystemTypes osType)
      Set this property allows you to specify the type of the OS that is included in the disk if creating a VM from a custom image. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**. Possible values include: 'Windows', 'Linux'.
      Parameters:
      osType - the osType value to set
      Returns:
      the ImageOSDisk object itself.
    • osState

      public OperatingSystemStateTypes osState()
      Get the OS State. Possible values include: 'Generalized', 'Specialized'.
      Returns:
      the osState value
    • withOsState

      public ImageOSDisk withOsState(OperatingSystemStateTypes osState)
      Set the OS State. Possible values include: 'Generalized', 'Specialized'.
      Parameters:
      osState - the osState value to set
      Returns:
      the ImageOSDisk object itself.