Package com.oracle.bmc.waas.model
Class CustomProtectionRuleSetting.Builder
- java.lang.Object
-
- com.oracle.bmc.waas.model.CustomProtectionRuleSetting.Builder
-
- Enclosing class:
- CustomProtectionRuleSetting
public static class CustomProtectionRuleSetting.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CustomProtectionRuleSetting.Builder
action(CustomProtectionRuleSetting.Action action)
The action to take when the custom protection rule is triggered.CustomProtectionRuleSetting
build()
CustomProtectionRuleSetting.Builder
copy(CustomProtectionRuleSetting model)
CustomProtectionRuleSetting.Builder
exclusions(List<ProtectionRuleExclusion> exclusions)
CustomProtectionRuleSetting.Builder
id(String id)
The OCID of the custom protection rule.
-
-
-
Method Detail
-
id
public CustomProtectionRuleSetting.Builder id(String id)
The OCID of the custom protection rule.- Parameters:
id
- the value to set- Returns:
- this builder
-
action
public CustomProtectionRuleSetting.Builder action(CustomProtectionRuleSetting.Action action)
The action to take when the custom protection rule is triggered.DETECT - Logs the request when the criteria of the custom protection rule are met. BLOCK - Blocks the request when the criteria of the custom protection rule are met.
- Parameters:
action
- the value to set- Returns:
- this builder
-
exclusions
public CustomProtectionRuleSetting.Builder exclusions(List<ProtectionRuleExclusion> exclusions)
-
build
public CustomProtectionRuleSetting build()
-
copy
public CustomProtectionRuleSetting.Builder copy(CustomProtectionRuleSetting model)
-
-