Class DiskSecurityProfile
java.lang.Object
com.azure.resourcemanager.compute.models.DiskSecurityProfile
Contains the security related information for the resource.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the secureVMDiskEncryptionSetId property: ResourceId of the disk encryption set associated to Confidential VM supported disk encrypted with customer managed key.Get the securityType property: Specifies the SecurityType of the VM.voidvalidate()Validates the instance.withSecureVMDiskEncryptionSetId(String secureVMDiskEncryptionSetId) Set the secureVMDiskEncryptionSetId property: ResourceId of the disk encryption set associated to Confidential VM supported disk encrypted with customer managed key.withSecurityType(DiskSecurityTypes securityType) Set the securityType property: Specifies the SecurityType of the VM.
-
Constructor Details
-
DiskSecurityProfile
public DiskSecurityProfile()Creates an instance of DiskSecurityProfile class.
-
-
Method Details
-
securityType
Get the securityType property: Specifies the SecurityType of the VM. Applicable for OS disks only.- Returns:
- the securityType value.
-
withSecurityType
Set the securityType property: Specifies the SecurityType of the VM. Applicable for OS disks only.- Parameters:
securityType- the securityType value to set.- Returns:
- the DiskSecurityProfile object itself.
-
secureVMDiskEncryptionSetId
Get the secureVMDiskEncryptionSetId property: ResourceId of the disk encryption set associated to Confidential VM supported disk encrypted with customer managed key.- Returns:
- the secureVMDiskEncryptionSetId value.
-
withSecureVMDiskEncryptionSetId
Set the secureVMDiskEncryptionSetId property: ResourceId of the disk encryption set associated to Confidential VM supported disk encrypted with customer managed key.- Parameters:
secureVMDiskEncryptionSetId- the secureVMDiskEncryptionSetId value to set.- Returns:
- the DiskSecurityProfile object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-