SecurityEncryptionTypes Class

public final class SecurityEncryptionTypes
extends ExpandableStringEnum<SecurityEncryptionTypes>

Specifies the EncryptionType of the managed disk. It is set to DiskWithVMGuestState for encryption of the managed disk along with VMGuestState blob, VMGuestStateOnly for encryption of just the VMGuestState blob, and NonPersistedTPM for not persisting firmware state in the VMGuestState blob. **Note**: It can be set for only Confidential VMs and required when using Confidential VMs.

Field Summary

Modifier and Type Field and Description
static final SecurityEncryptionTypes DISK_WITH_VMGUEST_STATE

EncryptionType of the managed disk is set to DiskWithVMGuestState for encryption of the managed disk along with VMGuestState blob.

static final SecurityEncryptionTypes NON_PERSISTED_TPM

EncryptionType of the managed disk is set to NonPersistedTPM for not persisting firmware state in the VMGuestState blob.

static final SecurityEncryptionTypes VMGUEST_STATE_ONLY

EncryptionType of the managed disk is set to VMGuestStateOnly for encryption of just the VMGuestState blob.

Constructor Summary

Constructor Description
SecurityEncryptionTypes()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of SecurityEncryptionTypes value.

Method Summary

Modifier and Type Method and Description
static SecurityEncryptionTypes fromString(String name)

Creates or finds a SecurityEncryptionTypes from its string representation.

static Collection<SecurityEncryptionTypes> values()

Gets known SecurityEncryptionTypes values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

DISK_WITH_VMGUEST_STATE

public static final SecurityEncryptionTypes DISK_WITH_VMGUEST_STATE

EncryptionType of the managed disk is set to DiskWithVMGuestState for encryption of the managed disk along with VMGuestState blob. It is not supported in data disks.

NON_PERSISTED_TPM

public static final SecurityEncryptionTypes NON_PERSISTED_TPM

EncryptionType of the managed disk is set to NonPersistedTPM for not persisting firmware state in the VMGuestState blob.

VMGUEST_STATE_ONLY

public static final SecurityEncryptionTypes VMGUEST_STATE_ONLY

EncryptionType of the managed disk is set to VMGuestStateOnly for encryption of just the VMGuestState blob.

Constructor Details

SecurityEncryptionTypes

@Deprecated
public SecurityEncryptionTypes()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of SecurityEncryptionTypes value.

Method Details

fromString

public static SecurityEncryptionTypes fromString(String name)

Creates or finds a SecurityEncryptionTypes from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding SecurityEncryptionTypes.

values

public static Collection<SecurityEncryptionTypes> values()

Gets known SecurityEncryptionTypes values.

Returns:

known SecurityEncryptionTypes values.

Applies to