Partager via


SharedGalleryOSDiskImage Class

public final class SharedGalleryOSDiskImage
extends SharedGalleryDiskImage

This is the OS disk image.

Constructor Summary

Constructor Description
SharedGalleryOSDiskImage()

Creates an instance of SharedGalleryOSDiskImage class.

Method Summary

Modifier and Type Method and Description
Integer diskSizeGB()

Get the diskSizeGB property: This property indicates the size of the VHD to be created.

static SharedGalleryOSDiskImage fromJson(JsonReader jsonReader)

Reads an instance of SharedGalleryOSDiskImage from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SharedGalleryOSDiskImage withHostCaching(SharedGalleryHostCaching hostCaching)

Set the hostCaching property: The host caching of the disk.

Methods inherited from SharedGalleryDiskImage

Methods inherited from java.lang.Object

Constructor Details

SharedGalleryOSDiskImage

public SharedGalleryOSDiskImage()

Creates an instance of SharedGalleryOSDiskImage class.

Method Details

diskSizeGB

public Integer diskSizeGB()

Get the diskSizeGB property: This property indicates the size of the VHD to be created.

Overrides:

SharedGalleryOSDiskImage.diskSizeGB()

Returns:

the diskSizeGB value.

fromJson

public static SharedGalleryOSDiskImage fromJson(JsonReader jsonReader)

Reads an instance of SharedGalleryOSDiskImage from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

SharedGalleryOSDiskImage.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

SharedGalleryOSDiskImage.validate()

withHostCaching

public SharedGalleryOSDiskImage withHostCaching(SharedGalleryHostCaching hostCaching)

Set the hostCaching property: The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'.

Overrides:

SharedGalleryOSDiskImage.withHostCaching(SharedGalleryHostCaching hostCaching)

Parameters:

hostCaching

Applies to