public final class CreateRuleOptions extends Object
Constructor and Description |
---|
CreateRuleOptions()
Initializes a new instance with the
TrueRuleFilter . |
CreateRuleOptions(RuleFilter filter)
Initializes a new instance with the given rule
name and filter . |
CreateRuleOptions(RuleProperties ruleProperties)
Initializes a new instance with the given rule properties.
|
Modifier and Type | Method and Description |
---|---|
RuleAction |
getAction()
Gets the action to perform if the message satisfies the filtering expression.
|
RuleFilter |
getFilter()
Gets the filter expression used to match messages.
|
CreateRuleOptions |
setAction(RuleAction action)
Sets the action to perform if the message satisfies the filtering expression.
|
CreateRuleOptions |
setFilter(RuleFilter filter)
Sets the filter expression used to match messages.
|
public CreateRuleOptions()
TrueRuleFilter
.public CreateRuleOptions(RuleFilter filter)
name
and filter
.filter
- Filter expression used to match messages.NullPointerException
- if filter
is null.public CreateRuleOptions(RuleProperties ruleProperties)
ruleProperties
- Rule properties to create new rule from.NullPointerException
- if ruleProperties
is null.public RuleAction getAction()
public CreateRuleOptions setAction(RuleAction action)
action
- The action to perform if the message satisfies the filtering expression.CreateRuleOptions
object.public RuleFilter getFilter()
public CreateRuleOptions setFilter(RuleFilter filter)
filter
- The filter expression used to match messages.CreateRuleOptions
object.Copyright © 2021 Microsoft Corporation. All rights reserved.