Class SecurityProfile
java.lang.Object
com.azure.resourcemanager.compute.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 -
Method Summary
Modifier and TypeMethodDescriptionGet 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.Get the encryptionIdentity property: Specifies the Managed Identity used by ADE to get access token for keyvault operations.static SecurityProfilefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SecurityProfile from the JsonReader.Get the proxyAgentSettings property: Specifies ProxyAgent settings while creating the virtual machine.Get the securityType property: Specifies the SecurityType of the virtual machine.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Get the uefiSettings property: Specifies the security settings like secure boot and vTPM used while creating the virtual machine.voidvalidate()Validates the instance.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.withEncryptionIdentity(EncryptionIdentity encryptionIdentity) Set the encryptionIdentity property: Specifies the Managed Identity used by ADE to get access token for keyvault operations.withProxyAgentSettings(ProxyAgentSettings proxyAgentSettings) Set the proxyAgentSettings property: Specifies ProxyAgent settings while creating the virtual machine.withSecurityType(SecurityTypes securityType) Set the securityType property: Specifies the SecurityType of the virtual machine.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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
SecurityProfile
public SecurityProfile()Creates an instance of SecurityProfile class.
-
-
Method Details
-
uefiSettings
Get the uefiSettings property: Specifies the security settings like secure boot and vTPM used while creating the virtual machine. Minimum api-version: 2020-12-01.- Returns:
- the uefiSettings value.
-
withUefiSettings
Set the uefiSettings property: Specifies the security settings like secure boot and vTPM used while creating the virtual machine. Minimum api-version: 2020-12-01.- Parameters:
uefiSettings- the uefiSettings value to set.- Returns:
- the SecurityProfile object itself.
-
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. The default behavior is: The Encryption at host will be disabled unless this property is set to true for the resource.- Returns:
- the encryptionAtHost value.
-
withEncryptionAtHost
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. The default behavior is: 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
Get the securityType property: Specifies the SecurityType of the virtual machine. It has to be set to any specified value to enable UefiSettings. The default behavior is: UefiSettings will not be enabled unless this property is set.- Returns:
- the securityType value.
-
withSecurityType
Set the securityType property: Specifies the SecurityType of the virtual machine. It has to be set to any specified value to enable UefiSettings. The default behavior is: UefiSettings will not be enabled unless this property is set.- Parameters:
securityType- the securityType value to set.- Returns:
- the SecurityProfile object itself.
-
encryptionIdentity
Get the encryptionIdentity property: Specifies the Managed Identity used by ADE to get access token for keyvault operations.- Returns:
- the encryptionIdentity value.
-
withEncryptionIdentity
Set the encryptionIdentity property: Specifies the Managed Identity used by ADE to get access token for keyvault operations.- Parameters:
encryptionIdentity- the encryptionIdentity value to set.- Returns:
- the SecurityProfile object itself.
-
proxyAgentSettings
Get the proxyAgentSettings property: Specifies ProxyAgent settings while creating the virtual machine. Minimum api-version: 2023-09-01.- Returns:
- the proxyAgentSettings value.
-
withProxyAgentSettings
Set the proxyAgentSettings property: Specifies ProxyAgent settings while creating the virtual machine. Minimum api-version: 2023-09-01.- Parameters:
proxyAgentSettings- the proxyAgentSettings value to set.- Returns:
- the SecurityProfile object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<SecurityProfile>- Throws:
IOException
-
fromJson
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.
-