Class Win32LobAppPowerShellScriptRule

  • All Implemented Interfaces:
    com.github.davidmoten.odata.client.ODataType

    public class Win32LobAppPowerShellScriptRule
    extends Win32LobAppRule
    implements com.github.davidmoten.odata.client.ODataType
    “A complex type to store the PowerShell script rule data for a Win32 LOB app.”
    • Constructor Detail

      • Win32LobAppPowerShellScriptRule

        protected Win32LobAppPowerShellScriptRule()
    • Method Detail

      • odataTypeName

        public String odataTypeName()
        Specified by:
        odataTypeName in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        odataTypeName in class Win32LobAppRule
      • getComparisonValue

        public Optional<String> getComparisonValue()
        “The script output comparison value. Do not specify a value if the rule is used for detection.”
        Returns:
        property comparisonValue
      • withComparisonValue

        public Win32LobAppPowerShellScriptRule withComparisonValue​(String comparisonValue)
        Returns an immutable copy of this with just the comparisonValue field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. patch() is called (if available)on the returned object only the changed fields are submitted.

        “The script output comparison value. Do not specify a value if the rule is used for detection.”

        Parameters:
        comparisonValue - new value of comparisonValue field (as defined in service metadata)
        Returns:
        immutable copy of this with just the comparisonValue field changed
      • getDisplayName

        public Optional<String> getDisplayName()
        “The display name for the rule. Do not specify this value if the rule is used for detection.”
        Returns:
        property displayName
      • withDisplayName

        public Win32LobAppPowerShellScriptRule withDisplayName​(String displayName)
        Returns an immutable copy of this with just the displayName field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. patch() is called (if available)on the returned object only the changed fields are submitted.

        “The display name for the rule. Do not specify this value if the rule is used for detection.”

        Parameters:
        displayName - new value of displayName field (as defined in service metadata)
        Returns:
        immutable copy of this with just the displayName field changed
      • getEnforceSignatureCheck

        public Optional<Boolean> getEnforceSignatureCheck()
        “A value indicating whether a signature check is enforced.”
        Returns:
        property enforceSignatureCheck
      • withEnforceSignatureCheck

        public Win32LobAppPowerShellScriptRule withEnforceSignatureCheck​(Boolean enforceSignatureCheck)
        Returns an immutable copy of this with just the enforceSignatureCheck field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “A value indicating whether a signature check is enforced.”

        Parameters:
        enforceSignatureCheck - new value of enforceSignatureCheck field (as defined in service metadata)
        Returns:
        immutable copy of this with just the enforceSignatureCheck field changed
      • withOperationType

        public Win32LobAppPowerShellScriptRule withOperationType​(Win32LobAppPowerShellScriptRuleOperationType operationType)
        Returns an immutable copy of this with just the operationType field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. patch() is called (if available)on the returned object only the changed fields are submitted.

        “The script output comparison operation type. Use NotConfigured (the default value) if the rule is used for detection.”

        Parameters:
        operationType - new value of operationType field (as defined in service metadata)
        Returns:
        immutable copy of this with just the operationType field changed
      • getOperator

        public Optional<Win32LobAppRuleOperator> getOperator()
        “The script output operator. Use NotConfigured (the default value) if the rule is used for detection.”
        Returns:
        property operator
      • withOperator

        public Win32LobAppPowerShellScriptRule withOperator​(Win32LobAppRuleOperator operator)
        Returns an immutable copy of this with just the operator field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “The script output operator. Use NotConfigured (the default value) if the rule is used for detection.”

        Parameters:
        operator - new value of operator field (as defined in service metadata)
        Returns:
        immutable copy of this with just the operator field changed
      • getRunAs32Bit

        public Optional<Boolean> getRunAs32Bit()
        “A value indicating whether the script should run as 32-bit.”
        Returns:
        property runAs32Bit
      • withRunAs32Bit

        public Win32LobAppPowerShellScriptRule withRunAs32Bit​(Boolean runAs32Bit)
        Returns an immutable copy of this with just the runAs32Bit field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “A value indicating whether the script should run as 32-bit.”

        Parameters:
        runAs32Bit - new value of runAs32Bit field (as defined in service metadata)
        Returns:
        immutable copy of this with just the runAs32Bit field changed
      • getRunAsAccount

        public Optional<RunAsAccountType> getRunAsAccount()
        “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.”
        Returns:
        property runAsAccount
      • withRunAsAccount

        public Win32LobAppPowerShellScriptRule withRunAsAccount​(RunAsAccountType runAsAccount)
        Returns an immutable copy of this with just the runAsAccount field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. patch() is called (if available)on the returned object only the changed fields are submitted.

        “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 - new value of runAsAccount field (as defined in service metadata)
        Returns:
        immutable copy of this with just the runAsAccount field changed
      • getScriptContent

        public Optional<String> getScriptContent()
        “The base64-encoded script content.”
        Returns:
        property scriptContent
      • withScriptContent

        public Win32LobAppPowerShellScriptRule withScriptContent​(String scriptContent)
        Returns an immutable copy of this with just the scriptContent field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. patch() is called (if available)on the returned object only the changed fields are submitted.

        “The base64-encoded script content.”

        Parameters:
        scriptContent - new value of scriptContent field (as defined in service metadata)
        Returns:
        immutable copy of this with just the scriptContent field changed
      • getUnmappedFields

        public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
        Specified by:
        getUnmappedFields in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        getUnmappedFields in class Win32LobAppRule
      • postInject

        public void postInject​(boolean addKeysToContextPath)
        Specified by:
        postInject in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        postInject in class Win32LobAppRule
      • builderWin32LobAppPowerShellScriptRule

        public static Win32LobAppPowerShellScriptRule.Builder builderWin32LobAppPowerShellScriptRule()
        Returns a builder which is used to create a new instance of this class (given that this class is immutable).
        Returns:
        a new Builder for this class