Class Recommendation.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • key

        public Recommendation.Builder key​(String key)
        The unique key for the recommended protection rule.
        Parameters:
        key - the value to set
        Returns:
        this builder
      • modSecurityRuleIds

        public Recommendation.Builder modSecurityRuleIds​(List<String> modSecurityRuleIds)
        The list of the ModSecurity rule IDs associated with the protection rule.

        For more information about ModSecurity’s open source WAF rules, see Mod Security’s documentation.

        Parameters:
        modSecurityRuleIds - the value to set
        Returns:
        this builder
      • name

        public Recommendation.Builder name​(String name)
        The name of the recommended protection rule.
        Parameters:
        name - the value to set
        Returns:
        this builder
      • description

        public Recommendation.Builder description​(String description)
        The description of the recommended protection rule.
        Parameters:
        description - the value to set
        Returns:
        this builder
      • labels

        public Recommendation.Builder labels​(List<String> labels)
        The list of labels for the recommended protection rule.
        Parameters:
        labels - the value to set
        Returns:
        this builder
      • recommendedAction

        public Recommendation.Builder recommendedAction​(String recommendedAction)
        The recommended action to apply to the protection rule.
        Parameters:
        recommendedAction - the value to set
        Returns:
        this builder