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
    Constructor
    Description
    Creates an instance of UefiSettings class.
  • Method Summary

    Modifier and Type
    Method
    Description
    fromJson(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.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods 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

      public Boolean isSecureBootEnabled()
      Get the secureBootEnabled property: Specifies whether secure boot should be enabled on the virtual machine.
      Returns:
      the secureBootEnabled value.
    • setSecureBootEnabled

      public UefiSettings setSecureBootEnabled(Boolean secureBootEnabled)
      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

      public Boolean isVTpmEnabled()
      Get the vTpmEnabled property: Specifies whether vTPM should be enabled on the virtual machine.
      Returns:
      the vTpmEnabled value.
    • setVTpmEnabled

      public UefiSettings setVTpmEnabled(Boolean vTpmEnabled)
      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

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

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