EncryptionSettingsElement Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.EncryptionSettingsElement

Implements

public final class EncryptionSettingsElement
implements JsonSerializable<EncryptionSettingsElement>

Encryption settings for one disk volume.

Constructor Summary

Constructor Description
EncryptionSettingsElement()

Creates an instance of EncryptionSettingsElement class.

Method Summary

Modifier and Type Method and Description
KeyVaultAndSecretReference diskEncryptionKey()

Get the diskEncryptionKey property: Key Vault Secret Url and vault id of the disk encryption key.

static EncryptionSettingsElement fromJson(JsonReader jsonReader)

Reads an instance of EncryptionSettingsElement from the JsonReader.

KeyVaultAndKeyReference keyEncryptionKey()

Get the keyEncryptionKey property: Key Vault Key Url and vault id of the key encryption key.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

EncryptionSettingsElement withDiskEncryptionKey(KeyVaultAndSecretReference diskEncryptionKey)

Set the diskEncryptionKey property: Key Vault Secret Url and vault id of the disk encryption key.

EncryptionSettingsElement withKeyEncryptionKey(KeyVaultAndKeyReference keyEncryptionKey)

Set the keyEncryptionKey property: Key Vault Key Url and vault id of the key encryption 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:

the diskEncryptionKey value.

fromJson

public static EncryptionSettingsElement fromJson(JsonReader jsonReader)

Reads an instance of EncryptionSettingsElement from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of EncryptionSettingsElement if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the EncryptionSettingsElement.

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:

the keyEncryptionKey value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

diskEncryptionKey - the diskEncryptionKey value to set.

Returns:

the EncryptionSettingsElement object itself.

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:

keyEncryptionKey - the keyEncryptionKey value to set.

Returns:

the EncryptionSettingsElement object itself.

Applies to