Class ManagedRuleSet
- java.lang.Object
-
- com.azure.resourcemanager.cdn.models.ManagedRuleSet
-
public final class ManagedRuleSet extends Object
Defines a managed rule set.
-
-
Constructor Summary
Constructors Constructor Description ManagedRuleSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegeranomalyScore()Get the anomalyScore property: Verizon only : If the rule set supports anomaly detection mode, this describes the threshold for blocking requests.List<ManagedRuleGroupOverride>ruleGroupOverrides()Get the ruleGroupOverrides property: Defines the rule overrides to apply to the rule set.StringruleSetType()Get the ruleSetType property: Defines the rule set type to use.StringruleSetVersion()Get the ruleSetVersion property: Defines the version of the rule set to use.voidvalidate()Validates the instance.ManagedRuleSetwithAnomalyScore(Integer anomalyScore)Set the anomalyScore property: Verizon only : If the rule set supports anomaly detection mode, this describes the threshold for blocking requests.ManagedRuleSetwithRuleGroupOverrides(List<ManagedRuleGroupOverride> ruleGroupOverrides)Set the ruleGroupOverrides property: Defines the rule overrides to apply to the rule set.ManagedRuleSetwithRuleSetType(String ruleSetType)Set the ruleSetType property: Defines the rule set type to use.ManagedRuleSetwithRuleSetVersion(String ruleSetVersion)Set the ruleSetVersion property: Defines the version of the rule set to use.
-
-
-
Method Detail
-
ruleSetType
public String ruleSetType()
Get the ruleSetType property: Defines the rule set type to use.- Returns:
- the ruleSetType value.
-
withRuleSetType
public ManagedRuleSet withRuleSetType(String ruleSetType)
Set the ruleSetType property: Defines the rule set type to use.- Parameters:
ruleSetType- the ruleSetType value to set.- Returns:
- the ManagedRuleSet object itself.
-
ruleSetVersion
public String ruleSetVersion()
Get the ruleSetVersion property: Defines the version of the rule set to use.- Returns:
- the ruleSetVersion value.
-
withRuleSetVersion
public ManagedRuleSet withRuleSetVersion(String ruleSetVersion)
Set the ruleSetVersion property: Defines the version of the rule set to use.- Parameters:
ruleSetVersion- the ruleSetVersion value to set.- Returns:
- the ManagedRuleSet object itself.
-
anomalyScore
public Integer anomalyScore()
Get the anomalyScore property: Verizon only : If the rule set supports anomaly detection mode, this describes the threshold for blocking requests.- Returns:
- the anomalyScore value.
-
withAnomalyScore
public ManagedRuleSet withAnomalyScore(Integer anomalyScore)
Set the anomalyScore property: Verizon only : If the rule set supports anomaly detection mode, this describes the threshold for blocking requests.- Parameters:
anomalyScore- the anomalyScore value to set.- Returns:
- the ManagedRuleSet object itself.
-
ruleGroupOverrides
public List<ManagedRuleGroupOverride> ruleGroupOverrides()
Get the ruleGroupOverrides property: Defines the rule overrides to apply to the rule set.- Returns:
- the ruleGroupOverrides value.
-
withRuleGroupOverrides
public ManagedRuleSet withRuleGroupOverrides(List<ManagedRuleGroupOverride> ruleGroupOverrides)
Set the ruleGroupOverrides property: Defines the rule overrides to apply to the rule set.- Parameters:
ruleGroupOverrides- the ruleGroupOverrides value to set.- Returns:
- the ManagedRuleSet object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-