Class RuleCreate.Builder

  • Enclosing class:
    RuleCreate

    public static class RuleCreate.Builder
    extends Object
    Builder.
    • Constructor Detail

      • Builder

        public Builder()
        Instantiates a new builder.
      • Builder

        public Builder​(String action,
                       String expression)
        Instantiates a new builder with required properties.
        Parameters:
        action - the action
        expression - the expression
    • Method Detail

      • build

        public RuleCreate build()
        Builds a RuleCreate.
        Returns:
        the new RuleCreate instance
      • action

        public RuleCreate.Builder action​(String action)
        Set the action.
        Parameters:
        action - the action
        Returns:
        the RuleCreate builder
      • actionParameters

        public RuleCreate.Builder actionParameters​(ActionParameters actionParameters)
        Set the actionParameters.
        Parameters:
        actionParameters - the actionParameters
        Returns:
        the RuleCreate builder
      • ratelimit

        public RuleCreate.Builder ratelimit​(Ratelimit ratelimit)
        Set the ratelimit.
        Parameters:
        ratelimit - the ratelimit
        Returns:
        the RuleCreate builder
      • description

        public RuleCreate.Builder description​(String description)
        Set the description.
        Parameters:
        description - the description
        Returns:
        the RuleCreate builder
      • enabled

        public RuleCreate.Builder enabled​(Boolean enabled)
        Set the enabled.
        Parameters:
        enabled - the enabled
        Returns:
        the RuleCreate builder
      • expression

        public RuleCreate.Builder expression​(String expression)
        Set the expression.
        Parameters:
        expression - the expression
        Returns:
        the RuleCreate builder
      • logging

        public RuleCreate.Builder logging​(Logging logging)
        Set the logging.
        Parameters:
        logging - the logging
        Returns:
        the RuleCreate builder
      • ref

        public RuleCreate.Builder ref​(String ref)
        Set the ref.
        Parameters:
        ref - the ref
        Returns:
        the RuleCreate builder
      • position

        public RuleCreate.Builder position​(Position position)
        Set the position.
        Parameters:
        position - the position
        Returns:
        the RuleCreate builder