Class Win32LobAppPowerShellScriptRule
- java.lang.Object
-
- odata.msgraph.client.complex.Win32LobAppRule
-
- odata.msgraph.client.complex.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.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWin32LobAppPowerShellScriptRule.Builder
-
Field Summary
Fields Modifier and Type Field Description protected StringcomparisonValueprotected StringdisplayNameprotected BooleanenforceSignatureCheckprotected Win32LobAppPowerShellScriptRuleOperationTypeoperationTypeprotected Win32LobAppRuleOperatoroperatorprotected BooleanrunAs32Bitprotected RunAsAccountTyperunAsAccountprotected StringscriptContent-
Fields inherited from class odata.msgraph.client.complex.Win32LobAppRule
contextPath, odataType, ruleType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedWin32LobAppPowerShellScriptRule()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Win32LobAppPowerShellScriptRule.BuilderbuilderWin32LobAppPowerShellScriptRule()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<String>getComparisonValue()“The script output comparison value.Optional<String>getDisplayName()“The display name for the rule.Optional<Boolean>getEnforceSignatureCheck()“A value indicating whether a signature check is enforced.”Optional<Win32LobAppPowerShellScriptRuleOperationType>getOperationType()“The script output comparison operation type.Optional<Win32LobAppRuleOperator>getOperator()“The script output operator.Optional<Boolean>getRunAs32Bit()“A value indicating whether the script should run as 32-bit.”Optional<RunAsAccountType>getRunAsAccount()“The execution context of the script.Optional<String>getScriptContent()“The base64-encoded script content.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()voidpostInject(boolean addKeysToContextPath)StringtoString()Win32LobAppPowerShellScriptRulewithComparisonValue(String comparisonValue)Returns an immutable copy ofthiswith just thecomparisonValuefield changed.Win32LobAppPowerShellScriptRulewithDisplayName(String displayName)Returns an immutable copy ofthiswith just thedisplayNamefield changed.Win32LobAppPowerShellScriptRulewithEnforceSignatureCheck(Boolean enforceSignatureCheck)Returns an immutable copy ofthiswith just theenforceSignatureCheckfield changed.Win32LobAppPowerShellScriptRulewithOperationType(Win32LobAppPowerShellScriptRuleOperationType operationType)Returns an immutable copy ofthiswith just theoperationTypefield changed.Win32LobAppPowerShellScriptRulewithOperator(Win32LobAppRuleOperator operator)Returns an immutable copy ofthiswith just theoperatorfield changed.Win32LobAppPowerShellScriptRulewithRunAs32Bit(Boolean runAs32Bit)Returns an immutable copy ofthiswith just therunAs32Bitfield changed.Win32LobAppPowerShellScriptRulewithRunAsAccount(RunAsAccountType runAsAccount)Returns an immutable copy ofthiswith just therunAsAccountfield changed.Win32LobAppPowerShellScriptRulewithScriptContent(String scriptContent)Returns an immutable copy ofthiswith just thescriptContentfield changed.Win32LobAppPowerShellScriptRulewithUnmappedField(String name, String value)-
Methods inherited from class odata.msgraph.client.complex.Win32LobAppRule
getRuleType, withRuleType
-
-
-
-
Field Detail
-
comparisonValue
protected String comparisonValue
-
displayName
protected String displayName
-
enforceSignatureCheck
protected Boolean enforceSignatureCheck
-
operationType
protected Win32LobAppPowerShellScriptRuleOperationType operationType
-
operator
protected Win32LobAppRuleOperator operator
-
runAs32Bit
protected Boolean runAs32Bit
-
runAsAccount
protected RunAsAccountType runAsAccount
-
scriptContent
protected String scriptContent
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classWin32LobAppRule
-
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 ofthiswith just thecomparisonValuefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. 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 ofcomparisonValuefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thecomparisonValuefield 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 ofthiswith just thedisplayNamefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. 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 ofdisplayNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedisplayNamefield 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 ofthiswith just theenforceSignatureCheckfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.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 ofenforceSignatureCheckfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theenforceSignatureCheckfield changed
-
getOperationType
public Optional<Win32LobAppPowerShellScriptRuleOperationType> getOperationType()
“The script output comparison operation type. Use NotConfigured (the default value) if the rule is used for detection.”- Returns:
- property operationType
-
withOperationType
public Win32LobAppPowerShellScriptRule withOperationType(Win32LobAppPowerShellScriptRuleOperationType operationType)
Returns an immutable copy ofthiswith just theoperationTypefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. 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 ofoperationTypefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theoperationTypefield 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 ofthiswith just theoperatorfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.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 ofoperatorfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theoperatorfield 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 ofthiswith just therunAs32Bitfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.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 ofrunAs32Bitfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just therunAs32Bitfield 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 ofthiswith just therunAsAccountfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. 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 ofrunAsAccountfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just therunAsAccountfield changed
-
getScriptContent
public Optional<String> getScriptContent()
“The base64-encoded script content.”- Returns:
- property scriptContent
-
withScriptContent
public Win32LobAppPowerShellScriptRule withScriptContent(String scriptContent)
Returns an immutable copy ofthiswith just thescriptContentfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. patch()is called (if available)on the returned object only the changed fields are submitted.“The base64-encoded script content.”
- Parameters:
scriptContent- new value ofscriptContentfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thescriptContentfield changed
-
withUnmappedField
public Win32LobAppPowerShellScriptRule withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classWin32LobAppRule
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classWin32LobAppRule
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classWin32LobAppRule
-
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
-
toString
public String toString()
- Overrides:
toStringin classWin32LobAppRule
-
-