Class WebApplicationFirewallScrubbingRules
java.lang.Object
com.azure.resourcemanager.network.models.WebApplicationFirewallScrubbingRules
- All Implemented Interfaces:
com.azure.json.JsonSerializable<WebApplicationFirewallScrubbingRules>
public final class WebApplicationFirewallScrubbingRules
extends Object
implements com.azure.json.JsonSerializable<WebApplicationFirewallScrubbingRules>
Allow certain variables to be scrubbed on WAF logs.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of WebApplicationFirewallScrubbingRules class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of WebApplicationFirewallScrubbingRules from the JsonReader.Get the matchVariable property: The variable to be scrubbed from the logs.selector()Get the selector property: When matchVariable is a collection, operator used to specify which elements in the collection this rule applies to.Get the selectorMatchOperator property: When matchVariable is a collection, operate on the selector to specify which elements in the collection this rule applies to.state()Get the state property: Defines the state of log scrubbing rule.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withMatchVariable(ScrubbingRuleEntryMatchVariable matchVariable) Set the matchVariable property: The variable to be scrubbed from the logs.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.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.withState(ScrubbingRuleEntryState state) Set the state property: Defines the state of log scrubbing rule.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
WebApplicationFirewallScrubbingRules
public WebApplicationFirewallScrubbingRules()Creates an instance of WebApplicationFirewallScrubbingRules class.
-
-
Method Details
-
matchVariable
Get the matchVariable property: The variable to be scrubbed from the logs.- Returns:
- the matchVariable value.
-
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.
-
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.
-
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.
-
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.
-
withSelector
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.
-
state
Get the state property: Defines the state of log scrubbing rule. Default value is Enabled.- Returns:
- the state value.
-
withState
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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<WebApplicationFirewallScrubbingRules>- Throws:
IOException
-
fromJson
public static WebApplicationFirewallScrubbingRules fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the WebApplicationFirewallScrubbingRules.
-