Freigeben über


DataDiskImage Class

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

Implements

public final class DataDiskImage
implements JsonSerializable<DataDiskImage>

Contains the data disk images information.

Constructor Summary

Constructor Description
DataDiskImage()

Creates an instance of DataDiskImage class.

Method Summary

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

Reads an instance of DataDiskImage from the JsonReader.

Integer lun()

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

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

DataDiskImage

public DataDiskImage()

Creates an instance of DataDiskImage class.

Method Details

fromJson

public static DataDiskImage fromJson(JsonReader jsonReader)

Reads an instance of DataDiskImage from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

lun

public Integer lun()

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

Returns:

the lun value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to