DataDiskImageEncryption Class

public final class DataDiskImageEncryption
extends DiskImageEncryption

Contains encryption settings for a data disk image.

Constructor Summary

Constructor Description
DataDiskImageEncryption()

Creates an instance of DataDiskImageEncryption class.

Method Summary

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

Reads an instance of DataDiskImageEncryption from the JsonReader.

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.

DataDiskImageEncryption withDiskEncryptionSetId(String diskEncryptionSetId)

Set the diskEncryptionSetId property: A relative URI containing the resource ID of the disk encryption set.

DataDiskImageEncryption withLun(int lun)

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

Methods inherited from DiskImageEncryption

Methods inherited from java.lang.Object

Constructor Details

DataDiskImageEncryption

public DataDiskImageEncryption()

Creates an instance of DataDiskImageEncryption class.

Method Details

fromJson

public static DataDiskImageEncryption fromJson(JsonReader jsonReader)

Reads an instance of DataDiskImageEncryption from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

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:

DataDiskImageEncryption.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

DataDiskImageEncryption.validate()

withDiskEncryptionSetId

public DataDiskImageEncryption withDiskEncryptionSetId(String diskEncryptionSetId)

Set the diskEncryptionSetId property: A relative URI containing the resource ID of the disk encryption set.

Overrides:

DataDiskImageEncryption.withDiskEncryptionSetId(String diskEncryptionSetId)

Parameters:

diskEncryptionSetId

withLun

public DataDiskImageEncryption withLun(int lun)

Set 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.

Parameters:

lun - the lun value to set.

Returns:

the DataDiskImageEncryption object itself.

Applies to