Class DiskEncryptionSettings
java.lang.Object
com.azure.resourcemanager.compute.models.DiskEncryptionSettings
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DiskEncryptionSettings>
public final class DiskEncryptionSettings
extends Object
implements com.azure.json.JsonSerializable<DiskEncryptionSettings>
Describes a Encryption Settings for a Disk.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of DiskEncryptionSettings class. -
Method Summary
Modifier and TypeMethodDescriptionGet the diskEncryptionKey property: Specifies the location of the disk encryption key, which is a Key Vault Secret.enabled()Get the enabled property: Specifies whether disk encryption should be enabled on the virtual machine.static DiskEncryptionSettingsfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DiskEncryptionSettings from the JsonReader.Get the keyEncryptionKey property: Specifies the location of the key encryption key in Key Vault.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDiskEncryptionKey(KeyVaultSecretReference diskEncryptionKey) Set the diskEncryptionKey property: Specifies the location of the disk encryption key, which is a Key Vault Secret.withEnabled(Boolean enabled) Set the enabled property: Specifies whether disk encryption should be enabled on the virtual machine.withKeyEncryptionKey(KeyVaultKeyReference keyEncryptionKey) Set the keyEncryptionKey property: Specifies the location of the key encryption key in Key Vault.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
-
DiskEncryptionSettings
public DiskEncryptionSettings()Creates an instance of DiskEncryptionSettings class.
-
-
Method Details
-
diskEncryptionKey
Get the diskEncryptionKey property: Specifies the location of the disk encryption key, which is a Key Vault Secret.- Returns:
- the diskEncryptionKey value.
-
withDiskEncryptionKey
Set the diskEncryptionKey property: Specifies the location of the disk encryption key, which is a Key Vault Secret.- Parameters:
diskEncryptionKey- the diskEncryptionKey value to set.- Returns:
- the DiskEncryptionSettings object itself.
-
keyEncryptionKey
Get the keyEncryptionKey property: Specifies the location of the key encryption key in Key Vault.- Returns:
- the keyEncryptionKey value.
-
withKeyEncryptionKey
Set the keyEncryptionKey property: Specifies the location of the key encryption key in Key Vault.- Parameters:
keyEncryptionKey- the keyEncryptionKey value to set.- Returns:
- the DiskEncryptionSettings object itself.
-
enabled
Get the enabled property: Specifies whether disk encryption should be enabled on the virtual machine.- Returns:
- the enabled value.
-
withEnabled
Set the enabled property: Specifies whether disk encryption should be enabled on the virtual machine.- Parameters:
enabled- the enabled value to set.- Returns:
- the DiskEncryptionSettings 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<DiskEncryptionSettings>- Throws:
IOException
-
fromJson
public static DiskEncryptionSettings fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of DiskEncryptionSettings from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of DiskEncryptionSettings 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 DiskEncryptionSettings.
-