Class CreateRuleOptions
java.lang.Object
com.azure.messaging.servicebus.administration.models.CreateRuleOptions
A set of options for creating a rule.
-
Constructor Summary
ConstructorDescriptionInitializes a new instance with theTrueRuleFilter
.CreateRuleOptions
(RuleFilter filter) Initializes a new instance with the given rulename
andfilter
.CreateRuleOptions
(RuleProperties ruleProperties) Initializes a new instance with the given rule properties. -
Method Summary
Modifier and TypeMethodDescriptionGets the action to perform if the message satisfies the filtering expression.Gets the filter expression used to match messages.setAction
(RuleAction action) Sets the action to perform if the message satisfies the filtering expression.setFilter
(RuleFilter filter) Sets the filter expression used to match messages.
-
Constructor Details
-
CreateRuleOptions
public CreateRuleOptions()Initializes a new instance with theTrueRuleFilter
. -
CreateRuleOptions
Initializes a new instance with the given rulename
andfilter
.- Parameters:
filter
- Filter expression used to match messages.- Throws:
NullPointerException
- iffilter
is null.
-
CreateRuleOptions
Initializes a new instance with the given rule properties.- Parameters:
ruleProperties
- Rule properties to create new rule from.- Throws:
NullPointerException
- ifruleProperties
is null.
-
-
Method Details
-
getAction
Gets the action to perform if the message satisfies the filtering expression.- Returns:
- The action to perform if the message satisfies the filtering expression.
-
setAction
Sets the action to perform if the message satisfies the filtering expression.- Parameters:
action
- The action to perform if the message satisfies the filtering expression.- Returns:
- The updated
CreateRuleOptions
object.
-
getFilter
Gets the filter expression used to match messages.- Returns:
- The filter expression used to match messages.
-
setFilter
Sets the filter expression used to match messages.- Parameters:
filter
- The filter expression used to match messages.- Returns:
- The updated
CreateRuleOptions
object.
-