SecurityProfile Class
- java.
lang. Object - com.
azure. resourcemanager. 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 |
|---|---|
| Boolean |
encryptionAtHost()
Get the encryption |
|
static
Security |
fromJson(JsonReader jsonReader)
Reads an instance of Security |
|
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 |
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.
Returns:
fromJson
public static SecurityProfile fromJson(JsonReader jsonReader)
Reads an instance of SecurityProfile from the JsonReader.
Parameters:
Returns:
Throws:
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.
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.
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.
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.
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.
Parameters:
Returns: