OwaspCrsExclusionEntry Class

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

Implements

public final class OwaspCrsExclusionEntry
implements JsonSerializable<OwaspCrsExclusionEntry>

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

Constructor Summary

Constructor Description
OwaspCrsExclusionEntry()

Creates an instance of OwaspCrsExclusionEntry class.

Method Summary

Modifier and Type Method and Description
List<ExclusionManagedRuleSet> exclusionManagedRuleSets()

Get the exclusionManagedRuleSets property: The managed rule sets that are associated with the exclusion.

static OwaspCrsExclusionEntry fromJson(JsonReader jsonReader)

Reads an instance of OwaspCrsExclusionEntry from the JsonReader.

OwaspCrsExclusionEntryMatchVariable matchVariable()

Get the matchVariable property: The variable to be excluded.

String selector()

Get the selector property: When matchVariable is a collection, operator used to specify which elements in the collection this exclusion applies to.

OwaspCrsExclusionEntrySelectorMatchOperator selectorMatchOperator()

Get the selectorMatchOperator property: When matchVariable is a collection, operate on the selector to specify which elements in the collection this exclusion applies to.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

OwaspCrsExclusionEntry withExclusionManagedRuleSets(List<ExclusionManagedRuleSet> exclusionManagedRuleSets)

Set the exclusionManagedRuleSets property: The managed rule sets that are associated with the exclusion.

OwaspCrsExclusionEntry withMatchVariable(OwaspCrsExclusionEntryMatchVariable matchVariable)

Set the matchVariable property: The variable to be excluded.

OwaspCrsExclusionEntry withSelector(String selector)

Set the selector property: When matchVariable is a collection, operator used to specify which elements in the collection this exclusion applies to.

OwaspCrsExclusionEntry withSelectorMatchOperator(OwaspCrsExclusionEntrySelectorMatchOperator selectorMatchOperator)

Set the selectorMatchOperator property: When matchVariable is a collection, operate on the selector to specify which elements in the collection this exclusion applies to.

Methods inherited from java.lang.Object

Constructor Details

OwaspCrsExclusionEntry

public OwaspCrsExclusionEntry()

Creates an instance of OwaspCrsExclusionEntry class.

Method Details

exclusionManagedRuleSets

public List exclusionManagedRuleSets()

Get the exclusionManagedRuleSets property: The managed rule sets that are associated with the exclusion.

Returns:

the exclusionManagedRuleSets value.

fromJson

public static OwaspCrsExclusionEntry fromJson(JsonReader jsonReader)

Reads an instance of OwaspCrsExclusionEntry from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

matchVariable

public OwaspCrsExclusionEntryMatchVariable matchVariable()

Get the matchVariable property: The variable to be excluded.

Returns:

the matchVariable value.

selector

public String selector()

Get the selector property: When matchVariable is a collection, operator used to specify which elements in the collection this exclusion applies to.

Returns:

the selector value.

selectorMatchOperator

public OwaspCrsExclusionEntrySelectorMatchOperator selectorMatchOperator()

Get the selectorMatchOperator property: When matchVariable is a collection, operate on the selector to specify which elements in the collection this exclusion applies to.

Returns:

the selectorMatchOperator value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withExclusionManagedRuleSets

public OwaspCrsExclusionEntry withExclusionManagedRuleSets(List exclusionManagedRuleSets)

Set the exclusionManagedRuleSets property: The managed rule sets that are associated with the exclusion.

Parameters:

exclusionManagedRuleSets - the exclusionManagedRuleSets value to set.

Returns:

the OwaspCrsExclusionEntry object itself.

withMatchVariable

public OwaspCrsExclusionEntry withMatchVariable(OwaspCrsExclusionEntryMatchVariable matchVariable)

Set the matchVariable property: The variable to be excluded.

Parameters:

matchVariable - the matchVariable value to set.

Returns:

the OwaspCrsExclusionEntry object itself.

withSelector

public OwaspCrsExclusionEntry withSelector(String selector)

Set the selector property: When matchVariable is a collection, operator used to specify which elements in the collection this exclusion applies to.

Parameters:

selector - the selector value to set.

Returns:

the OwaspCrsExclusionEntry object itself.

withSelectorMatchOperator

public OwaspCrsExclusionEntry withSelectorMatchOperator(OwaspCrsExclusionEntrySelectorMatchOperator selectorMatchOperator)

Set the selectorMatchOperator property: When matchVariable is a collection, operate on the selector to specify which elements in the collection this exclusion applies to.

Parameters:

selectorMatchOperator - the selectorMatchOperator value to set.

Returns:

the OwaspCrsExclusionEntry object itself.

Applies to