Share via


SecurityProfile Class

  • java.lang.Object
    • com.azure.resourcemanager.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
Boolean encryptionAtHost()

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.

static SecurityProfile fromJson(JsonReader jsonReader)

Reads an instance of SecurityProfile from the JsonReader.

SecurityTypes securityType()

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

JsonWriter toJson(JsonWriter jsonWriter)
UefiSettings uefiSettings()

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

void validate()

Validates the instance.

SecurityProfile withEncryptionAtHost(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 withSecurityType(SecurityTypes securityType)

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

SecurityProfile withUefiSettings(UefiSettings uefiSettings)

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

Methods inherited from java.lang.Object

Constructor Details

SecurityProfile

public SecurityProfile()

Creates an instance of SecurityProfile class.

Method Details

encryptionAtHost

public Boolean encryptionAtHost()

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.

Returns:

the encryptionAtHost value.

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.

securityType

public SecurityTypes securityType()

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

uefiSettings

public UefiSettings uefiSettings()

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

Returns:

the uefiSettings value.

validate

public void validate()

Validates the instance.

withEncryptionAtHost

public SecurityProfile withEncryptionAtHost(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.

Parameters:

encryptionAtHost - the encryptionAtHost value to set.

Returns:

the SecurityProfile object itself.

withSecurityType

public SecurityProfile withSecurityType(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.

withUefiSettings

public SecurityProfile withUefiSettings(UefiSettings uefiSettings)

Set the uefiSettings property: 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.

Applies to