OSDiskImage Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.OSDiskImage

Implements

public final class OSDiskImage
implements JsonSerializable<OSDiskImage>

Contains the os disk image information.

Method Summary

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

Reads an instance of OSDiskImage from the JsonReader.

OperatingSystemTypes operatingSystem()

Get the operatingSystem property: The operating system of the osDiskImage.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Method Details

fromJson

public static OSDiskImage fromJson(JsonReader jsonReader)

Reads an instance of OSDiskImage from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of OSDiskImage if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

operatingSystem

public OperatingSystemTypes operatingSystem()

Get the operatingSystem property: The operating system of the osDiskImage.

Returns:

the operatingSystem value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to