public static class ProtectionCapability.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and 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.
|
public ProtectionCapability.Builder key(String key)
Unique key of referenced protection capability.
key
- the value to setpublic ProtectionCapability.Builder version(Integer version)
Version of referenced protection capability.
version
- the value to setpublic ProtectionCapability.Builder exclusions(ProtectionCapabilityExclusions exclusions)
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.
actionName
- the value to setpublic 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.
collaborativeActionThreshold
- the value to setpublic ProtectionCapability.Builder collaborativeWeights(List<CollaborativeCapabilityWeightOverride> collaborativeWeights)
Explicit weight values to use for associated collaborative protection capabilities.
collaborativeWeights
- the value to setpublic ProtectionCapability build()
public ProtectionCapability.Builder copy(ProtectionCapability model)
Copyright © 2016–2024. All rights reserved.