public class Rule
extends java.lang.Object
| Constructor and Description |
|---|
Rule()
Initializes a new instance of the Rule class.
|
| Modifier and Type | Method and Description |
|---|---|
RuleActions |
getActions()
Gets the actions to be taken on a message when the conditions are fulfilled.
|
RuleConditions |
getConditions()
Gets the conditions that, when fulfilled, will trigger the rule actions for a rule.
|
java.lang.String |
getDisplayName()
Gets the display name of a rule.
|
RuleExceptions |
getExceptions()
Gets the exceptions that represent all the available rule exception conditions for the inbox rule.
|
java.lang.String |
getId()
Gets a rule identifier.
|
int |
getPriority()
Gets the order in which a rule is to be run.
|
boolean |
isEnabled()
Gets whether the rule is enabled.
|
boolean |
isInError()
Gets whether the rule is in an error condition.
|
boolean |
isNotSupported()
Checks if is not supported.
|
void |
setActions(RuleActions actions)
Sets the actions to be taken on a message when the conditions are fulfilled.
|
void |
setAsEnabled(boolean isEnabled)
Sets whether the rule is enabled.
|
void |
setAsInError(boolean isInError)
Sets whether the rule is in an error condition.
|
void |
setAsNotSupported(boolean isNotSupported)
Sets the as not supported.
|
void |
setConditions(RuleConditions conditions)
Sets the conditions that, when fulfilled, will trigger the rule actions for a rule.
|
void |
setDisplayName(java.lang.String displayName)
Sets the display name of a rule.
|
void |
setExceptions(RuleExceptions exceptions)
Sets the exceptions that represent all the available rule exception conditions for the inbox rule.
|
void |
setId(java.lang.String id)
Sets a rule identifier.
|
void |
setPriority(int priority)
Sets the order in which a rule is to be run.
|
public java.lang.String getId()
public void setId(java.lang.String id)
id - the new idpublic java.lang.String getDisplayName()
public void setDisplayName(java.lang.String displayName)
displayName - the new display namepublic int getPriority()
public void setPriority(int priority)
priority - the new prioritypublic boolean isEnabled()
public void setAsEnabled(boolean isEnabled)
isEnabled - the new as enabledpublic boolean isNotSupported()
public void setAsNotSupported(boolean isNotSupported)
isNotSupported - the new as not supportedpublic boolean isInError()
public void setAsInError(boolean isInError)
isInError - the new as in errorpublic RuleConditions getConditions()
public void setConditions(RuleConditions conditions)
conditions - the new conditionspublic RuleExceptions getExceptions()
public void setExceptions(RuleExceptions exceptions)
exceptions - the new exceptionspublic RuleActions getActions()
public void setActions(RuleActions actions)
actions - the new actions