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 Summary
ConstructorsConstructorDescriptionCreates an instance of OSDiskImageSecurityProfile class. -
Method Summary
Modifier and TypeMethodDescriptionGet the confidentialVMEncryptionType property: confidential VM encryption types.static OSDiskImageSecurityProfilefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of OSDiskImageSecurityProfile from the JsonReader.Get the secureVMDiskEncryptionSetId property: secure VM disk encryption set id.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withConfidentialVMEncryptionType(ConfidentialVMEncryptionType confidentialVMEncryptionType) Set the confidentialVMEncryptionType property: confidential VM encryption types.withSecureVMDiskEncryptionSetId(String secureVMDiskEncryptionSetId) Set the secureVMDiskEncryptionSetId property: secure VM disk encryption set id.Methods inherited from class 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
-
OSDiskImageSecurityProfile
public OSDiskImageSecurityProfile()Creates an instance of OSDiskImageSecurityProfile class.
-
-
Method Details
-
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
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
- Specified by:
toJsonin interfacecom.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.
-