java.lang.Object
com.azure.messaging.servicebus.administration.models.RuleProperties

public class RuleProperties extends Object
Properties on a rule.
See Also:
  • Method Details

    • getFilter

      public RuleFilter getFilter()
      Gets the filter expression used to match messages.
      Returns:
      The filter expression used to match messages.
    • setFilter

      public RuleProperties setFilter(RuleFilter filter)
      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 - if filter is null.
    • getName

      public String getName()
      Gets the name of the rule.
      Returns:
      The name of the rule.
    • getAction

      public RuleAction 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

      public RuleProperties setAction(RuleAction action)
      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.