다음을 통해 공유


DiskEncryptionSettings Class

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

Implements

public final class DiskEncryptionSettings
implements JsonSerializable<DiskEncryptionSettings>

Describes a Encryption Settings for a Disk.

Constructor Summary

Constructor Description
DiskEncryptionSettings()

Creates an instance of DiskEncryptionSettings class.

Method Summary

Modifier and Type Method and Description
KeyVaultSecretReference diskEncryptionKey()

Get the diskEncryptionKey property: Specifies the location of the disk encryption key, which is a Key Vault Secret.

Boolean enabled()

Get the enabled property: Specifies whether disk encryption should be enabled on the virtual machine.

static DiskEncryptionSettings fromJson(JsonReader jsonReader)

Reads an instance of DiskEncryptionSettings from the JsonReader.

KeyVaultKeyReference keyEncryptionKey()

Get the keyEncryptionKey property: Specifies the location of the key encryption key in Key Vault.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DiskEncryptionSettings withDiskEncryptionKey(KeyVaultSecretReference diskEncryptionKey)

Set the diskEncryptionKey property: Specifies the location of the disk encryption key, which is a Key Vault Secret.

DiskEncryptionSettings withEnabled(Boolean enabled)

Set the enabled property: Specifies whether disk encryption should be enabled on the virtual machine.

DiskEncryptionSettings withKeyEncryptionKey(KeyVaultKeyReference keyEncryptionKey)

Set the keyEncryptionKey property: Specifies the location of the key encryption key in Key Vault.

Methods inherited from java.lang.Object

Constructor Details

DiskEncryptionSettings

public DiskEncryptionSettings()

Creates an instance of DiskEncryptionSettings class.

Method Details

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.

enabled

public Boolean enabled()

Get the enabled property: Specifies whether disk encryption should be enabled on the virtual machine.

Returns:

the enabled value.

fromJson

public static DiskEncryptionSettings fromJson(JsonReader jsonReader)

Reads an instance of DiskEncryptionSettings from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DiskEncryptionSettings 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 DiskEncryptionSettings.

keyEncryptionKey

public KeyVaultKeyReference keyEncryptionKey()

Get the keyEncryptionKey property: Specifies the location of the key encryption key in Key Vault.

Returns:

the keyEncryptionKey value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

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.

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.

Applies to