Class SecurityProfile

java.lang.Object
com.azure.resourcemanager.compute.models.SecurityProfile

public final class SecurityProfile extends Object
Specifies the Security profile settings for the virtual machine or virtual machine scale set.
  • Constructor Details

    • SecurityProfile

      public SecurityProfile()
  • Method Details

    • uefiSettings

      public UefiSettings uefiSettings()
      Get the uefiSettings property: Specifies the security settings like secure boot and vTPM used while creating the virtual machine. <br><br>Minimum api-version: 2020-12-01.
      Returns:
      the uefiSettings value.
    • 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. <br><br>Minimum api-version: 2020-12-01.
      Parameters:
      uefiSettings - the uefiSettings value to set.
      Returns:
      the SecurityProfile object itself.
    • 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. <br><br> Default: The Encryption at host will be disabled unless this property is set to true for the resource.
      Returns:
      the encryptionAtHost value.
    • 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. <br><br> Default: The Encryption at host will be disabled unless this property is set to true for the resource.
      Parameters:
      encryptionAtHost - the encryptionAtHost value to set.
      Returns:
      the SecurityProfile object itself.
    • 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. <br><br> Default: UefiSettings will not be enabled unless this property is set.
      Returns:
      the securityType value.
    • 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. <br><br> Default: UefiSettings will not be enabled unless this property is set.
      Parameters:
      securityType - the securityType value to set.
      Returns:
      the SecurityProfile object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.