Class DiffDiskSettings

java.lang.Object
com.azure.compute.batch.models.DiffDiskSettings
All Implemented Interfaces:
com.azure.json.JsonSerializable<DiffDiskSettings>

public final class DiffDiskSettings extends Object implements com.azure.json.JsonSerializable<DiffDiskSettings>
Specifies the ephemeral Disk Settings for the operating system disk used by the compute node (VM).
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of DiffDiskSettings class.
  • Method Summary

    Modifier and Type
    Method
    Description
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of DiffDiskSettings from the JsonReader.
    Get the placement property: Specifies the ephemeral disk placement for operating system disk for all VMs in the pool.
    Set the placement property: Specifies the ephemeral disk placement for operating system disk for all VMs in the pool.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • DiffDiskSettings

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

    • getPlacement

      public DiffDiskPlacement getPlacement()
      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 the location 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://learn.microsoft.com/azure/virtual-machines/windows/ephemeral-os-disks#size-requirements and Linux VMs at https://learn.microsoft.com/azure/virtual-machines/linux/ephemeral-os-disks#size-requirements.
      Returns:
      the placement value.
    • setPlacement

      public DiffDiskSettings setPlacement(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 the location 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://learn.microsoft.com/azure/virtual-machines/windows/ephemeral-os-disks#size-requirements and Linux VMs at https://learn.microsoft.com/azure/virtual-machines/linux/ephemeral-os-disks#size-requirements.
      Parameters:
      placement - the placement value to set.
      Returns:
      the DiffDiskSettings object itself.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<DiffDiskSettings>
      Throws:
      IOException
    • fromJson

      public static DiffDiskSettings fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of DiffDiskSettings from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of DiffDiskSettings if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the DiffDiskSettings.