Class DiskImageEncryption
java.lang.Object
com.azure.resourcemanager.compute.models.DiskImageEncryption
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DiskImageEncryption>
- Direct Known Subclasses:
DataDiskImageEncryption, OSDiskImageEncryption
public class DiskImageEncryption
extends Object
implements com.azure.json.JsonSerializable<DiskImageEncryption>
This is the disk image encryption base class.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the diskEncryptionSetId property: A relative URI containing the resource ID of the disk encryption set.static DiskImageEncryptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DiskImageEncryption from the JsonReader.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.Methods 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
-
DiskImageEncryption
public DiskImageEncryption()Creates an instance of DiskImageEncryption class.
-
-
Method Details
-
diskEncryptionSetId
Get the diskEncryptionSetId property: A relative URI containing the resource ID of the disk encryption set.- Returns:
- the diskEncryptionSetId value.
-
withDiskEncryptionSetId
Set the diskEncryptionSetId property: A relative URI containing the resource ID of the disk encryption set.- Parameters:
diskEncryptionSetId- the diskEncryptionSetId value to set.- Returns:
- the DiskImageEncryption object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<DiskImageEncryption>- Throws:
IOException
-
fromJson
Reads an instance of DiskImageEncryption from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of DiskImageEncryption 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 DiskImageEncryption.
-