Class PolicySettingsLogScrubbing
java.lang.Object
com.azure.resourcemanager.network.models.PolicySettingsLogScrubbing
- All Implemented Interfaces:
com.azure.json.JsonSerializable<PolicySettingsLogScrubbing>
public final class PolicySettingsLogScrubbing
extends Object
implements com.azure.json.JsonSerializable<PolicySettingsLogScrubbing>
To scrub sensitive log fields.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of PolicySettingsLogScrubbing class. -
Method Summary
Modifier and TypeMethodDescriptionstatic PolicySettingsLogScrubbingfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of PolicySettingsLogScrubbing from the JsonReader.Get the scrubbingRules property: The rules that are applied to the logs for scrubbing.state()Get the state property: State of the log scrubbing config.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withScrubbingRules(List<WebApplicationFirewallScrubbingRules> scrubbingRules) Set the scrubbingRules property: The rules that are applied to the logs for scrubbing.Set the state property: State of the log scrubbing config.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
-
PolicySettingsLogScrubbing
public PolicySettingsLogScrubbing()Creates an instance of PolicySettingsLogScrubbing class.
-
-
Method Details
-
state
Get the state property: State of the log scrubbing config. Default value is Enabled.- Returns:
- the state value.
-
withState
Set the state property: State of the log scrubbing config. Default value is Enabled.- Parameters:
state- the state value to set.- Returns:
- the PolicySettingsLogScrubbing object itself.
-
scrubbingRules
Get the scrubbingRules property: The rules that are applied to the logs for scrubbing.- Returns:
- the scrubbingRules value.
-
withScrubbingRules
public PolicySettingsLogScrubbing withScrubbingRules(List<WebApplicationFirewallScrubbingRules> scrubbingRules) Set the scrubbingRules property: The rules that are applied to the logs for scrubbing.- Parameters:
scrubbingRules- the scrubbingRules value to set.- Returns:
- the PolicySettingsLogScrubbing 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<PolicySettingsLogScrubbing>- Throws:
IOException
-
fromJson
public static PolicySettingsLogScrubbing fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of PolicySettingsLogScrubbing from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of PolicySettingsLogScrubbing if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the PolicySettingsLogScrubbing.
-