SecurityProfile Class
- java.
lang. Object - com.
azure. resourcemanager. compute. 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 |
---|---|
Boolean |
encryptionAtHost()
Get the encryption |
Encryption |
encryptionIdentity()
Get the encryption |
static
Security |
fromJson(JsonReader jsonReader)
Reads an instance of Security |
Proxy |
proxyAgentSettings()
Get the proxy |
Security |
securityType()
Get the security |
Json |
toJson(JsonWriter jsonWriter) |
Uefi |
uefiSettings()
Get the uefi |
void |
validate()
Validates the instance. |
Security |
withEncryptionAtHost(Boolean encryptionAtHost)
Set the encryption |
Security |
withEncryptionIdentity(EncryptionIdentity encryptionIdentity)
Set the encryption |
Security |
withProxyAgentSettings(ProxyAgentSettings proxyAgentSettings)
Set the proxy |
Security |
withSecurityType(SecurityTypes securityType)
Set the security |
Security |
withUefiSettings(UefiSettings uefiSettings)
Set the uefi |
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. The default behavior is: The Encryption at host will be disabled unless this property is set to true for the resource.
Returns:
encryptionIdentity
public EncryptionIdentity encryptionIdentity()
Get the encryptionIdentity property: Specifies the Managed Identity used by ADE to get access token for keyvault operations.
Returns:
fromJson
public static SecurityProfile fromJson(JsonReader jsonReader)
Reads an instance of SecurityProfile from the JsonReader.
Parameters:
Returns:
Throws:
proxyAgentSettings
public ProxyAgentSettings proxyAgentSettings()
Get the proxyAgentSettings property: Specifies ProxyAgent settings while creating the virtual machine. Minimum api-version: 2023-09-01.
Returns:
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. The default behavior is: UefiSettings will not be enabled unless this property is set.
Returns:
toJson
uefiSettings
public UefiSettings 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:
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. The default behavior is: The Encryption at host will be disabled unless this property is set to true for the resource.
Parameters:
Returns:
withEncryptionIdentity
public SecurityProfile withEncryptionIdentity(EncryptionIdentity encryptionIdentity)
Set the encryptionIdentity property: Specifies the Managed Identity used by ADE to get access token for keyvault operations.
Parameters:
Returns:
withProxyAgentSettings
public SecurityProfile withProxyAgentSettings(ProxyAgentSettings proxyAgentSettings)
Set the proxyAgentSettings property: Specifies ProxyAgent settings while creating the virtual machine. Minimum api-version: 2023-09-01.
Parameters:
Returns:
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. The default behavior is: UefiSettings will not be enabled unless this property is set.
Parameters:
Returns:
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. Minimum api-version: 2020-12-01.
Parameters:
Returns:
Applies to
Azure SDK for Java