Class VMDiskSecurityProfile

java.lang.Object
com.azure.resourcemanager.compute.models.VMDiskSecurityProfile

public final class VMDiskSecurityProfile extends Object
Specifies the security profile settings for the managed disk. <br><br> NOTE: It can only be set for Confidential VMs.
  • Constructor Details

    • VMDiskSecurityProfile

      public VMDiskSecurityProfile()
  • Method Details

    • securityEncryptionType

      public SecurityEncryptionTypes 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

      public DiskEncryptionSetParameters 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

      public VMDiskSecurityProfile 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.
      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.