Class ProfileLogScrubbing

java.lang.Object
com.azure.resourcemanager.cdn.models.ProfileLogScrubbing
All Implemented Interfaces:
com.azure.json.JsonSerializable<ProfileLogScrubbing>

public final class ProfileLogScrubbing extends Object implements com.azure.json.JsonSerializable<ProfileLogScrubbing>
Defines rules that scrub sensitive fields in the Azure Front Door profile logs.
  • Constructor Details

    • ProfileLogScrubbing

      public ProfileLogScrubbing()
      Creates an instance of ProfileLogScrubbing class.
  • Method Details

    • state

      public ProfileScrubbingState state()
      Get the state property: State of the log scrubbing config. Default value is Enabled.
      Returns:
      the state value.
    • withState

      public ProfileLogScrubbing withState(ProfileScrubbingState state)
      Set the state property: State of the log scrubbing config. Default value is Enabled.
      Parameters:
      state - the state value to set.
      Returns:
      the ProfileLogScrubbing object itself.
    • scrubbingRules

      public List<ProfileScrubbingRules> scrubbingRules()
      Get the scrubbingRules property: List of log scrubbing rules applied to the Azure Front Door profile logs.
      Returns:
      the scrubbingRules value.
    • withScrubbingRules

      public ProfileLogScrubbing withScrubbingRules(List<ProfileScrubbingRules> scrubbingRules)
      Set the scrubbingRules property: List of log scrubbing rules applied to the Azure Front Door profile logs.
      Parameters:
      scrubbingRules - the scrubbingRules value to set.
      Returns:
      the ProfileLogScrubbing 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<ProfileLogScrubbing>
      Throws:
      IOException
    • fromJson

      public static ProfileLogScrubbing fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ProfileLogScrubbing from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ProfileLogScrubbing 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 ProfileLogScrubbing.