Share via


OsDiskImage Class

  • java.lang.Object
    • com.azure.resourcemanager.azurestack.models.OsDiskImage

Implements

public final class OsDiskImage
implements JsonSerializable<OsDiskImage>

OS disk image.

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.

OperatingSystem operatingSystem()

Get the operatingSystem property: OS operating system type.

String sourceBlobSasUri()

Get the sourceBlobSasUri property: SAS key for source blob.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

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 an error occurs while reading the OsDiskImage.

operatingSystem

public OperatingSystem operatingSystem()

Get the operatingSystem property: OS operating system type.

Returns:

the operatingSystem value.

sourceBlobSasUri

public String sourceBlobSasUri()

Get the sourceBlobSasUri property: SAS key for source blob.

Returns:

the sourceBlobSasUri value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to