Class Rule

java.lang.Object
com.auth0.json.mgmt.rules.Rule

public class Rule extends Object
Class that represents an Auth0 Rule object. Related to the RulesEntity entity.
  • Constructor Details

  • Method Details

    • getName

      public String getName()
      Getter for the name of the rule
      Returns:
      the name.
    • setName

      public void setName(String name)
      Setter for the name of the rule.
      Parameters:
      name - the name to set.
    • getScript

      public String getScript()
      Getter for the code to be executed when the rule runs.
      Returns:
      the script.
    • setScript

      public void setScript(String script)
      Setter for the code to be executed when the rule runs.
      Parameters:
      script - the script to set.
    • getId

      public String getId()
      Getter for the rule's identifier.
      Returns:
      the id.
    • isEnabled

      public Boolean isEnabled()
      Whether the rule is enabled or not.
      Returns:
      true if the rule is enabled, false otherwise.
    • setEnabled

      public void setEnabled(Boolean enabled)
      Sets if the rule is enabled or not.
      Parameters:
      enabled - whether the rule is enabled or not.
    • getOrder

      public Integer 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

      public void setOrder(Integer order)
      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

      public String getStage()
      Getter for the rule's execution stage.
      Returns:
      the stage.