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 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

      public List<WebApplicationFirewallScrubbingRules> 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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.