Class OSDiskImageSecurityProfile

java.lang.Object
com.azure.resourcemanager.compute.models.OSDiskImageSecurityProfile
All Implemented Interfaces:
com.azure.json.JsonSerializable<OSDiskImageSecurityProfile>

public final class OSDiskImageSecurityProfile extends Object implements com.azure.json.JsonSerializable<OSDiskImageSecurityProfile>
Contains security profile for an OS disk image.
  • Constructor Details

    • OSDiskImageSecurityProfile

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

    • confidentialVMEncryptionType

      public ConfidentialVMEncryptionType confidentialVMEncryptionType()
      Get the confidentialVMEncryptionType property: confidential VM encryption types.
      Returns:
      the confidentialVMEncryptionType value.
    • withConfidentialVMEncryptionType

      public OSDiskImageSecurityProfile withConfidentialVMEncryptionType(ConfidentialVMEncryptionType confidentialVMEncryptionType)
      Set the confidentialVMEncryptionType property: confidential VM encryption types.
      Parameters:
      confidentialVMEncryptionType - the confidentialVMEncryptionType value to set.
      Returns:
      the OSDiskImageSecurityProfile object itself.
    • secureVMDiskEncryptionSetId

      public String secureVMDiskEncryptionSetId()
      Get the secureVMDiskEncryptionSetId property: secure VM disk encryption set id.
      Returns:
      the secureVMDiskEncryptionSetId value.
    • withSecureVMDiskEncryptionSetId

      public OSDiskImageSecurityProfile withSecureVMDiskEncryptionSetId(String secureVMDiskEncryptionSetId)
      Set the secureVMDiskEncryptionSetId property: secure VM disk encryption set id.
      Parameters:
      secureVMDiskEncryptionSetId - the secureVMDiskEncryptionSetId value to set.
      Returns:
      the OSDiskImageSecurityProfile 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<OSDiskImageSecurityProfile>
      Throws:
      IOException
    • fromJson

      public static OSDiskImageSecurityProfile fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of OSDiskImageSecurityProfile from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of OSDiskImageSecurityProfile 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 OSDiskImageSecurityProfile.