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 Details

    • DiskSecurityProfile

      public DiskSecurityProfile()
      Creates an instance of DiskSecurityProfile class.
  • Method Details

    • 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.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<DiskSecurityProfile>
      Throws:
      IOException
    • fromJson

      public static DiskSecurityProfile fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.