Class VMDiskSecurityProfile
java.lang.Object
com.azure.resourcemanager.compute.models.VMDiskSecurityProfile
- All Implemented Interfaces:
com.azure.json.JsonSerializable<VMDiskSecurityProfile>
public final class VMDiskSecurityProfile
extends Object
implements com.azure.json.JsonSerializable<VMDiskSecurityProfile>
Specifies the security profile settings for the managed disk. **Note:** It can only be set for Confidential VMs.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the diskEncryptionSet property: Specifies the customer managed disk encryption set resource id for the managed disk that is used for Customer Managed Key encrypted ConfidentialVM OS Disk and VMGuest blob.static VMDiskSecurityProfilefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of VMDiskSecurityProfile from the JsonReader.Get the securityEncryptionType property: Specifies the EncryptionType of the managed disk.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDiskEncryptionSet(DiskEncryptionSetParameters diskEncryptionSet) Set the diskEncryptionSet property: Specifies the customer managed disk encryption set resource id for the managed disk that is used for Customer Managed Key encrypted ConfidentialVM OS Disk and VMGuest blob.withSecurityEncryptionType(SecurityEncryptionTypes securityEncryptionType) Set the securityEncryptionType property: Specifies the EncryptionType of the managed disk.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
VMDiskSecurityProfile
public VMDiskSecurityProfile()Creates an instance of VMDiskSecurityProfile class.
-
-
Method Details
-
securityEncryptionType
Get the securityEncryptionType property: 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.- Returns:
- the securityEncryptionType value.
-
withSecurityEncryptionType
public VMDiskSecurityProfile withSecurityEncryptionType(SecurityEncryptionTypes securityEncryptionType) Set the securityEncryptionType property: 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.- Parameters:
securityEncryptionType- the securityEncryptionType value to set.- Returns:
- the VMDiskSecurityProfile object itself.
-
diskEncryptionSet
Get the diskEncryptionSet property: Specifies the customer managed disk encryption set resource id for the managed disk that is used for Customer Managed Key encrypted ConfidentialVM OS Disk and VMGuest blob.- Returns:
- the diskEncryptionSet value.
-
withDiskEncryptionSet
Set the diskEncryptionSet property: Specifies the customer managed disk encryption set resource id for the managed disk that is used for Customer Managed Key encrypted ConfidentialVM OS Disk and VMGuest blob.- Parameters:
diskEncryptionSet- the diskEncryptionSet value to set.- Returns:
- the VMDiskSecurityProfile object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<VMDiskSecurityProfile>- Throws:
IOException
-
fromJson
public static VMDiskSecurityProfile fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of VMDiskSecurityProfile from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of VMDiskSecurityProfile 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 VMDiskSecurityProfile.
-