Class EncryptionSettingsElement
java.lang.Object
com.azure.resourcemanager.compute.models.EncryptionSettingsElement
- All Implemented Interfaces:
com.azure.json.JsonSerializable<EncryptionSettingsElement>
public final class EncryptionSettingsElement
extends Object
implements com.azure.json.JsonSerializable<EncryptionSettingsElement>
Encryption settings for one disk volume.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of EncryptionSettingsElement class. -
Method Summary
Modifier and TypeMethodDescriptionGet the diskEncryptionKey property: Key Vault Secret Url and vault id of the disk encryption key.static EncryptionSettingsElementfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of EncryptionSettingsElement from the JsonReader.Get the keyEncryptionKey property: Key Vault Key Url and vault id of the key encryption key.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDiskEncryptionKey(KeyVaultAndSecretReference diskEncryptionKey) Set the diskEncryptionKey property: Key Vault Secret Url and vault id of the disk encryption key.withKeyEncryptionKey(KeyVaultAndKeyReference keyEncryptionKey) Set the keyEncryptionKey property: Key Vault Key Url and vault id of the key encryption key.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
-
EncryptionSettingsElement
public EncryptionSettingsElement()Creates an instance of EncryptionSettingsElement class.
-
-
Method Details
-
diskEncryptionKey
Get the diskEncryptionKey property: Key Vault Secret Url and vault id of the disk encryption key.- Returns:
- the diskEncryptionKey value.
-
withDiskEncryptionKey
public EncryptionSettingsElement withDiskEncryptionKey(KeyVaultAndSecretReference diskEncryptionKey) Set the diskEncryptionKey property: Key Vault Secret Url and vault id of the disk encryption key.- Parameters:
diskEncryptionKey- the diskEncryptionKey value to set.- Returns:
- the EncryptionSettingsElement object itself.
-
keyEncryptionKey
Get the keyEncryptionKey property: Key Vault Key Url and vault id of the key encryption key. KeyEncryptionKey is optional and when provided is used to unwrap the disk encryption key.- Returns:
- the keyEncryptionKey value.
-
withKeyEncryptionKey
Set the keyEncryptionKey property: Key Vault Key Url and vault id of the key encryption key. KeyEncryptionKey is optional and when provided is used to unwrap the disk encryption key.- Parameters:
keyEncryptionKey- the keyEncryptionKey value to set.- Returns:
- the EncryptionSettingsElement 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<EncryptionSettingsElement>- Throws:
IOException
-
fromJson
public static EncryptionSettingsElement fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of EncryptionSettingsElement from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of EncryptionSettingsElement 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 EncryptionSettingsElement.
-