Share via


DiffDiskSettings Class

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

Implements

public final class DiffDiskSettings
implements JsonSerializable<DiffDiskSettings>

Specifies the ephemeral Disk Settings for the operating system disk used by the virtual machine.

Constructor Summary

Constructor Description
DiffDiskSettings()

Creates an instance of DiffDiskSettings class.

Method Summary

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

Reads an instance of DiffDiskSettings from the JsonReader.

DiffDiskPlacement placement()

Get the placement property: This property can be used by user in the request to choose which location the operating system should be in.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DiffDiskSettings withPlacement(DiffDiskPlacement placement)

Set the placement property: This property can be used by user in the request to choose which location the operating system should be in.

Methods inherited from java.lang.Object

Constructor Details

DiffDiskSettings

public DiffDiskSettings()

Creates an instance of DiffDiskSettings class.

Method Details

fromJson

public static DiffDiskSettings fromJson(JsonReader jsonReader)

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.

placement

public DiffDiskPlacement placement()

Get the placement property: 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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withPlacement

public DiffDiskSettings withPlacement(DiffDiskPlacement placement)

Set the placement property: 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.

Applies to