Partager via


PolicySettingsLogScrubbing Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.PolicySettingsLogScrubbing

Implements

public final class PolicySettingsLogScrubbing
implements JsonSerializable<PolicySettingsLogScrubbing>

To scrub sensitive log fields.

Constructor Summary

Constructor Description
PolicySettingsLogScrubbing()

Creates an instance of PolicySettingsLogScrubbing class.

Method Summary

Modifier and Type Method and Description
static PolicySettingsLogScrubbing fromJson(JsonReader jsonReader)

Reads an instance of PolicySettingsLogScrubbing from the JsonReader.

List<WebApplicationFirewallScrubbingRules> scrubbingRules()

Get the scrubbingRules property: The rules that are applied to the logs for scrubbing.

WebApplicationFirewallScrubbingState state()

Get the state property: State of the log scrubbing config.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

PolicySettingsLogScrubbing withScrubbingRules(List<WebApplicationFirewallScrubbingRules> scrubbingRules)

Set the scrubbingRules property: The rules that are applied to the logs for scrubbing.

PolicySettingsLogScrubbing withState(WebApplicationFirewallScrubbingState state)

Set the state property: State of the log scrubbing config.

Methods inherited from java.lang.Object

Constructor Details

PolicySettingsLogScrubbing

public PolicySettingsLogScrubbing()

Creates an instance of PolicySettingsLogScrubbing class.

Method Details

fromJson

public static PolicySettingsLogScrubbing fromJson(JsonReader jsonReader)

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.

scrubbingRules

public List scrubbingRules()

Get the scrubbingRules property: The rules that are applied to the logs for scrubbing.

Returns:

the scrubbingRules value.

state

public WebApplicationFirewallScrubbingState state()

Get the state property: State of the log scrubbing config. Default value is Enabled.

Returns:

the state value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withScrubbingRules

public PolicySettingsLogScrubbing withScrubbingRules(List 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.

withState

public PolicySettingsLogScrubbing withState(WebApplicationFirewallScrubbingState state)

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.

Applies to