Class DiffDiskSettings

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

public final class DiffDiskSettings extends Object
Specifies the ephemeral Disk Settings for the operating system disk used by the virtual machine.
  • Constructor Details

    • DiffDiskSettings

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

    • placement

      public DiffDiskPlacement placement()
      Get the placement property: Specifies the ephemeral disk placement for operating system disk for all VMs in the pool.

      This property can be used by user in the request to choose which location the operating system should be in. e.g., cache disk space for Ephemeral OS disk provisioning. For more information on Ephemeral OS disk size requirements, please refer to Ephemeral OS disk size requirements for Windows VMs at https://docs.microsoft.com/en-us/azure/virtual-machines/windows/ephemeral-os-disks#size-requirements and Linux VMs at https://docs.microsoft.com/en-us/azure/virtual-machines/linux/ephemeral-os-disks#size-requirements.

      Returns:
      the placement value.
    • withPlacement

      public DiffDiskSettings withPlacement(DiffDiskPlacement placement)
      Set the placement property: Specifies the ephemeral disk placement for operating system disk for all VMs in the pool.

      This property can be used by user in the request to choose which location the operating system should be in. e.g., cache disk space for Ephemeral OS disk provisioning. For more information on Ephemeral OS disk size requirements, please refer to Ephemeral OS disk size requirements for Windows VMs at https://docs.microsoft.com/en-us/azure/virtual-machines/windows/ephemeral-os-disks#size-requirements and Linux VMs at https://docs.microsoft.com/en-us/azure/virtual-machines/linux/ephemeral-os-disks#size-requirements.

      Parameters:
      placement - the placement value to set.
      Returns:
      the DiffDiskSettings object itself.
    • validate

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