Class Win32LobAppPowerShellScriptRule.Builder

    • Method Detail

      • comparisonValue

        public Win32LobAppPowerShellScriptRule.Builder comparisonValue​(String comparisonValue)
        “The script output comparison value. Do not specify a value if the rule is used for detection.”
        Parameters:
        comparisonValue - value of comparisonValue property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • displayName

        public Win32LobAppPowerShellScriptRule.Builder displayName​(String displayName)
        “The display name for the rule. Do not specify this value if the rule is used for detection.”
        Parameters:
        displayName - value of displayName property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • enforceSignatureCheck

        public Win32LobAppPowerShellScriptRule.Builder enforceSignatureCheck​(Boolean enforceSignatureCheck)
        “A value indicating whether a signature check is enforced.”
        Parameters:
        enforceSignatureCheck - value of enforceSignatureCheck property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • operator

        public Win32LobAppPowerShellScriptRule.Builder operator​(Win32LobAppRuleOperator operator)
        “The script output operator. Use NotConfigured (the default value) if the rule is used for detection.”
        Parameters:
        operator - value of operator property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • runAs32Bit

        public Win32LobAppPowerShellScriptRule.Builder runAs32Bit​(Boolean runAs32Bit)
        “A value indicating whether the script should run as 32-bit.”
        Parameters:
        runAs32Bit - value of runAs32Bit property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • runAsAccount

        public Win32LobAppPowerShellScriptRule.Builder runAsAccount​(RunAsAccountType runAsAccount)
        “The execution context of the script. Do not specify this value if the rule is used for detection. Script detection rules will run in the same context as the associated app install context.”
        Parameters:
        runAsAccount - value of runAsAccount property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • scriptContent

        public Win32LobAppPowerShellScriptRule.Builder scriptContent​(String scriptContent)
        “The base64-encoded script content.”
        Parameters:
        scriptContent - value of scriptContent property (as defined in service metadata)
        Returns:
        this (for method chaining)