Share via


BatchUefiSettings Class

  • java.lang.Object
    • com.azure.compute.batch.models.BatchUefiSettings

Implements

public final class BatchUefiSettings
implements JsonSerializable<BatchUefiSettings>

Specifies the security settings like secure boot and vTPM used while creating the virtual machine.

Constructor Summary

Constructor Description
BatchUefiSettings()

Creates an instance of BatchUefiSettings class.

Method Summary

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

Reads an instance of BatchUefiSettings from the JsonReader.

Boolean isSecureBootEnabled()

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

Boolean isVTpmEnabled()

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

BatchUefiSettings setSecureBootEnabled(Boolean secureBootEnabled)

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

BatchUefiSettings setVTpmEnabled(Boolean vTpmEnabled)

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

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

BatchUefiSettings

public BatchUefiSettings()

Creates an instance of BatchUefiSettings class.

Method Details

fromJson

public static BatchUefiSettings fromJson(JsonReader jsonReader)

Reads an instance of BatchUefiSettings from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of BatchUefiSettings 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 BatchUefiSettings.

isSecureBootEnabled

public Boolean isSecureBootEnabled()

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

Returns:

the secureBootEnabled value.

isVTpmEnabled

public Boolean isVTpmEnabled()

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

Returns:

the vTpmEnabled value.

setSecureBootEnabled

public BatchUefiSettings 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 BatchUefiSettings object itself.

setVTpmEnabled

public BatchUefiSettings 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 BatchUefiSettings object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to