Sdílet prostřednictvím


RuleProperties Class

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

public class RuleProperties

Properties on a rule.

Method Summary

Modifier and Type Method and Description
RuleAction getAction()

Gets the action to perform if the message satisfies the filtering expression.

RuleFilter getFilter()

Gets the filter expression used to match messages.

String getName()

Gets the name of the rule.

RuleProperties setAction(RuleAction action)

Sets the action to perform if the message satisfies the filtering expression.

RuleProperties setFilter(RuleFilter filter)

Sets the filter expression used to match messages.

Methods inherited from java.lang.Object

Method Details

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.

getFilter

public RuleFilter getFilter()

Gets the filter expression used to match messages.

Returns:

The filter expression used to match messages.

getName

public String getName()

Gets the name of the rule.

Returns:

The name of the rule.

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.

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.

Applies to