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.

Constructor Summary

Constructor Description
OSDiskImage()

Creates an instance of OSDiskImage class.

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.

OSDiskImage withOperatingSystem(OperatingSystemTypes operatingSystem)

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

Methods inherited from java.lang.Object

Constructor Details

OSDiskImage

public OSDiskImage()

Creates an instance of OSDiskImage class.

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.

withOperatingSystem

public OSDiskImage withOperatingSystem(OperatingSystemTypes operatingSystem)

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

Parameters:

operatingSystem - the operatingSystem value to set.

Returns:

the OSDiskImage object itself.

Applies to