EncryptionSettingsElement Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. EncryptionSettingsElement
- com.
Implements
public final class EncryptionSettingsElement
implements JsonSerializable<EncryptionSettingsElement>
Encryption settings for one disk volume.
Constructor Summary
Constructor | Description |
---|---|
EncryptionSettingsElement() |
Creates an instance of Encryption |
Method Summary
Modifier and Type | Method and Description |
---|---|
Key |
diskEncryptionKey()
Get the disk |
static
Encryption |
fromJson(JsonReader jsonReader)
Reads an instance of Encryption |
Key |
keyEncryptionKey()
Get the key |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Encryption |
withDiskEncryptionKey(KeyVaultAndSecretReference diskEncryptionKey)
Set the disk |
Encryption |
withKeyEncryptionKey(KeyVaultAndKeyReference keyEncryptionKey)
Set the key |
Methods inherited from java.lang.Object
Constructor Details
EncryptionSettingsElement
public EncryptionSettingsElement()
Creates an instance of EncryptionSettingsElement class.
Method Details
diskEncryptionKey
public KeyVaultAndSecretReference diskEncryptionKey()
Get the diskEncryptionKey property: Key Vault Secret Url and vault id of the disk encryption key.
Returns:
fromJson
public static EncryptionSettingsElement fromJson(JsonReader jsonReader)
Reads an instance of EncryptionSettingsElement from the JsonReader.
Parameters:
Returns:
Throws:
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:
toJson
validate
public void validate()
Validates the instance.
withDiskEncryptionKey
public EncryptionSettingsElement withDiskEncryptionKey(KeyVaultAndSecretReference diskEncryptionKey)
Set the diskEncryptionKey property: Key Vault Secret Url and vault id of the disk encryption key.
Parameters:
Returns:
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:
Returns:
Applies to
Azure SDK for Java