Partager via


WebApplicationFirewallScrubbingRules Class

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

Implements

public final class WebApplicationFirewallScrubbingRules
implements JsonSerializable<WebApplicationFirewallScrubbingRules>

Allow certain variables to be scrubbed on WAF logs.

Constructor Summary

Constructor Description
WebApplicationFirewallScrubbingRules()

Creates an instance of WebApplicationFirewallScrubbingRules class.

Method Summary

Modifier and Type Method and Description
static WebApplicationFirewallScrubbingRules fromJson(JsonReader jsonReader)

Reads an instance of WebApplicationFirewallScrubbingRules from the JsonReader.

ScrubbingRuleEntryMatchVariable matchVariable()

Get the matchVariable property: The variable to be scrubbed from the logs.

String selector()

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

ScrubbingRuleEntryMatchOperator selectorMatchOperator()

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

ScrubbingRuleEntryState state()

Get the state property: Defines the state of log scrubbing rule.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

WebApplicationFirewallScrubbingRules withMatchVariable(ScrubbingRuleEntryMatchVariable matchVariable)

Set the matchVariable property: The variable to be scrubbed from the logs.

WebApplicationFirewallScrubbingRules withSelector(String selector)

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

WebApplicationFirewallScrubbingRules withSelectorMatchOperator(ScrubbingRuleEntryMatchOperator selectorMatchOperator)

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

WebApplicationFirewallScrubbingRules withState(ScrubbingRuleEntryState state)

Set the state property: Defines the state of log scrubbing rule.

Methods inherited from java.lang.Object

Constructor Details

WebApplicationFirewallScrubbingRules

public WebApplicationFirewallScrubbingRules()

Creates an instance of WebApplicationFirewallScrubbingRules class.

Method Details

fromJson

public static WebApplicationFirewallScrubbingRules fromJson(JsonReader jsonReader)

Reads an instance of WebApplicationFirewallScrubbingRules from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of WebApplicationFirewallScrubbingRules 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 ScrubbingRuleEntryMatchVariable matchVariable()

Get the matchVariable property: The variable to be scrubbed from the logs.

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 rule applies to.

Returns:

the selector value.

selectorMatchOperator

public ScrubbingRuleEntryMatchOperator selectorMatchOperator()

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

Returns:

the selectorMatchOperator value.

state

public ScrubbingRuleEntryState state()

Get the state property: Defines the state of log scrubbing rule. Default value is Enabled.

Returns:

the state value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withMatchVariable

public WebApplicationFirewallScrubbingRules withMatchVariable(ScrubbingRuleEntryMatchVariable matchVariable)

Set the matchVariable property: The variable to be scrubbed from the logs.

Parameters:

matchVariable - the matchVariable value to set.

Returns:

the WebApplicationFirewallScrubbingRules object itself.

withSelector

public WebApplicationFirewallScrubbingRules withSelector(String selector)

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

Parameters:

selector - the selector value to set.

Returns:

the WebApplicationFirewallScrubbingRules object itself.

withSelectorMatchOperator

public WebApplicationFirewallScrubbingRules withSelectorMatchOperator(ScrubbingRuleEntryMatchOperator selectorMatchOperator)

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

Parameters:

selectorMatchOperator - the selectorMatchOperator value to set.

Returns:

the WebApplicationFirewallScrubbingRules object itself.

withState

public WebApplicationFirewallScrubbingRules withState(ScrubbingRuleEntryState state)

Set the state property: Defines the state of log scrubbing rule. Default value is Enabled.

Parameters:

state - the state value to set.

Returns:

the WebApplicationFirewallScrubbingRules object itself.

Applies to