Share via


SecurityProfile Class

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

Implements

public final class SecurityProfile
implements JsonSerializable<SecurityProfile>

Specifies the security profile settings for the virtual machine or virtual machine scale set.

Constructor Summary

Constructor Description
SecurityProfile()

Creates an instance of SecurityProfile class.

Method Summary

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

Reads an instance of SecurityProfile from the JsonReader.

SecurityTypes getSecurityType()

Get the securityType property: Specifies the SecurityType of the virtual machine.

BatchUefiSettings getUefiSettings()

Get the uefiSettings property: Specifies the security settings like secure boot and vTPM used while creating the virtual machine.

Boolean isEncryptionAtHost()

Get the encryptionAtHost property: This property can be used by user in the request to enable or disable the Host Encryption for the virtual machine or virtual machine scale set.

SecurityProfile setEncryptionAtHost(Boolean encryptionAtHost)

Set the encryptionAtHost property: This property can be used by user in the request to enable or disable the Host Encryption for the virtual machine or virtual machine scale set.

SecurityProfile setSecurityType(SecurityTypes securityType)

Set the securityType property: Specifies the SecurityType of the virtual machine.

SecurityProfile setUefiSettings(BatchUefiSettings uefiSettings)

Set the uefiSettings property: Specifies the security settings like secure boot and vTPM used while creating the virtual machine.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

SecurityProfile

public SecurityProfile()

Creates an instance of SecurityProfile class.

Method Details

fromJson

public static SecurityProfile fromJson(JsonReader jsonReader)

Reads an instance of SecurityProfile from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

getSecurityType

public SecurityTypes getSecurityType()

Get the securityType property: Specifies the SecurityType of the virtual machine. It has to be set to any specified value to enable UefiSettings.

Returns:

the securityType value.

getUefiSettings

public BatchUefiSettings getUefiSettings()

Get the uefiSettings property: Specifies the security settings like secure boot and vTPM used while creating the virtual machine. Specifies the security settings like secure boot and vTPM used while creating the virtual machine.

Returns:

the uefiSettings value.

isEncryptionAtHost

public Boolean isEncryptionAtHost()

Get the encryptionAtHost property: This property can be used by user in the request to enable or disable the Host Encryption for the virtual machine or virtual machine scale set. This will enable the encryption for all the disks including Resource/Temp disk at host itself. For more information on encryption at host requirements, please refer to https://learn.microsoft.com/azure/virtual-machines/disk-encryption\#supported-vm-sizes.

Returns:

the encryptionAtHost value.

setEncryptionAtHost

public SecurityProfile setEncryptionAtHost(Boolean encryptionAtHost)

Set the encryptionAtHost property: This property can be used by user in the request to enable or disable the Host Encryption for the virtual machine or virtual machine scale set. This will enable the encryption for all the disks including Resource/Temp disk at host itself. For more information on encryption at host requirements, please refer to https://learn.microsoft.com/azure/virtual-machines/disk-encryption\#supported-vm-sizes.

Parameters:

encryptionAtHost - the encryptionAtHost value to set.

Returns:

the SecurityProfile object itself.

setSecurityType

public SecurityProfile setSecurityType(SecurityTypes securityType)

Set the securityType property: Specifies the SecurityType of the virtual machine. It has to be set to any specified value to enable UefiSettings.

Parameters:

securityType - the securityType value to set.

Returns:

the SecurityProfile object itself.

setUefiSettings

public SecurityProfile setUefiSettings(BatchUefiSettings uefiSettings)

Set the uefiSettings property: Specifies the security settings like secure boot and vTPM used while creating the virtual machine. Specifies the security settings like secure boot and vTPM used while creating the virtual machine.

Parameters:

uefiSettings - the uefiSettings value to set.

Returns:

the SecurityProfile object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to