Share via


BatchDiffDiskSettings Class

  • java.lang.Object
    • com.azure.compute.batch.models.BatchDiffDiskSettings

Implements

public final class BatchDiffDiskSettings
implements JsonSerializable<BatchDiffDiskSettings>

Specifies the ephemeral Disk Settings for the operating system disk used by the compute node (VM).

Constructor Summary

Constructor Description
BatchDiffDiskSettings()

Creates an instance of BatchDiffDiskSettings class.

Method Summary

Modifier and Type Method and Description
static BatchDiffDiskSettings fromJson(JsonReader jsonReader)

Reads an instance of BatchDiffDiskSettings from the JsonReader.

DiffDiskPlacement getPlacement()

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

BatchDiffDiskSettings setPlacement(DiffDiskPlacement placement)

Set the placement property: Specifies the ephemeral disk placement for operating system disk for all VMs in the pool.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

BatchDiffDiskSettings

public BatchDiffDiskSettings()

Creates an instance of BatchDiffDiskSettings class.

Method Details

fromJson

public static BatchDiffDiskSettings fromJson(JsonReader jsonReader)

Reads an instance of BatchDiffDiskSettings from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of BatchDiffDiskSettings 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 BatchDiffDiskSettings.

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 BatchDiffDiskSettings 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 BatchDiffDiskSettings object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to