SharedGalleryDataDiskImage Class

public final class SharedGalleryDataDiskImage
extends SharedGalleryDiskImage

This is the data disk image.

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 SharedGalleryDataDiskImage fromJson(JsonReader jsonReader)

Reads an instance of SharedGalleryDataDiskImage from the JsonReader.

SharedGalleryHostCaching hostCaching()

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

int lun()

Get the lun property: This property specifies the logical unit number of the data disk.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from SharedGalleryDiskImage

Methods inherited from java.lang.Object

Method Details

diskSizeGB

public Integer diskSizeGB()

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

Overrides:

SharedGalleryDataDiskImage.diskSizeGB()

Returns:

the diskSizeGB value.

fromJson

public static SharedGalleryDataDiskImage fromJson(JsonReader jsonReader)

Reads an instance of SharedGalleryDataDiskImage from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

hostCaching

public SharedGalleryHostCaching hostCaching()

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

Overrides:

SharedGalleryDataDiskImage.hostCaching()

Returns:

the hostCaching value.

lun

public int lun()

Get the lun property: This property specifies the logical unit number of the data disk. This value is used to identify data disks within the Virtual Machine and therefore must be unique for each data disk attached to the Virtual Machine.

Returns:

the lun value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

SharedGalleryDataDiskImage.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

SharedGalleryDataDiskImage.validate()

Applies to