Class EncryptionSettingsElement
- java.lang.Object
-
- com.azure.resourcemanager.compute.models.EncryptionSettingsElement
-
public final class EncryptionSettingsElement extends Object
Encryption settings for one disk volume.
-
-
Constructor Summary
Constructors Constructor Description EncryptionSettingsElement()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KeyVaultAndSecretReferencediskEncryptionKey()Get the diskEncryptionKey property: Key Vault Secret Url and vault id of the disk encryption key.KeyVaultAndKeyReferencekeyEncryptionKey()Get the keyEncryptionKey property: Key Vault Key Url and vault id of the key encryption key.voidvalidate()Validates the instance.EncryptionSettingsElementwithDiskEncryptionKey(KeyVaultAndSecretReference diskEncryptionKey)Set the diskEncryptionKey property: Key Vault Secret Url and vault id of the disk encryption key.EncryptionSettingsElementwithKeyEncryptionKey(KeyVaultAndKeyReference keyEncryptionKey)Set the keyEncryptionKey property: Key Vault Key Url and vault id of the key encryption key.
-
-
-
Method Detail
-
diskEncryptionKey
public KeyVaultAndSecretReference 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
public KeyVaultAndKeyReference 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
public EncryptionSettingsElement withKeyEncryptionKey(KeyVaultAndKeyReference keyEncryptionKey)
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.
-
-