Class DiskEncryptionSettings
- java.lang.Object
-
- com.azure.resourcemanager.compute.models.DiskEncryptionSettings
-
public final class DiskEncryptionSettings extends Object
Describes a Encryption Settings for a Disk.
-
-
Constructor Summary
Constructors Constructor Description DiskEncryptionSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KeyVaultSecretReferencediskEncryptionKey()Get the diskEncryptionKey property: Specifies the location of the disk encryption key, which is a Key Vault Secret.Booleanenabled()Get the enabled property: Specifies whether disk encryption should be enabled on the virtual machine.KeyVaultKeyReferencekeyEncryptionKey()Get the keyEncryptionKey property: Specifies the location of the key encryption key in Key Vault.voidvalidate()Validates the instance.DiskEncryptionSettingswithDiskEncryptionKey(KeyVaultSecretReference diskEncryptionKey)Set the diskEncryptionKey property: Specifies the location of the disk encryption key, which is a Key Vault Secret.DiskEncryptionSettingswithEnabled(Boolean enabled)Set the enabled property: Specifies whether disk encryption should be enabled on the virtual machine.DiskEncryptionSettingswithKeyEncryptionKey(KeyVaultKeyReference keyEncryptionKey)Set the keyEncryptionKey property: Specifies the location of the key encryption key in Key Vault.
-
-
-
Method Detail
-
diskEncryptionKey
public KeyVaultSecretReference diskEncryptionKey()
Get the diskEncryptionKey property: Specifies the location of the disk encryption key, which is a Key Vault Secret.- Returns:
- the diskEncryptionKey value.
-
withDiskEncryptionKey
public DiskEncryptionSettings withDiskEncryptionKey(KeyVaultSecretReference diskEncryptionKey)
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
public KeyVaultKeyReference keyEncryptionKey()
Get the keyEncryptionKey property: Specifies the location of the key encryption key in Key Vault.- Returns:
- the keyEncryptionKey value.
-
withKeyEncryptionKey
public DiskEncryptionSettings withKeyEncryptionKey(KeyVaultKeyReference keyEncryptionKey)
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
public Boolean enabled()
Get the enabled property: Specifies whether disk encryption should be enabled on the virtual machine.- Returns:
- the enabled value.
-
withEnabled
public DiskEncryptionSettings withEnabled(Boolean enabled)
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.
-
-