Class VirtualMachineScaleSetOSDisk

java.lang.Object
com.microsoft.azure.management.compute.VirtualMachineScaleSetOSDisk

public class VirtualMachineScaleSetOSDisk extends Object
Describes a virtual machine scale set operating system disk.
  • Constructor Details

    • VirtualMachineScaleSetOSDisk

      public VirtualMachineScaleSetOSDisk()
  • Method Details

    • name

      public String name()
      Get the disk name.
      Returns:
      the name value
    • withName

      public VirtualMachineScaleSetOSDisk withName(String name)
      Set the disk name.
      Parameters:
      name - the name value to set
      Returns:
      the VirtualMachineScaleSetOSDisk object itself.
    • caching

      public CachingTypes caching()
      Get specifies the caching requirements. <br><br> Possible values are: <br><br> **None** <br><br> **ReadOnly** <br><br> **ReadWrite** <br><br> Default: **None for Standard storage. ReadOnly for Premium storage**. Possible values include: 'None', 'ReadOnly', 'ReadWrite'.
      Returns:
      the caching value
    • withCaching

      public VirtualMachineScaleSetOSDisk withCaching(CachingTypes caching)
      Set specifies the caching requirements. <br><br> Possible values are: <br><br> **None** <br><br> **ReadOnly** <br><br> **ReadWrite** <br><br> Default: **None for Standard storage. ReadOnly for Premium storage**. Possible values include: 'None', 'ReadOnly', 'ReadWrite'.
      Parameters:
      caching - the caching value to set
      Returns:
      the VirtualMachineScaleSetOSDisk object itself.
    • writeAcceleratorEnabled

      public Boolean writeAcceleratorEnabled()
      Get specifies whether writeAccelerator should be enabled or disabled on the disk.
      Returns:
      the writeAcceleratorEnabled value
    • withWriteAcceleratorEnabled

      public VirtualMachineScaleSetOSDisk withWriteAcceleratorEnabled(Boolean writeAcceleratorEnabled)
      Set specifies whether writeAccelerator should be enabled or disabled on the disk.
      Parameters:
      writeAcceleratorEnabled - the writeAcceleratorEnabled value to set
      Returns:
      the VirtualMachineScaleSetOSDisk object itself.
    • createOption

      public DiskCreateOptionTypes createOption()
      Get specifies how the virtual machines in the scale set should be created.<br><br> The only allowed value is: **FromImage** – This value is used when you are using an image to create the virtual machine. If you are using a platform image, you also use the imageReference element described above. If you are using a marketplace image, you also use the plan element previously described. Possible values include: 'FromImage', 'Empty', 'Attach'.
      Returns:
      the createOption value
    • withCreateOption

      public VirtualMachineScaleSetOSDisk withCreateOption(DiskCreateOptionTypes createOption)
      Set specifies how the virtual machines in the scale set should be created.<br><br> The only allowed value is: **FromImage** – This value is used when you are using an image to create the virtual machine. If you are using a platform image, you also use the imageReference element described above. If you are using a marketplace image, you also use the plan element previously described. Possible values include: 'FromImage', 'Empty', 'Attach'.
      Parameters:
      createOption - the createOption value to set
      Returns:
      the VirtualMachineScaleSetOSDisk object itself.
    • diffDiskSettings

      public DiffDiskSettings diffDiskSettings()
      Get specifies the ephemeral disk Settings for the operating system disk used by the virtual machine scale set.
      Returns:
      the diffDiskSettings value
    • withDiffDiskSettings

      public VirtualMachineScaleSetOSDisk withDiffDiskSettings(DiffDiskSettings diffDiskSettings)
      Set specifies the ephemeral disk Settings for the operating system disk used by the virtual machine scale set.
      Parameters:
      diffDiskSettings - the diffDiskSettings value to set
      Returns:
      the VirtualMachineScaleSetOSDisk object itself.
    • diskSizeGB

      public Integer diskSizeGB()
      Get specifies the size of the operating system disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image. <br><br> This value cannot be larger than 1023 GB.
      Returns:
      the diskSizeGB value
    • withDiskSizeGB

      public VirtualMachineScaleSetOSDisk withDiskSizeGB(Integer diskSizeGB)
      Set specifies the size of the operating system disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image. <br><br> This value cannot be larger than 1023 GB.
      Parameters:
      diskSizeGB - the diskSizeGB value to set
      Returns:
      the VirtualMachineScaleSetOSDisk object itself.
    • 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 user-image or a specialized VHD. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**. Possible values include: 'Windows', 'Linux'.
      Returns:
      the osType value
    • withOsType

      Set this property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD. <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 VirtualMachineScaleSetOSDisk object itself.
    • image

      public VirtualHardDisk image()
      Get specifies information about the unmanaged user image to base the scale set on.
      Returns:
      the image value
    • withImage

      Set specifies information about the unmanaged user image to base the scale set on.
      Parameters:
      image - the image value to set
      Returns:
      the VirtualMachineScaleSetOSDisk object itself.
    • vhdContainers

      public List<String> vhdContainers()
      Get specifies the container urls that are used to store operating system disks for the scale set.
      Returns:
      the vhdContainers value
    • withVhdContainers

      public VirtualMachineScaleSetOSDisk withVhdContainers(List<String> vhdContainers)
      Set specifies the container urls that are used to store operating system disks for the scale set.
      Parameters:
      vhdContainers - the vhdContainers value to set
      Returns:
      the VirtualMachineScaleSetOSDisk object itself.
    • managedDisk

      Get the managed disk parameters.
      Returns:
      the managedDisk value
    • withManagedDisk

      Set the managed disk parameters.
      Parameters:
      managedDisk - the managedDisk value to set
      Returns:
      the VirtualMachineScaleSetOSDisk object itself.