Class DiskSecurityProfile
- java.lang.Object
-
- com.azure.resourcemanager.compute.models.DiskSecurityProfile
-
public final class DiskSecurityProfile extends Object
Contains the security related information for the resource.
-
-
Constructor Summary
Constructors Constructor Description DiskSecurityProfile()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringsecureVMDiskEncryptionSetId()Get the secureVMDiskEncryptionSetId property: ResourceId of the disk encryption set associated to Confidential VM supported disk encrypted with customer managed key.DiskSecurityTypessecurityType()Get the securityType property: Specifies the SecurityType of the VM.voidvalidate()Validates the instance.DiskSecurityProfilewithSecureVMDiskEncryptionSetId(String secureVMDiskEncryptionSetId)Set the secureVMDiskEncryptionSetId property: ResourceId of the disk encryption set associated to Confidential VM supported disk encrypted with customer managed key.DiskSecurityProfilewithSecurityType(DiskSecurityTypes securityType)Set the securityType property: Specifies the SecurityType of the VM.
-
-
-
Method Detail
-
securityType
public DiskSecurityTypes securityType()
Get the securityType property: Specifies the SecurityType of the VM. Applicable for OS disks only.- Returns:
- the securityType value.
-
withSecurityType
public DiskSecurityProfile withSecurityType(DiskSecurityTypes securityType)
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
public String 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
public DiskSecurityProfile withSecureVMDiskEncryptionSetId(String secureVMDiskEncryptionSetId)
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.
-
-