Class ManagedRuleExclusion
java.lang.Object
com.azure.resourcemanager.frontdoor.models.ManagedRuleExclusion
Exclude variables from managed rule evaluation.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the matchVariable property: The variable type to be excluded.selector()
Get the selector property: Selector value for which elements in the collection this exclusion applies to.Get the selectorMatchOperator property: Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to.void
validate()
Validates the instance.withMatchVariable
(ManagedRuleExclusionMatchVariable matchVariable) Set the matchVariable property: The variable type to be excluded.withSelector
(String selector) Set the selector property: Selector value for which elements in the collection this exclusion applies to.withSelectorMatchOperator
(ManagedRuleExclusionSelectorMatchOperator selectorMatchOperator) Set the selectorMatchOperator property: Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to.
-
Constructor Details
-
ManagedRuleExclusion
public ManagedRuleExclusion()Creates an instance of ManagedRuleExclusion class.
-
-
Method Details
-
matchVariable
Get the matchVariable property: The variable type to be excluded.- Returns:
- the matchVariable value.
-
withMatchVariable
Set the matchVariable property: The variable type to be excluded.- Parameters:
matchVariable
- the matchVariable value to set.- Returns:
- the ManagedRuleExclusion object itself.
-
selectorMatchOperator
Get the selectorMatchOperator property: Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to.- Returns:
- the selectorMatchOperator value.
-
withSelectorMatchOperator
public ManagedRuleExclusion withSelectorMatchOperator(ManagedRuleExclusionSelectorMatchOperator selectorMatchOperator) Set the selectorMatchOperator property: Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to.- Parameters:
selectorMatchOperator
- the selectorMatchOperator value to set.- Returns:
- the ManagedRuleExclusion object itself.
-
selector
Get the selector property: Selector value for which elements in the collection this exclusion applies to.- Returns:
- the selector value.
-
withSelector
Set the selector property: Selector value for which elements in the collection this exclusion applies to.- Parameters:
selector
- the selector value to set.- Returns:
- the ManagedRuleExclusion object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-