Class Win32LobAppPowerShellScriptRule

java.lang.Object
com.microsoft.graph.models.Win32LobAppRule
com.microsoft.graph.models.Win32LobAppPowerShellScriptRule
All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.serialization.Parsable, com.microsoft.kiota.store.BackedModel

@Generated("com.microsoft.kiota") public class Win32LobAppPowerShellScriptRule extends Win32LobAppRule implements com.microsoft.kiota.serialization.Parsable
A complex type to store the PowerShell script rule data for a Win32 LOB app.
  • Constructor Details

    • Win32LobAppPowerShellScriptRule

      public Win32LobAppPowerShellScriptRule()
      Instantiates a new Win32LobAppPowerShellScriptRule and sets the default values.
  • Method Details

    • createFromDiscriminatorValue

      @Nonnull public static Win32LobAppPowerShellScriptRule createFromDiscriminatorValue(@Nonnull com.microsoft.kiota.serialization.ParseNode parseNode)
      Creates a new instance of the appropriate class based on discriminator value
      Parameters:
      parseNode - The parse node to use to read the discriminator value and create the object
      Returns:
      a Win32LobAppPowerShellScriptRule
    • getComparisonValue

      @Nullable public String getComparisonValue()
      Gets the comparisonValue property value. The script output comparison value. Do not specify a value if the rule is used for detection.
      Returns:
      a String
    • getDisplayName

      @Nullable public String getDisplayName()
      Gets the displayName property value. The display name for the rule. Do not specify this value if the rule is used for detection.
      Returns:
      a String
    • getEnforceSignatureCheck

      @Nullable public Boolean getEnforceSignatureCheck()
      Gets the enforceSignatureCheck property value. A value indicating whether a signature check is enforced.
      Returns:
      a Boolean
    • getFieldDeserializers

      @Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()
      The deserialization information for the current model
      Specified by:
      getFieldDeserializers in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      getFieldDeserializers in class Win32LobAppRule
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getOperationType

      @Nullable public Win32LobAppPowerShellScriptRuleOperationType getOperationType()
      Gets the operationType property value. Contains all supported Powershell Script output detection type.
      Returns:
      a Win32LobAppPowerShellScriptRuleOperationType
    • getOperator

      @Nullable public Win32LobAppRuleOperator getOperator()
      Gets the operator property value. Contains properties for detection operator.
      Returns:
      a Win32LobAppRuleOperator
    • getRunAs32Bit

      @Nullable public Boolean getRunAs32Bit()
      Gets the runAs32Bit property value. A value indicating whether the script should run as 32-bit.
      Returns:
      a Boolean
    • getRunAsAccount

      @Nullable public RunAsAccountType getRunAsAccount()
      Gets the runAsAccount property value. 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. Possible values are: system, user.
      Returns:
      a RunAsAccountType
    • getScriptContent

      @Nullable public String getScriptContent()
      Gets the scriptContent property value. The base64-encoded script content.
      Returns:
      a String
    • serialize

      public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer)
      Serializes information the current object
      Specified by:
      serialize in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      serialize in class Win32LobAppRule
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setComparisonValue

      public void setComparisonValue(@Nullable String value)
      Sets the comparisonValue property value. The script output comparison value. Do not specify a value if the rule is used for detection.
      Parameters:
      value - Value to set for the comparisonValue property.
    • setDisplayName

      public void setDisplayName(@Nullable String value)
      Sets the displayName property value. The display name for the rule. Do not specify this value if the rule is used for detection.
      Parameters:
      value - Value to set for the displayName property.
    • setEnforceSignatureCheck

      public void setEnforceSignatureCheck(@Nullable Boolean value)
      Sets the enforceSignatureCheck property value. A value indicating whether a signature check is enforced.
      Parameters:
      value - Value to set for the enforceSignatureCheck property.
    • setOperationType

      public void setOperationType(@Nullable Win32LobAppPowerShellScriptRuleOperationType value)
      Sets the operationType property value. Contains all supported Powershell Script output detection type.
      Parameters:
      value - Value to set for the operationType property.
    • setOperator

      public void setOperator(@Nullable Win32LobAppRuleOperator value)
      Sets the operator property value. Contains properties for detection operator.
      Parameters:
      value - Value to set for the operator property.
    • setRunAs32Bit

      public void setRunAs32Bit(@Nullable Boolean value)
      Sets the runAs32Bit property value. A value indicating whether the script should run as 32-bit.
      Parameters:
      value - Value to set for the runAs32Bit property.
    • setRunAsAccount

      public void setRunAsAccount(@Nullable RunAsAccountType value)
      Sets the runAsAccount property value. 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. Possible values are: system, user.
      Parameters:
      value - Value to set for the runAsAccount property.
    • setScriptContent

      public void setScriptContent(@Nullable String value)
      Sets the scriptContent property value. The base64-encoded script content.
      Parameters:
      value - Value to set for the scriptContent property.