OsDisk Class

  • java.lang.Object
    • com.azure.developer.devcenter.models.OsDisk

Implements

public final class OsDisk
implements JsonSerializable<OsDisk>

Settings for the operating system disk.

Method Summary

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

Reads an instance of OsDisk from the JsonReader.

Integer getDiskSizeInGb()

Get the diskSizeInGb property: The size of the OS Disk in gigabytes.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static OsDisk fromJson(JsonReader jsonReader)

Reads an instance of OsDisk from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

getDiskSizeInGb

public Integer getDiskSizeInGb()

Get the diskSizeInGb property: The size of the OS Disk in gigabytes.

Returns:

the diskSizeInGb value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to