public final class DiskEncryptionSettings extends Object
Constructor and Description |
---|
DiskEncryptionSettings() |
Modifier and Type | Method and Description |
---|---|
KeyVaultSecretReference |
diskEncryptionKey()
Get the diskEncryptionKey property: Specifies the location of the disk encryption key, which is a Key Vault
Secret.
|
Boolean |
enabled()
Get the enabled property: Specifies whether disk encryption should be enabled on the virtual machine.
|
KeyVaultKeyReference |
keyEncryptionKey()
Get the keyEncryptionKey property: Specifies the location of the key encryption key in Key Vault.
|
void |
validate()
Validates the instance.
|
DiskEncryptionSettings |
withDiskEncryptionKey(KeyVaultSecretReference diskEncryptionKey)
Set the diskEncryptionKey property: Specifies the location of the disk encryption key, which is a Key Vault
Secret.
|
DiskEncryptionSettings |
withEnabled(Boolean enabled)
Set the enabled property: Specifies whether disk encryption should be enabled on the virtual machine.
|
DiskEncryptionSettings |
withKeyEncryptionKey(KeyVaultKeyReference keyEncryptionKey)
Set the keyEncryptionKey property: Specifies the location of the key encryption key in Key Vault.
|
public KeyVaultSecretReference diskEncryptionKey()
public DiskEncryptionSettings withDiskEncryptionKey(KeyVaultSecretReference diskEncryptionKey)
diskEncryptionKey
- the diskEncryptionKey value to set.public KeyVaultKeyReference keyEncryptionKey()
public DiskEncryptionSettings withKeyEncryptionKey(KeyVaultKeyReference keyEncryptionKey)
keyEncryptionKey
- the keyEncryptionKey value to set.public Boolean enabled()
public DiskEncryptionSettings withEnabled(Boolean enabled)
enabled
- the enabled value to set.public void validate()
IllegalArgumentException
- thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.