RuleDescription Class
- java.
lang. Object - com.
microsoft. azure. servicebus. rules. RuleDescription
- com.
public class RuleDescription
Representation of a rule defined on service bus topics.
Constructor Summary
Constructor | Description |
---|---|
RuleDescription() |
Creates a rule description with no name, TrueFilter as filter and no action. |
RuleDescription(Filter filter) |
Creates a rule description with no name, given filter as filter and no action. |
RuleDescription(String name) |
Creates a rule description with the given name, TrueFilter as filter and no action. |
RuleDescription(String name, Filter filter) |
Creates a rule description with the given name, given filter as filter and no action. |
Method Summary
Modifier and Type | Method and Description |
---|---|
boolean | equals(Object other) |
Rule |
getAction()
Gets the action this rule performs on messages matched by this rule's filter. |
Filter |
getFilter()
Gets the filter of this rule. |
String |
getName()
Gets the name of this rule. |
int | hashCode() |
void |
setAction(RuleAction action)
Sets the action this rule performs on messages matched by this rule's filter. |
void |
setFilter(Filter filter)
Sets the filter of this rule. |
void |
setName(String name)
Sets the name of this rule. |
Methods inherited from java.lang.Object
Constructor Details
RuleDescription
public RuleDescription()
Creates a rule description with no name, TrueFilter as filter and no action.
RuleDescription
public RuleDescription(Filter filter)
Creates a rule description with no name, given filter as filter and no action.
Parameters:
RuleDescription
public RuleDescription(String name)
Creates a rule description with the given name, TrueFilter as filter and no action.
Parameters:
RuleDescription
public RuleDescription(String name, Filter filter)
Creates a rule description with the given name, given filter as filter and no action.
Parameters:
Method Details
equals
public boolean equals(Object other)
Overrides:
RuleDescription.equals(Object other)Parameters:
getAction
public RuleAction getAction()
Gets the action this rule performs on messages matched by this rule's filter.
Returns:
getFilter
public Filter getFilter()
Gets the filter of this rule.
Returns:
getName
public String getName()
Gets the name of this rule.
Returns:
hashCode
public int hashCode()
Overrides:
RuleDescription.hashCode()setAction
public void setAction(RuleAction action)
Sets the action this rule performs on messages matched by this rule's filter.
Parameters:
setFilter
public void setFilter(Filter filter)
Sets the filter of this rule.
Parameters:
setName
public void setName(String name)
Sets the name of this rule.
Parameters:
Applies to
Azure SDK for Java