Class EncryptionSettingsCollection
java.lang.Object
com.microsoft.azure.management.compute.EncryptionSettingsCollection
Encryption settings for disk or snapshot.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
enabled()
Get set this flag to true and provide DiskEncryptionKey and optional KeyEncryptionKey to enable encryption.Get a collection of encryption settings, one for each disk volume.Get describes what type of encryption is used for the disks.withEnabled
(boolean enabled) Set set this flag to true and provide DiskEncryptionKey and optional KeyEncryptionKey to enable encryption.withEncryptionSettings
(List<EncryptionSettingsElement> encryptionSettings) Set a collection of encryption settings, one for each disk volume.withEncryptionSettingsVersion
(String encryptionSettingsVersion) Set describes what type of encryption is used for the disks.
-
Constructor Details
-
EncryptionSettingsCollection
public EncryptionSettingsCollection()
-
-
Method Details
-
enabled
public boolean enabled()Get set this flag to true and provide DiskEncryptionKey and optional KeyEncryptionKey to enable encryption. Set this flag to false and remove DiskEncryptionKey and KeyEncryptionKey to disable encryption. If EncryptionSettings is null in the request object, the existing settings remain unchanged.- Returns:
- the enabled value
-
withEnabled
Set set this flag to true and provide DiskEncryptionKey and optional KeyEncryptionKey to enable encryption. Set this flag to false and remove DiskEncryptionKey and KeyEncryptionKey to disable encryption. If EncryptionSettings is null in the request object, the existing settings remain unchanged.- Parameters:
enabled
- the enabled value to set- Returns:
- the EncryptionSettingsCollection object itself.
-
encryptionSettings
Get a collection of encryption settings, one for each disk volume.- Returns:
- the encryptionSettings value
-
withEncryptionSettings
public EncryptionSettingsCollection withEncryptionSettings(List<EncryptionSettingsElement> encryptionSettings) Set a collection of encryption settings, one for each disk volume.- Parameters:
encryptionSettings
- the encryptionSettings value to set- Returns:
- the EncryptionSettingsCollection object itself.
-
encryptionSettingsVersion
Get describes what type of encryption is used for the disks. Once this field is set, it cannot be overwritten. '1.0' corresponds to Azure Disk Encryption with AAD app.'1.1' corresponds to Azure Disk Encryption.- Returns:
- the encryptionSettingsVersion value
-
withEncryptionSettingsVersion
Set describes what type of encryption is used for the disks. Once this field is set, it cannot be overwritten. '1.0' corresponds to Azure Disk Encryption with AAD app.'1.1' corresponds to Azure Disk Encryption.- Parameters:
encryptionSettingsVersion
- the encryptionSettingsVersion value to set- Returns:
- the EncryptionSettingsCollection object itself.
-