共用方式為


ProfileScrubbingRules Class

  • java.lang.Object
    • com.azure.resourcemanager.cdn.models.ProfileScrubbingRules

Implements

public final class ProfileScrubbingRules
implements JsonSerializable<ProfileScrubbingRules>

Defines the contents of the log scrubbing rules.

Constructor Summary

Constructor Description
ProfileScrubbingRules()

Creates an instance of ProfileScrubbingRules class.

Method Summary

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

Reads an instance of ProfileScrubbingRules from the JsonReader.

ScrubbingRuleEntryMatchVariable matchVariable()

Get the matchVariable property: The variable to be scrubbed from the logs.

String selector()

Get the selector property: When matchVariable is a collection, operator used to specify which elements in the collection this rule applies to.

ScrubbingRuleEntryMatchOperator selectorMatchOperator()

Get the selectorMatchOperator property: When matchVariable is a collection, operate on the selector to specify which elements in the collection this rule applies to.

ScrubbingRuleEntryState state()

Get the state property: Defines the state of a log scrubbing rule.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ProfileScrubbingRules withMatchVariable(ScrubbingRuleEntryMatchVariable matchVariable)

Set the matchVariable property: The variable to be scrubbed from the logs.

ProfileScrubbingRules withSelector(String selector)

Set the selector property: When matchVariable is a collection, operator used to specify which elements in the collection this rule applies to.

ProfileScrubbingRules withSelectorMatchOperator(ScrubbingRuleEntryMatchOperator selectorMatchOperator)

Set the selectorMatchOperator property: When matchVariable is a collection, operate on the selector to specify which elements in the collection this rule applies to.

ProfileScrubbingRules withState(ScrubbingRuleEntryState state)

Set the state property: Defines the state of a log scrubbing rule.

Methods inherited from java.lang.Object

Constructor Details

ProfileScrubbingRules

public ProfileScrubbingRules()

Creates an instance of ProfileScrubbingRules class.

Method Details

fromJson

public static ProfileScrubbingRules fromJson(JsonReader jsonReader)

Reads an instance of ProfileScrubbingRules from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ProfileScrubbingRules if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

matchVariable

public ScrubbingRuleEntryMatchVariable matchVariable()

Get the matchVariable property: The variable to be scrubbed from the logs.

Returns:

the matchVariable value.

selector

public String selector()

Get the selector property: When matchVariable is a collection, operator used to specify which elements in the collection this rule applies to.

Returns:

the selector value.

selectorMatchOperator

public ScrubbingRuleEntryMatchOperator selectorMatchOperator()

Get the selectorMatchOperator property: When matchVariable is a collection, operate on the selector to specify which elements in the collection this rule applies to.

Returns:

the selectorMatchOperator value.

state

public ScrubbingRuleEntryState state()

Get the state property: Defines the state of a log scrubbing rule. Default value is enabled.

Returns:

the state value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withMatchVariable

public ProfileScrubbingRules withMatchVariable(ScrubbingRuleEntryMatchVariable matchVariable)

Set the matchVariable property: The variable to be scrubbed from the logs.

Parameters:

matchVariable - the matchVariable value to set.

Returns:

the ProfileScrubbingRules object itself.

withSelector

public ProfileScrubbingRules withSelector(String selector)

Set the selector property: When matchVariable is a collection, operator used to specify which elements in the collection this rule applies to.

Parameters:

selector - the selector value to set.

Returns:

the ProfileScrubbingRules object itself.

withSelectorMatchOperator

public ProfileScrubbingRules withSelectorMatchOperator(ScrubbingRuleEntryMatchOperator selectorMatchOperator)

Set the selectorMatchOperator property: When matchVariable is a collection, operate on the selector to specify which elements in the collection this rule applies to.

Parameters:

selectorMatchOperator - the selectorMatchOperator value to set.

Returns:

the ProfileScrubbingRules object itself.

withState

public ProfileScrubbingRules withState(ScrubbingRuleEntryState state)

Set the state property: Defines the state of a log scrubbing rule. Default value is enabled.

Parameters:

state - the state value to set.

Returns:

the ProfileScrubbingRules object itself.

Applies to