Package com.oracle.bmc.waas.model
Class Recommendation.Builder
- java.lang.Object
-
- com.oracle.bmc.waas.model.Recommendation.Builder
-
- Enclosing class:
- Recommendation
public static class Recommendation.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Recommendation
build()
Recommendation.Builder
copy(Recommendation model)
Recommendation.Builder
description(String description)
The description of the recommended protection rule.Recommendation.Builder
key(String key)
The unique key for the recommended protection rule.Recommendation.Builder
labels(List<String> labels)
The list of labels for the recommended protection rule.Recommendation.Builder
modSecurityRuleIds(List<String> modSecurityRuleIds)
The list of the ModSecurity rule IDs associated with the protection rule.Recommendation.Builder
name(String name)
The name of the recommended protection rule.Recommendation.Builder
recommendedAction(String recommendedAction)
The recommended action to apply to the protection rule.
-
-
-
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
-
build
public Recommendation build()
-
copy
public Recommendation.Builder copy(Recommendation model)
-
-