Class DataDiskImageEncryption
java.lang.Object
com.azure.resourcemanager.compute.models.DiskImageEncryption
com.azure.resourcemanager.compute.models.DataDiskImageEncryption
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DiskImageEncryption>
Contains encryption settings for a data disk image.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of DataDiskImageEncryption class. -
Method Summary
Modifier and TypeMethodDescriptionstatic DataDiskImageEncryptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DataDiskImageEncryption from the JsonReader.intlun()Get the lun property: This property specifies the logical unit number of the data disk.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) 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 DiskImageEncryption
diskEncryptionSetIdMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
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.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<DiskImageEncryption>- Overrides:
toJsonin classDiskImageEncryption- Throws:
IOException
-
fromJson
public static DataDiskImageEncryption fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the DataDiskImageEncryption.
-