java.lang.Object
com.azure.resourcemanager.batch.models.OSDisk

public final class OSDisk extends Object
Settings for the operating system disk of the virtual machine.
  • Constructor Details

    • OSDisk

      public OSDisk()
      Creates an instance of OSDisk class.
  • Method Details

    • ephemeralOSDiskSettings

      public DiffDiskSettings ephemeralOSDiskSettings()
      Get the ephemeralOSDiskSettings property: Specifies the ephemeral Disk Settings for the operating system disk used by the virtual machine.
      Returns:
      the ephemeralOSDiskSettings value.
    • withEphemeralOSDiskSettings

      public OSDisk withEphemeralOSDiskSettings(DiffDiskSettings ephemeralOSDiskSettings)
      Set the ephemeralOSDiskSettings property: Specifies the ephemeral Disk Settings for the operating system disk used by the virtual machine.
      Parameters:
      ephemeralOSDiskSettings - the ephemeralOSDiskSettings value to set.
      Returns:
      the OSDisk object itself.
    • caching

      public CachingType caching()
      Get the caching property: The type of caching to enable for the disk.
      Returns:
      the caching value.
    • withCaching

      public OSDisk withCaching(CachingType caching)
      Set the caching property: The type of caching to enable for the disk.
      Parameters:
      caching - the caching value to set.
      Returns:
      the OSDisk object itself.
    • managedDisk

      public ManagedDisk managedDisk()
      Get the managedDisk property: The managedDisk property.
      Returns:
      the managedDisk value.
    • withManagedDisk

      public OSDisk withManagedDisk(ManagedDisk managedDisk)
      Set the managedDisk property: The managedDisk property.
      Parameters:
      managedDisk - the managedDisk value to set.
      Returns:
      the OSDisk object itself.
    • diskSizeGB

      public Integer diskSizeGB()
      Get the diskSizeGB property: The initial disk size in GB when creating new OS disk.
      Returns:
      the diskSizeGB value.
    • withDiskSizeGB

      public OSDisk withDiskSizeGB(Integer diskSizeGB)
      Set the diskSizeGB property: The initial disk size in GB when creating new OS disk.
      Parameters:
      diskSizeGB - the diskSizeGB value to set.
      Returns:
      the OSDisk object itself.
    • writeAcceleratorEnabled

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

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

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