Class CreateRuleOptions
java.lang.Object
com.azure.messaging.servicebus.administration.models.CreateRuleOptions
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes a new instance with theTrueRuleFilter.CreateRuleOptions(RuleFilter filter) Initializes a new instance with the given rulenameandfilter.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 rulenameandfilter.- Parameters:
filter- Filter expression used to match messages.- Throws:
NullPointerException- iffilteris null.
-
CreateRuleOptions
Initializes a new instance with the given rule properties.- Parameters:
ruleProperties- Rule properties to create new rule from.- Throws:
NullPointerException- ifrulePropertiesis 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
CreateRuleOptionsobject.
-
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
CreateRuleOptionsobject.
-