Class ProtectionCapabilitySummary.Builder
- java.lang.Object
-
- com.oracle.bmc.waf.model.ProtectionCapabilitySummary.Builder
-
- Enclosing class:
- ProtectionCapabilitySummary
public static class ProtectionCapabilitySummary.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProtectionCapabilitySummary
build()
ProtectionCapabilitySummary.Builder
collaborativeActionThreshold(Integer collaborativeActionThreshold)
The default collaborative action threshold for OCI-managed collaborative protection capability.ProtectionCapabilitySummary.Builder
collaborativeWeights(List<CollaborativeCapabilityWeight> collaborativeWeights)
The weights of contributing capabilities.ProtectionCapabilitySummary.Builder
copy(ProtectionCapabilitySummary model)
ProtectionCapabilitySummary.Builder
description(String description)
The description of protection capability.ProtectionCapabilitySummary.Builder
displayName(String displayName)
The display name of protection capability.ProtectionCapabilitySummary.Builder
groupTags(List<String> groupTags)
The list of unique names protection capability group tags that are associated with this capability.ProtectionCapabilitySummary.Builder
isLatestVersion(Boolean isLatestVersion)
The field that shows if this is the latest version of protection capability.ProtectionCapabilitySummary.Builder
key(String key)
Unique key of protection capability.ProtectionCapabilitySummary.Builder
type(ProtectionCapabilitySummary.Type type)
The type of protection capability.ProtectionCapabilitySummary.Builder
version(Integer version)
The version of protection capability.
-
-
-
Method Detail
-
key
public ProtectionCapabilitySummary.Builder key(String key)
Unique key of protection capability.- Parameters:
key
- the value to set- Returns:
- this builder
-
displayName
public ProtectionCapabilitySummary.Builder displayName(String displayName)
The display name of protection capability.- Parameters:
displayName
- the value to set- Returns:
- this builder
-
description
public ProtectionCapabilitySummary.Builder description(String description)
The description of protection capability.- Parameters:
description
- the value to set- Returns:
- this builder
-
version
public ProtectionCapabilitySummary.Builder version(Integer version)
The version of protection capability.- Parameters:
version
- the value to set- Returns:
- this builder
-
isLatestVersion
public ProtectionCapabilitySummary.Builder isLatestVersion(Boolean isLatestVersion)
The field that shows if this is the latest version of protection capability.- Parameters:
isLatestVersion
- the value to set- Returns:
- this builder
-
groupTags
public ProtectionCapabilitySummary.Builder groupTags(List<String> groupTags)
The list of unique names protection capability group tags that are associated with this capability.Example: [“PCI”, “Recommended”]
- Parameters:
groupTags
- the value to set- Returns:
- this builder
-
type
public ProtectionCapabilitySummary.Builder type(ProtectionCapabilitySummary.Type type)
The type of protection capability.**REQUEST_PROTECTION_CAPABILITY** can only be used in requestProtection module of WebAppFirewallPolicy.
**RESPONSE_PROTECTION_CAPABILITY** can only be used in responseProtection module of WebAppFirewallPolicy.
- Parameters:
type
- the value to set- Returns:
- this builder
-
collaborativeActionThreshold
public ProtectionCapabilitySummary.Builder collaborativeActionThreshold(Integer collaborativeActionThreshold)
The default collaborative action threshold for OCI-managed collaborative protection capability.Collaborative protection capabilities are made of several simple, non-collaborative protection capabilities (referred to as contributing capabilities later on) which have weights assigned to them. These weights can be found in the collaborativeWeights array. For incoming/outgoing HTTP messages, all contributing capabilities are executed and the sum of all triggered contributing capabilities weights is calculated. Only if this sum is greater than or equal to collaborativeActionThreshold is the incoming/outgoing HTTP message marked as malicious.
This field is ignored for non-collaborative capabilities.
- Parameters:
collaborativeActionThreshold
- the value to set- Returns:
- this builder
-
collaborativeWeights
public ProtectionCapabilitySummary.Builder collaborativeWeights(List<CollaborativeCapabilityWeight> collaborativeWeights)
The weights of contributing capabilities.Defines how much each contributing capability contributes towards the action threshold of a collaborative protection capability.
This field is ignored for non-collaborative capabilities.
- Parameters:
collaborativeWeights
- the value to set- Returns:
- this builder
-
build
public ProtectionCapabilitySummary build()
-
copy
public ProtectionCapabilitySummary.Builder copy(ProtectionCapabilitySummary model)
-
-