Class DataDiskImageEncryption
java.lang.Object
com.azure.resourcemanager.compute.models.DiskImageEncryption
com.azure.resourcemanager.compute.models.DataDiskImageEncryption
Contains encryption settings for a data disk image.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of DataDiskImageEncryption class. -
Method Summary
Modifier and TypeMethodDescriptionintlun()Get the lun property: This property specifies the logical unit number of the data disk.voidvalidate()Validates the instance.withDiskEncryptionSetId(String diskEncryptionSetId) Set the diskEncryptionSetId property: A relative URI containing the resource ID of the disk encryption set.withLun(int lun) Set the lun property: This property specifies the logical unit number of the data disk.Methods inherited from class com.azure.resourcemanager.compute.models.DiskImageEncryption
diskEncryptionSetId
-
Constructor Details
-
DataDiskImageEncryption
public DataDiskImageEncryption()Creates an instance of DataDiskImageEncryption class.
-
-
Method Details
-
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.
-
withLun
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.
-
withDiskEncryptionSetId
Set the diskEncryptionSetId property: A relative URI containing the resource ID of the disk encryption set.- Overrides:
withDiskEncryptionSetIdin classDiskImageEncryption- Parameters:
diskEncryptionSetId- the diskEncryptionSetId value to set.- Returns:
- the DiskImageEncryption object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classDiskImageEncryption- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-