CreateRuleOptions Class

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

public final class CreateRuleOptions

A set of options for creating a rule.

Constructor Summary

Constructor Description
CreateRuleOptions()

Initializes a new instance with the TrueRuleFilter.

CreateRuleOptions(RuleFilter filter)

Initializes a new instance with the given rule name and filter.

CreateRuleOptions(RuleProperties ruleProperties)

Initializes a new instance with the given rule properties.

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.

CreateRuleOptions setAction(RuleAction action)

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

CreateRuleOptions setFilter(RuleFilter filter)

Sets the filter expression used to match messages.

Methods inherited from java.lang.Object

Constructor Details

CreateRuleOptions

public CreateRuleOptions()

Initializes a new instance with the TrueRuleFilter.

CreateRuleOptions

public CreateRuleOptions(RuleFilter filter)

Initializes a new instance with the given rule name and filter.

Parameters:

filter - Filter expression used to match messages.

CreateRuleOptions

public CreateRuleOptions(RuleProperties ruleProperties)

Initializes a new instance with the given rule properties.

Parameters:

ruleProperties - Rule properties to create new rule from.

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.

setAction

public CreateRuleOptions 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 CreateRuleOptions object.

setFilter

public CreateRuleOptions setFilter(RuleFilter filter)

Sets the filter expression used to match messages.

Parameters:

filter - The filter expression used to match messages.

Returns:

The updated CreateRuleOptions object.

Applies to