Package com.auth0.json.mgmt.rules
Class Rule
java.lang.Object
com.auth0.json.mgmt.rules.Rule
Class that represents an Auth0 Rule object. Related to the
RulesEntity entity.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()Getter for the rule's identifier.getName()Getter for the name of the rulegetOrder()Getter for the rule's order in relation to other rules.Getter for the code to be executed when the rule runs.getStage()Getter for the rule's execution stage.Whether the rule is enabled or not.voidsetEnabled(Boolean enabled) Sets if the rule is enabled or not.voidSetter for the name of the rule.voidSetter for the rule's order in relation to other rules.voidSetter for the code to be executed when the rule runs.
-
Constructor Details
-
Rule
-
-
Method Details
-
getName
Getter for the name of the rule- Returns:
- the name.
-
setName
Setter for the name of the rule.- Parameters:
name- the name to set.
-
getScript
Getter for the code to be executed when the rule runs.- Returns:
- the script.
-
setScript
Setter for the code to be executed when the rule runs.- Parameters:
script- the script to set.
-
getId
Getter for the rule's identifier.- Returns:
- the id.
-
isEnabled
Whether the rule is enabled or not.- Returns:
- true if the rule is enabled, false otherwise.
-
setEnabled
Sets if the rule is enabled or not.- Parameters:
enabled- whether the rule is enabled or not.
-
getOrder
Getter for the rule's order in relation to other rules. A rule with a lower order than another rule executes first.- Returns:
- the order.
-
setOrder
Setter for the rule's order in relation to other rules. A rule with a lower order than another rule executes first.- Parameters:
order- the order to set.
-
getStage
Getter for the rule's execution stage.- Returns:
- the stage.
-