ProfileScrubbingRules Class
- java.
lang. Object - com.
azure. resourcemanager. cdn. models. ProfileScrubbingRules
- com.
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 Profile |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Profile |
fromJson(JsonReader jsonReader)
Reads an instance of Profile |
Scrubbing |
matchVariable()
Get the match |
String |
selector()
Get the selector property: When match |
Scrubbing |
selectorMatchOperator()
Get the selector |
Scrubbing |
state()
Get the state property: Defines the state of a log scrubbing rule. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Profile |
withMatchVariable(ScrubbingRuleEntryMatchVariable matchVariable)
Set the match |
Profile |
withSelector(String selector)
Set the selector property: When match |
Profile |
withSelectorMatchOperator(ScrubbingRuleEntryMatchOperator selectorMatchOperator)
Set the selector |
Profile |
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:
Returns:
Throws:
matchVariable
public ScrubbingRuleEntryMatchVariable matchVariable()
Get the matchVariable property: The variable to be scrubbed from the logs.
Returns:
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:
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:
state
public ScrubbingRuleEntryState state()
Get the state property: Defines the state of a log scrubbing rule. Default value is enabled.
Returns:
toJson
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:
Returns:
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:
Returns:
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:
Returns:
withState
public ProfileScrubbingRules withState(ScrubbingRuleEntryState state)
Set the state property: Defines the state of a log scrubbing rule. Default value is enabled.
Parameters:
Returns: