ManagedRulesDefinition Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.ManagedRulesDefinition

Implements

public final class ManagedRulesDefinition
implements JsonSerializable<ManagedRulesDefinition>

Allow to exclude some variable satisfy the condition for the WAF check.

Constructor Summary

Constructor Description
ManagedRulesDefinition()

Creates an instance of ManagedRulesDefinition class.

Method Summary

Modifier and Type Method and Description
List<ExceptionEntry> exceptions()

Get the exceptions property: The exceptions that are applied on the policy.

List<OwaspCrsExclusionEntry> exclusions()

Get the exclusions property: The Exclusions that are applied on the policy.

static ManagedRulesDefinition fromJson(JsonReader jsonReader)

Reads an instance of ManagedRulesDefinition from the JsonReader.

List<ManagedRuleSet> managedRuleSets()

Get the managedRuleSets property: The managed rule sets that are associated with the policy.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ManagedRulesDefinition withExceptions(List<ExceptionEntry> exceptions)

Set the exceptions property: The exceptions that are applied on the policy.

ManagedRulesDefinition withExclusions(List<OwaspCrsExclusionEntry> exclusions)

Set the exclusions property: The Exclusions that are applied on the policy.

ManagedRulesDefinition withManagedRuleSets(List<ManagedRuleSet> managedRuleSets)

Set the managedRuleSets property: The managed rule sets that are associated with the policy.

Methods inherited from java.lang.Object

Constructor Details

ManagedRulesDefinition

public ManagedRulesDefinition()

Creates an instance of ManagedRulesDefinition class.

Method Details

exceptions

public List exceptions()

Get the exceptions property: The exceptions that are applied on the policy.

Returns:

the exceptions value.

exclusions

public List exclusions()

Get the exclusions property: The Exclusions that are applied on the policy.

Returns:

the exclusions value.

fromJson

public static ManagedRulesDefinition fromJson(JsonReader jsonReader)

Reads an instance of ManagedRulesDefinition from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ManagedRulesDefinition 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.

managedRuleSets

public List managedRuleSets()

Get the managedRuleSets property: The managed rule sets that are associated with the policy.

Returns:

the managedRuleSets value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withExceptions

public ManagedRulesDefinition withExceptions(List exceptions)

Set the exceptions property: The exceptions that are applied on the policy.

Parameters:

exceptions - the exceptions value to set.

Returns:

the ManagedRulesDefinition object itself.

withExclusions

public ManagedRulesDefinition withExclusions(List exclusions)

Set the exclusions property: The Exclusions that are applied on the policy.

Parameters:

exclusions - the exclusions value to set.

Returns:

the ManagedRulesDefinition object itself.

withManagedRuleSets

public ManagedRulesDefinition withManagedRuleSets(List managedRuleSets)

Set the managedRuleSets property: The managed rule sets that are associated with the policy.

Parameters:

managedRuleSets - the managedRuleSets value to set.

Returns:

the ManagedRulesDefinition object itself.

Applies to