Class UefiSettings
java.lang.Object
com.azure.resourcemanager.compute.models.UefiSettings
- All Implemented Interfaces:
com.azure.json.JsonSerializable<UefiSettings>
public final class UefiSettings
extends Object
implements com.azure.json.JsonSerializable<UefiSettings>
Specifies the security settings like secure boot and vTPM used while creating the virtual machine. Minimum
api-version: 2020-12-01.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic UefiSettingsfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of UefiSettings from the JsonReader.Get the secureBootEnabled property: Specifies whether secure boot should be enabled on the virtual machine.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Get the vTpmEnabled property: Specifies whether vTPM should be enabled on the virtual machine.withSecureBootEnabled(Boolean secureBootEnabled) Set the secureBootEnabled property: Specifies whether secure boot should be enabled on the virtual machine.withVTpmEnabled(Boolean vTpmEnabled) Set the vTpmEnabled property: Specifies whether vTPM should be enabled on the virtual machine.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
-
UefiSettings
public UefiSettings()Creates an instance of UefiSettings class.
-
-
Method Details
-
secureBootEnabled
Get the secureBootEnabled property: Specifies whether secure boot should be enabled on the virtual machine. Minimum api-version: 2020-12-01.- Returns:
- the secureBootEnabled value.
-
withSecureBootEnabled
Set the secureBootEnabled property: Specifies whether secure boot should be enabled on the virtual machine. Minimum api-version: 2020-12-01.- Parameters:
secureBootEnabled- the secureBootEnabled value to set.- Returns:
- the UefiSettings object itself.
-
vTpmEnabled
Get the vTpmEnabled property: Specifies whether vTPM should be enabled on the virtual machine. Minimum api-version: 2020-12-01.- Returns:
- the vTpmEnabled value.
-
withVTpmEnabled
Set the vTpmEnabled property: Specifies whether vTPM should be enabled on the virtual machine. Minimum api-version: 2020-12-01.- Parameters:
vTpmEnabled- the vTpmEnabled value to set.- Returns:
- the UefiSettings 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<UefiSettings>- Throws:
IOException
-
fromJson
Reads an instance of UefiSettings from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of UefiSettings 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 UefiSettings.
-