Class OSDiskImageEncryption
java.lang.Object
com.azure.resourcemanager.compute.models.DiskImageEncryption
com.azure.resourcemanager.compute.models.OSDiskImageEncryption
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DiskImageEncryption>
Contains encryption settings for an OS disk image.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic OSDiskImageEncryptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of OSDiskImageEncryption from the JsonReader.Get the securityProfile property: This property specifies the security profile of an OS disk image.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.withSecurityProfile(OSDiskImageSecurityProfile securityProfile) Set the securityProfile property: This property specifies the security profile of an OS disk image.Methods inherited from class com.azure.resourcemanager.compute.models.DiskImageEncryption
diskEncryptionSetIdMethods inherited from class java.lang.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
-
OSDiskImageEncryption
public OSDiskImageEncryption()Creates an instance of OSDiskImageEncryption class.
-
-
Method Details
-
securityProfile
Get the securityProfile property: This property specifies the security profile of an OS disk image.- Returns:
- the securityProfile value.
-
withSecurityProfile
Set the securityProfile property: This property specifies the security profile of an OS disk image.- Parameters:
securityProfile- the securityProfile value to set.- Returns:
- the OSDiskImageEncryption 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 OSDiskImageEncryption fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of OSDiskImageEncryption from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of OSDiskImageEncryption 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 OSDiskImageEncryption.
-