Class RuleProperties
java.lang.Object
com.azure.messaging.servicebus.administration.models.RuleProperties
Properties on a rule.
-
Method Summary
Modifier and TypeMethodDescriptionGets the action to perform if the message satisfies the filtering expression.Gets the filter expression used to match messages.getName()
Gets the name of the rule.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.
-
Method Details
-
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
RuleProperties
object itself. - Throws:
NullPointerException
- iffilter
is null.
-
getName
Gets the name of the rule.- Returns:
- The name of the rule.
-
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
RuleProperties
object itself.
-