EncryptionSettingsCollection Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. EncryptionSettingsCollection
- com.
Implements
public final class EncryptionSettingsCollection
implements JsonSerializable<EncryptionSettingsCollection>
Encryption settings for disk or snapshot.
Constructor | Description |
---|---|
Encryption |
Creates an instance of Encryption |
Modifier and Type | Method and Description |
---|---|
boolean |
enabled()
Get the enabled property: Set this flag to true and provide Disk |
List<Encryption |
encryption Get the encryption |
String |
encryption Get the encryption |
static
Encryption |
from Reads an instance of Encryption |
Json |
to |
void |
validate()
Validates the instance. |
Encryption |
with Set the enabled property: Set this flag to true and provide Disk |
Encryption |
with Set the encryption |
Encryption |
with Set the encryption |
Methods inherited from java.lang.Object
EncryptionSettingsCollection
public EncryptionSettingsCollection()
Creates an instance of EncryptionSettingsCollection class.
enabled
public boolean enabled()
Get the enabled property: 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:
encryptionSettings
public List
Get the encryptionSettings property: A collection of encryption settings, one for each disk volume.
Returns:
encryptionSettingsVersion
public String encryptionSettingsVersion()
Get the encryptionSettingsVersion property: 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:
fromJson
public static EncryptionSettingsCollection fromJson(JsonReader jsonReader)
Reads an instance of EncryptionSettingsCollection from the JsonReader.
Parameters:
Returns:
Throws:
toJson
validate
public void validate()
Validates the instance.
withEnabled
public EncryptionSettingsCollection withEnabled(boolean enabled)
Set the enabled property: 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:
Returns:
withEncryptionSettings
public EncryptionSettingsCollection withEncryptionSettings(List
Set the encryptionSettings property: A collection of encryption settings, one for each disk volume.
Parameters:
Returns:
withEncryptionSettingsVersion
public EncryptionSettingsCollection withEncryptionSettingsVersion(String encryptionSettingsVersion)
Set the encryptionSettingsVersion property: 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:
Returns:
Azure SDK for Java-feedback
Azure SDK for Java is een open source project. Selecteer een koppeling om feedback te geven: