SecurityProfile Class
- java.
lang. Object - com.
azure. compute. batch. models. SecurityProfile
- com.
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 Security |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Security |
fromJson(JsonReader jsonReader)
Reads an instance of Security |
|
Security |
getSecurityType()
Get the security |
|
Batch |
getUefiSettings()
Get the uefi |
| Boolean |
isEncryptionAtHost()
Get the encryption |
|
Security |
setEncryptionAtHost(Boolean encryptionAtHost)
Set the encryption |
|
Security |
setSecurityType(SecurityTypes securityType)
Set the security |
|
Security |
setUefiSettings(BatchUefiSettings uefiSettings)
Set the uefi |
|
Json |
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:
Returns:
Throws:
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:
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:
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:
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:
Returns:
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:
Returns:
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:
Returns: