Package com.microsoft.graph.models
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.
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Win32LobAppRule
backingStore -
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a newWin32LobAppPowerShellScriptRuleand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptioncreateFromDiscriminatorValue(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the comparisonValue property value.Gets the displayName property value.Gets the enforceSignatureCheck property value.The deserialization information for the current modelGets the operationType property value.Gets the operator property value.Gets the runAs32Bit property value.Gets the runAsAccount property value.Gets the scriptContent property value.voidserialize(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoidsetComparisonValue(String value) Sets the comparisonValue property value.voidsetDisplayName(String value) Sets the displayName property value.voidsetEnforceSignatureCheck(Boolean value) Sets the enforceSignatureCheck property value.voidSets the operationType property value.voidSets the operator property value.voidsetRunAs32Bit(Boolean value) Sets the runAs32Bit property value.voidsetRunAsAccount(RunAsAccountType value) Sets the runAsAccount property value.voidsetScriptContent(String value) Sets the scriptContent property value.Methods inherited from class com.microsoft.graph.models.Win32LobAppRule
getAdditionalData, getBackingStore, getOdataType, getRuleType, setAdditionalData, setBackingStore, setOdataType, setRuleType
-
Constructor Details
-
Win32LobAppPowerShellScriptRule
public Win32LobAppPowerShellScriptRule()Instantiates a newWin32LobAppPowerShellScriptRuleand 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
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
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
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:
getFieldDeserializersin interfacecom.microsoft.kiota.serialization.Parsable- Overrides:
getFieldDeserializersin classWin32LobAppRule- Returns:
- a
Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
getOperationType
Gets the operationType property value. Contains all supported Powershell Script output detection type.- Returns:
- a
Win32LobAppPowerShellScriptRuleOperationType
-
getOperator
Gets the operator property value. Contains properties for detection operator.- Returns:
- a
Win32LobAppRuleOperator
-
getRunAs32Bit
Gets the runAs32Bit property value. A value indicating whether the script should run as 32-bit.- Returns:
- a
Boolean
-
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
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:
serializein interfacecom.microsoft.kiota.serialization.Parsable- Overrides:
serializein classWin32LobAppRule- Parameters:
writer- Serialization writer to use to serialize this model
-
setComparisonValue
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
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
Sets the enforceSignatureCheck property value. A value indicating whether a signature check is enforced.- Parameters:
value- Value to set for the enforceSignatureCheck property.
-
setOperationType
Sets the operationType property value. Contains all supported Powershell Script output detection type.- Parameters:
value- Value to set for the operationType property.
-
setOperator
Sets the operator property value. Contains properties for detection operator.- Parameters:
value- Value to set for the operator property.
-
setRunAs32Bit
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
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
Sets the scriptContent property value. The base64-encoded script content.- Parameters:
value- Value to set for the scriptContent property.
-