Class VMDiskSecurityProfile
java.lang.Object
com.azure.resourcemanager.compute.models.VMDiskSecurityProfile
Specifies the security profile settings for the managed disk. <br><br> 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.Get the securityEncryptionType property: Specifies the EncryptionType of the managed disk.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.
-
Constructor Details
-
VMDiskSecurityProfile
public VMDiskSecurityProfile()
-
-
Method Details
-
securityEncryptionType
Get the securityEncryptionType property: Specifies the EncryptionType of the managed disk. <br> It is set to DiskWithVMGuestState for encryption of the managed disk along with VMGuestState blob, and VMGuestStateOnly for encryption of just the VMGuestState blob. <br><br> 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. <br> It is set to DiskWithVMGuestState for encryption of the managed disk along with VMGuestState blob, and VMGuestStateOnly for encryption of just the VMGuestState blob. <br><br> 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.
-