Class Rule.Builder

  • Enclosing class:
    Rule

    public static class Rule.Builder
    extends java.lang.Object
    Builder.
    • Constructor Detail

      • Builder

        public Builder()
        Instantiates a new builder.
      • Builder

        public Builder​(java.util.List<java.lang.String> actions,
                       RuleGrantee grantee)
        Instantiates a new builder with required properties.
        Parameters:
        actions - the actions
        grantee - the grantee
    • Method Detail

      • build

        public Rule build()
        Builds a Rule.
        Returns:
        the new Rule instance
      • addActions

        public Rule.Builder addActions​(java.lang.String actions)
        Adds an actions to actions.
        Parameters:
        actions - the new actions
        Returns:
        the Rule builder
      • actions

        public Rule.Builder actions​(java.util.List<java.lang.String> actions)
        Set the actions. Existing actions will be replaced.
        Parameters:
        actions - the actions
        Returns:
        the Rule builder
      • effect

        public Rule.Builder effect​(java.lang.String effect)
        Set the effect.
        Parameters:
        effect - the effect
        Returns:
        the Rule builder
      • grantee

        public Rule.Builder grantee​(RuleGrantee grantee)
        Set the grantee.
        Parameters:
        grantee - the grantee
        Returns:
        the Rule builder