Class DiskSecurityProfile
java.lang.Object
com.azure.resourcemanager.compute.models.DiskSecurityProfile
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DiskSecurityProfile>
public final class DiskSecurityProfile
extends Object
implements com.azure.json.JsonSerializable<DiskSecurityProfile>
Contains the security related information for the resource.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DiskSecurityProfilefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DiskSecurityProfile from the JsonReader.Get 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.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) 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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
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.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<DiskSecurityProfile>- Throws:
IOException
-
fromJson
Reads an instance of DiskSecurityProfile from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of DiskSecurityProfile if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the DiskSecurityProfile.
-