Class ProtectionMode
java.lang.Object
com.azure.resourcemanager.security.models.ProtectionMode
The protection mode of the collection/file types. Exe/Msi/Script are used for Windows, Executable is used for Linux.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionexe()
Get the exe property: The application control policy enforcement/protection mode of the machine group.Get the executable property: The application control policy enforcement/protection mode of the machine group.msi()
Get the msi property: The application control policy enforcement/protection mode of the machine group.script()
Get the script property: The application control policy enforcement/protection mode of the machine group.void
validate()
Validates the instance.withExe
(EnforcementMode exe) Set the exe property: The application control policy enforcement/protection mode of the machine group.withExecutable
(EnforcementMode executable) Set the executable property: The application control policy enforcement/protection mode of the machine group.withMsi
(EnforcementMode msi) Set the msi property: The application control policy enforcement/protection mode of the machine group.withScript
(EnforcementMode script) Set the script property: The application control policy enforcement/protection mode of the machine group.
-
Constructor Details
-
ProtectionMode
public ProtectionMode()
-
-
Method Details
-
exe
Get the exe property: The application control policy enforcement/protection mode of the machine group.- Returns:
- the exe value.
-
withExe
Set the exe property: The application control policy enforcement/protection mode of the machine group.- Parameters:
exe
- the exe value to set.- Returns:
- the ProtectionMode object itself.
-
msi
Get the msi property: The application control policy enforcement/protection mode of the machine group.- Returns:
- the msi value.
-
withMsi
Set the msi property: The application control policy enforcement/protection mode of the machine group.- Parameters:
msi
- the msi value to set.- Returns:
- the ProtectionMode object itself.
-
script
Get the script property: The application control policy enforcement/protection mode of the machine group.- Returns:
- the script value.
-
withScript
Set the script property: The application control policy enforcement/protection mode of the machine group.- Parameters:
script
- the script value to set.- Returns:
- the ProtectionMode object itself.
-
executable
Get the executable property: The application control policy enforcement/protection mode of the machine group.- Returns:
- the executable value.
-
withExecutable
Set the executable property: The application control policy enforcement/protection mode of the machine group.- Parameters:
executable
- the executable value to set.- Returns:
- the ProtectionMode object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-