Package com.azure.compute.batch.models
Class UefiSettings
java.lang.Object
com.azure.compute.batch.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.
-
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.Get the vTpmEnabled property: Specifies whether vTPM should be enabled on the virtual machine.setSecureBootEnabled(Boolean secureBootEnabled) Set the secureBootEnabled property: Specifies whether secure boot should be enabled on the virtual machine.setVTpmEnabled(Boolean vTpmEnabled) Set the vTpmEnabled property: Specifies whether vTPM should be enabled on the virtual machine.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) 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
-
UefiSettings
public UefiSettings()Creates an instance of UefiSettings class.
-
-
Method Details
-
isSecureBootEnabled
Get the secureBootEnabled property: Specifies whether secure boot should be enabled on the virtual machine.- Returns:
- the secureBootEnabled value.
-
setSecureBootEnabled
Set the secureBootEnabled property: Specifies whether secure boot should be enabled on the virtual machine.- Parameters:
secureBootEnabled- the secureBootEnabled value to set.- Returns:
- the UefiSettings object itself.
-
isVTpmEnabled
Get the vTpmEnabled property: Specifies whether vTPM should be enabled on the virtual machine.- Returns:
- the vTpmEnabled value.
-
setVTpmEnabled
Set the vTpmEnabled property: Specifies whether vTPM should be enabled on the virtual machine.- Parameters:
vTpmEnabled- the vTpmEnabled value to set.- Returns:
- the UefiSettings object itself.
-
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.
-