VMDiskSecurityProfile Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. VMDiskSecurityProfile
- com.
Implements
public final class VMDiskSecurityProfile
implements JsonSerializable<VMDiskSecurityProfile>
Specifies the security profile settings for the managed disk. **Note:** It can only be set for Confidential VMs.
Constructor Summary
Constructor | Description |
---|---|
VMDiskSecurityProfile() |
Creates an instance of VMDisk |
Method Summary
Modifier and Type | Method and Description |
---|---|
Disk |
diskEncryptionSet()
Get the disk |
static
VMDisk |
fromJson(JsonReader jsonReader)
Reads an instance of VMDisk |
Security |
securityEncryptionType()
Get the security |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
VMDisk |
withDiskEncryptionSet(DiskEncryptionSetParameters diskEncryptionSet)
Set the disk |
VMDisk |
withSecurityEncryptionType(SecurityEncryptionTypes securityEncryptionType)
Set the security |
Methods inherited from java.lang.Object
Constructor Details
VMDiskSecurityProfile
public VMDiskSecurityProfile()
Creates an instance of VMDiskSecurityProfile class.
Method Details
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:
fromJson
public static VMDiskSecurityProfile fromJson(JsonReader jsonReader)
Reads an instance of VMDiskSecurityProfile from the JsonReader.
Parameters:
Returns:
Throws:
securityEncryptionType
public SecurityEncryptionTypes 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:
toJson
validate
public void validate()
Validates the instance.
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:
Returns:
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:
Returns:
Applies to
Azure SDK for Java