CreateRuleOptions Class
- java.
lang. Object - com.
azure. messaging. servicebus. administration. models. CreateRuleOptions
- com.
public final class CreateRuleOptions
A set of options for creating a rule.
Constructor Summary
Constructor | Description |
---|---|
CreateRuleOptions() |
Initializes a new instance with the TrueRuleFilter. |
CreateRuleOptions(RuleFilter filter) |
Initializes a new instance with the given rule |
CreateRuleOptions(RuleProperties ruleProperties) |
Initializes a new instance with the given rule properties. |
Method Summary
Modifier and Type | Method and Description |
---|---|
Rule |
getAction()
Gets the action to perform if the message satisfies the filtering expression. |
Rule |
getFilter()
Gets the filter expression used to match messages. |
Create |
setAction(RuleAction action)
Sets the action to perform if the message satisfies the filtering expression. |
Create |
setFilter(RuleFilter filter)
Sets the filter expression used to match messages. |
Methods inherited from java.lang.Object
Constructor Details
CreateRuleOptions
public CreateRuleOptions()
Initializes a new instance with the TrueRuleFilter.
CreateRuleOptions
public CreateRuleOptions(RuleFilter filter)
Initializes a new instance with the given rule name
and filter
.
Parameters:
CreateRuleOptions
public CreateRuleOptions(RuleProperties ruleProperties)
Initializes a new instance with the given rule properties.
Parameters:
Method Details
getAction
public RuleAction getAction()
Gets the action to perform if the message satisfies the filtering expression.
Returns:
getFilter
public RuleFilter getFilter()
Gets the filter expression used to match messages.
Returns:
setAction
public CreateRuleOptions setAction(RuleAction action)
Sets the action to perform if the message satisfies the filtering expression.
Parameters:
Returns:
setFilter
public CreateRuleOptions setFilter(RuleFilter filter)
Sets the filter expression used to match messages.
Parameters:
Returns: