Share via


ManagedRuleSet Class

  • java.lang.Object
    • com.azure.resourcemanager.cdn.models.ManagedRuleSet

Implements

public final class ManagedRuleSet
implements JsonSerializable<ManagedRuleSet>

Defines a managed rule set.

Constructor Summary

Constructor Description
ManagedRuleSet()

Creates an instance of ManagedRuleSet class.

Method Summary

Modifier and Type Method and Description
Integer anomalyScore()

Get the anomalyScore property: Verizon only : If the rule set supports anomaly detection mode, this describes the threshold for blocking requests.

static ManagedRuleSet fromJson(JsonReader jsonReader)

Reads an instance of ManagedRuleSet from the JsonReader.

List<ManagedRuleGroupOverride> ruleGroupOverrides()

Get the ruleGroupOverrides property: Defines the rule overrides to apply to the rule set.

String ruleSetType()

Get the ruleSetType property: Defines the rule set type to use.

String ruleSetVersion()

Get the ruleSetVersion property: Defines the version of the rule set to use.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

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.

ManagedRuleSet withRuleGroupOverrides(List<ManagedRuleGroupOverride> ruleGroupOverrides)

Set the ruleGroupOverrides property: Defines the rule overrides to apply to the rule set.

ManagedRuleSet withRuleSetType(String ruleSetType)

Set the ruleSetType property: Defines the rule set type to use.

ManagedRuleSet withRuleSetVersion(String ruleSetVersion)

Set the ruleSetVersion property: Defines the version of the rule set to use.

Methods inherited from java.lang.Object

Constructor Details

ManagedRuleSet

public ManagedRuleSet()

Creates an instance of ManagedRuleSet class.

Method Details

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.

fromJson

public static ManagedRuleSet fromJson(JsonReader jsonReader)

Reads an instance of ManagedRuleSet from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ManagedRuleSet if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

ruleGroupOverrides

public List<ManagedRuleGroupOverride> ruleGroupOverrides()

Get the ruleGroupOverrides property: Defines the rule overrides to apply to the rule set.

Returns:

the ruleGroupOverrides value.

ruleSetType

public String ruleSetType()

Get the ruleSetType property: Defines the rule set type to use.

Returns:

the ruleSetType value.

ruleSetVersion

public String ruleSetVersion()

Get the ruleSetVersion property: Defines the version of the rule set to use.

Returns:

the ruleSetVersion value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

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.

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.

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.

Applies to