다음을 통해 공유


UefiSettings Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.UefiSettings

Implements

public final class UefiSettings
implements 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

Constructor Description
UefiSettings()

Creates an instance of UefiSettings class.

Method Summary

Modifier and Type Method and Description
static UefiSettings fromJson(JsonReader jsonReader)

Reads an instance of UefiSettings from the JsonReader.

Boolean secureBootEnabled()

Get the secureBootEnabled property: Specifies whether secure boot should be enabled on the virtual machine.

JsonWriter toJson(JsonWriter jsonWriter)
Boolean vTpmEnabled()

Get the vTpmEnabled property: Specifies whether vTPM should be enabled on the virtual machine.

void validate()

Validates the instance.

UefiSettings withSecureBootEnabled(Boolean secureBootEnabled)

Set the secureBootEnabled property: Specifies whether secure boot should be enabled on the virtual machine.

UefiSettings withVTpmEnabled(Boolean vTpmEnabled)

Set the vTpmEnabled property: Specifies whether vTPM should be enabled on the virtual machine.

Methods inherited from java.lang.Object

Constructor Details

UefiSettings

public UefiSettings()

Creates an instance of UefiSettings class.

Method Details

fromJson

public static UefiSettings fromJson(JsonReader jsonReader)

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.

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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.

validate

public void validate()

Validates the instance.

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.

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.

Applies to