Share via


BatchVmDiskSecurityProfile Class

  • java.lang.Object
    • com.azure.compute.batch.models.BatchVmDiskSecurityProfile

Implements

public final class BatchVmDiskSecurityProfile
implements JsonSerializable<BatchVmDiskSecurityProfile>

Specifies the security profile settings for the managed disk. **Note**: It can only be set for Confidential VMs and required when using Confidential VMs.

Constructor Summary

Constructor Description
BatchVmDiskSecurityProfile()

Creates an instance of BatchVmDiskSecurityProfile class.

Method Summary

Modifier and Type Method and Description
static BatchVmDiskSecurityProfile fromJson(JsonReader jsonReader)

Reads an instance of BatchVmDiskSecurityProfile from the JsonReader.

SecurityEncryptionTypes getSecurityEncryptionType()

Get the securityEncryptionType property: Specifies the EncryptionType of the managed disk.

BatchVmDiskSecurityProfile setSecurityEncryptionType(SecurityEncryptionTypes securityEncryptionType)

Set the securityEncryptionType property: Specifies the EncryptionType of the managed disk.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

BatchVmDiskSecurityProfile

public BatchVmDiskSecurityProfile()

Creates an instance of BatchVmDiskSecurityProfile class.

Method Details

fromJson

public static BatchVmDiskSecurityProfile fromJson(JsonReader jsonReader)

Reads an instance of BatchVmDiskSecurityProfile from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

getSecurityEncryptionType

public SecurityEncryptionTypes getSecurityEncryptionType()

Get the securityEncryptionType property: Specifies the EncryptionType of the managed disk. It is set to 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 is required when using Confidential VMs.

Returns:

the securityEncryptionType value.

setSecurityEncryptionType

public BatchVmDiskSecurityProfile setSecurityEncryptionType(SecurityEncryptionTypes securityEncryptionType)

Set the securityEncryptionType property: Specifies the EncryptionType of the managed disk. It is set to 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 is required when using Confidential VMs.

Parameters:

securityEncryptionType - the securityEncryptionType value to set.

Returns:

the BatchVmDiskSecurityProfile object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to