Class SecurityProfile

java.lang.Object
com.azure.compute.batch.models.SecurityProfile
All Implemented Interfaces:
com.azure.json.JsonSerializable<SecurityProfile>

public final class SecurityProfile extends Object implements com.azure.json.JsonSerializable<SecurityProfile>
Specifies the security profile settings for the virtual machine or virtual machine scale set.
  • Constructor Summary

    Constructors
    Constructor
    Description
    SecurityProfile(boolean encryptionAtHost, SecurityTypes securityType, UefiSettings uefiSettings)
    Creates an instance of SecurityProfile class.
  • Method Summary

    Modifier and Type
    Method
    Description
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of SecurityProfile from the JsonReader.
    Get the securityType property: Specifies the SecurityType of the virtual machine.
    Get the uefiSettings property: Specifies the security settings like secure boot and vTPM used while creating the virtual machine.
    boolean
    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.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • SecurityProfile

      public SecurityProfile(boolean encryptionAtHost, SecurityTypes securityType, UefiSettings uefiSettings)
      Creates an instance of SecurityProfile class.
      Parameters:
      encryptionAtHost - the encryptionAtHost value to set.
      securityType - the securityType value to set.
      uefiSettings - the uefiSettings value to set.
  • Method Details

    • 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.
    • 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 UefiSettings 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.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<SecurityProfile>
      Throws:
      IOException
    • fromJson

      public static SecurityProfile fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the SecurityProfile.