Class ProfileScrubbingRules
java.lang.Object
com.azure.resourcemanager.cdn.models.ProfileScrubbingRules
Defines the contents of the log scrubbing rules.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the matchVariable property: The variable to be scrubbed from the logs.selector()Get the selector property: When matchVariable is a collection, operator used to specify which elements in the collection this rule applies to.Get the selectorMatchOperator property: When matchVariable is a collection, operate on the selector to specify which elements in the collection this rule applies to.state()Get the state property: Defines the state of a log scrubbing rule.voidvalidate()Validates the instance.withMatchVariable(ScrubbingRuleEntryMatchVariable matchVariable) Set the matchVariable property: The variable to be scrubbed from the logs.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.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.withState(ScrubbingRuleEntryState state) Set the state property: Defines the state of a log scrubbing rule.
-
Constructor Details
-
ProfileScrubbingRules
public ProfileScrubbingRules()Creates an instance of ProfileScrubbingRules class.
-
-
Method Details
-
matchVariable
Get the matchVariable property: The variable to be scrubbed from the logs.- Returns:
- the matchVariable value.
-
withMatchVariable
Set the matchVariable property: The variable to be scrubbed from the logs.- Parameters:
matchVariable- the matchVariable value to set.- Returns:
- the ProfileScrubbingRules object itself.
-
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.
-
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.
-
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.
-
withSelector
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.
-
state
Get the state property: Defines the state of a log scrubbing rule. Default value is enabled.- Returns:
- the state value.
-
withState
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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-