Class ProtectionMode

java.lang.Object
com.azure.resourcemanager.security.models.ProtectionMode

public final class ProtectionMode extends Object
The protection mode of the collection/file types. Exe/Msi/Script are used for Windows, Executable is used for Linux.
  • Constructor Details

    • ProtectionMode

      public ProtectionMode()
  • Method Details

    • exe

      public EnforcementMode exe()
      Get the exe property: The application control policy enforcement/protection mode of the machine group.
      Returns:
      the exe value.
    • withExe

      public ProtectionMode withExe(EnforcementMode exe)
      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

      public EnforcementMode msi()
      Get the msi property: The application control policy enforcement/protection mode of the machine group.
      Returns:
      the msi value.
    • withMsi

      public ProtectionMode withMsi(EnforcementMode msi)
      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

      public EnforcementMode script()
      Get the script property: The application control policy enforcement/protection mode of the machine group.
      Returns:
      the script value.
    • withScript

      public ProtectionMode withScript(EnforcementMode script)
      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

      public EnforcementMode executable()
      Get the executable property: The application control policy enforcement/protection mode of the machine group.
      Returns:
      the executable value.
    • withExecutable

      public ProtectionMode withExecutable(EnforcementMode executable)
      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.