Class RuleProperties
java.lang.Object
com.azure.messaging.servicebus.administration.models.RuleProperties
-
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
RulePropertiesobject itself. - Throws:
NullPointerException- iffilteris null.
-
getName
-
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
RulePropertiesobject itself.
-