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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ProfileLogScrubbingfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ProfileLogScrubbing from the JsonReader.Get the scrubbingRules property: List of log scrubbing rules applied to the Azure Front Door profile logs.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<ProfileScrubbingRules> scrubbingRules) Set the scrubbingRules property: List of log scrubbing rules applied to the Azure Front Door profile logs.withState(ProfileScrubbingState state) 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
-
ProfileLogScrubbing
public ProfileLogScrubbing()Creates an instance of ProfileLogScrubbing 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 ProfileLogScrubbing object itself.
-
scrubbingRules
Get the scrubbingRules property: List of log scrubbing rules applied to the Azure Front Door profile logs.- Returns:
- the scrubbingRules value.
-
withScrubbingRules
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
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ProfileLogScrubbing>- Throws:
IOException
-
fromJson
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.
-