WebApplicationFirewallScrubbingRules Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. WebApplicationFirewallScrubbingRules
- com.
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 Web |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Web |
fromJson(JsonReader jsonReader)
Reads an instance of Web |
Scrubbing |
matchVariable()
Get the match |
String |
selector()
Get the selector property: When match |
Scrubbing |
selectorMatchOperator()
Get the selector |
Scrubbing |
state()
Get the state property: Defines the state of log scrubbing rule. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Web |
withMatchVariable(ScrubbingRuleEntryMatchVariable matchVariable)
Set the match |
Web |
withSelector(String selector)
Set the selector property: When match |
Web |
withSelectorMatchOperator(ScrubbingRuleEntryMatchOperator selectorMatchOperator)
Set the selector |
Web |
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:
Returns:
Throws:
matchVariable
public ScrubbingRuleEntryMatchVariable matchVariable()
Get the matchVariable property: The variable to be scrubbed from the logs.
Returns:
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:
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:
state
public ScrubbingRuleEntryState state()
Get the state property: Defines the state of log scrubbing rule. Default value is Enabled.
Returns:
toJson
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:
Returns:
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:
Returns:
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:
Returns:
withState
public WebApplicationFirewallScrubbingRules withState(ScrubbingRuleEntryState state)
Set the state property: Defines the state of log scrubbing rule. Default value is Enabled.
Parameters:
Returns:
Applies to
Azure SDK for Java