ProtectionMode Class
- java.
lang. Object - com.
azure. resourcemanager. security. models. ProtectionMode
- com.
public final class ProtectionMode
The protection mode of the collection/file types. Exe/Msi/Script are used for Windows, Executable is used for Linux.
Constructor Summary
Constructor | Description |
---|---|
ProtectionMode() |
Creates an instance of Protection |
Method Summary
Modifier and Type | Method and Description |
---|---|
Enforcement |
exe()
Get the exe property: The application control policy enforcement/protection mode of the machine group. |
Enforcement |
executable()
Get the executable property: The application control policy enforcement/protection mode of the machine group. |
Enforcement |
msi()
Get the msi property: The application control policy enforcement/protection mode of the machine group. |
Enforcement |
script()
Get the script property: The application control policy enforcement/protection mode of the machine group. |
void |
validate()
Validates the instance. |
Protection |
withExe(EnforcementMode exe)
Set the exe property: The application control policy enforcement/protection mode of the machine group. |
Protection |
withExecutable(EnforcementMode executable)
Set the executable property: The application control policy enforcement/protection mode of the machine group. |
Protection |
withMsi(EnforcementMode msi)
Set the msi property: The application control policy enforcement/protection mode of the machine group. |
Protection |
withScript(EnforcementMode script)
Set the script property: The application control policy enforcement/protection mode of the machine group. |
Methods inherited from java.lang.Object
Constructor Details
ProtectionMode
public ProtectionMode()
Creates an instance of ProtectionMode class.
Method Details
exe
public EnforcementMode exe()
Get the exe property: The application control policy enforcement/protection mode of the machine group.
Returns:
executable
public EnforcementMode executable()
Get the executable property: The application control policy enforcement/protection mode of the machine group.
Returns:
msi
public EnforcementMode msi()
Get the msi property: The application control policy enforcement/protection mode of the machine group.
Returns:
script
public EnforcementMode script()
Get the script property: The application control policy enforcement/protection mode of the machine group.
Returns:
validate
public void validate()
Validates the instance.
withExe
public ProtectionMode withExe(EnforcementMode exe)
Set the exe property: The application control policy enforcement/protection mode of the machine group.
Parameters:
Returns:
withExecutable
public ProtectionMode withExecutable(EnforcementMode executable)
Set the executable property: The application control policy enforcement/protection mode of the machine group.
Parameters:
Returns:
withMsi
public ProtectionMode withMsi(EnforcementMode msi)
Set the msi property: The application control policy enforcement/protection mode of the machine group.
Parameters:
Returns:
withScript
public ProtectionMode withScript(EnforcementMode script)
Set the script property: The application control policy enforcement/protection mode of the machine group.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for