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
    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.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    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 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

    • secureBootEnabled

      public Boolean 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

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

      public Boolean 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

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

      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.