Package com.oracle.bmc.waf.model
Class ProtectionCapability.Builder
- java.lang.Object
-
- com.oracle.bmc.waf.model.ProtectionCapability.Builder
-
- Enclosing class:
- ProtectionCapability
public static class ProtectionCapability.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProtectionCapability.Builder
actionName(String actionName)
Override action to take if capability was triggered, defined in Protection Rule for this capability.ProtectionCapability
build()
ProtectionCapability.Builder
collaborativeActionThreshold(Integer collaborativeActionThreshold)
The minimum sum of weights of associated collaborative protection capabilities that have triggered which must be reached in order for this capability to trigger.ProtectionCapability.Builder
collaborativeWeights(List<CollaborativeCapabilityWeightOverride> collaborativeWeights)
Explicit weight values to use for associated collaborative protection capabilities.ProtectionCapability.Builder
copy(ProtectionCapability model)
ProtectionCapability.Builder
exclusions(ProtectionCapabilityExclusions exclusions)
ProtectionCapability.Builder
key(String key)
Unique key of referenced protection capability.ProtectionCapability.Builder
version(Integer version)
Version of referenced protection capability.
-
-
-
Method Detail
-
key
public ProtectionCapability.Builder key(String key)
Unique key of referenced protection capability.- Parameters:
key
- the value to set- Returns:
- this builder
-
version
public ProtectionCapability.Builder version(Integer version)
Version of referenced protection capability.- Parameters:
version
- the value to set- Returns:
- this builder
-
exclusions
public ProtectionCapability.Builder exclusions(ProtectionCapabilityExclusions exclusions)
-
actionName
public ProtectionCapability.Builder actionName(String actionName)
Override action to take if capability was triggered, defined in Protection Rule for this capability.Only actions of type CHECK are allowed.
- Parameters:
actionName
- the value to set- Returns:
- this builder
-
collaborativeActionThreshold
public ProtectionCapability.Builder collaborativeActionThreshold(Integer collaborativeActionThreshold)
The minimum sum of weights of associated collaborative protection capabilities that have triggered which must be reached in order for this capability to trigger.This field is ignored for non-collaborative capabilities.
- Parameters:
collaborativeActionThreshold
- the value to set- Returns:
- this builder
-
collaborativeWeights
public ProtectionCapability.Builder collaborativeWeights(List<CollaborativeCapabilityWeightOverride> collaborativeWeights)
Explicit weight values to use for associated collaborative protection capabilities.- Parameters:
collaborativeWeights
- the value to set- Returns:
- this builder
-
build
public ProtectionCapability build()
-
copy
public ProtectionCapability.Builder copy(ProtectionCapability model)
-
-