Class RulesEngineMatchCondition
java.lang.Object
com.azure.resourcemanager.frontdoor.models.RulesEngineMatchCondition
Define a match condition.
-
Constructor Summary
ConstructorDescriptionCreates an instance of RulesEngineMatchCondition class. -
Method Summary
Modifier and TypeMethodDescriptionGet the negateCondition property: Describes if this is negate condition or not.Get the rulesEngineMatchValue property: Match values to match against.Get the rulesEngineMatchVariable property: Match Variable.Get the rulesEngineOperator property: Describes operator to apply to the match condition.selector()
Get the selector property: Name of selector in RequestHeader or RequestBody to be matched.Get the transforms property: List of transforms.void
validate()
Validates the instance.withNegateCondition
(Boolean negateCondition) Set the negateCondition property: Describes if this is negate condition or not.withRulesEngineMatchValue
(List<String> rulesEngineMatchValue) Set the rulesEngineMatchValue property: Match values to match against.withRulesEngineMatchVariable
(RulesEngineMatchVariable rulesEngineMatchVariable) Set the rulesEngineMatchVariable property: Match Variable.withRulesEngineOperator
(RulesEngineOperator rulesEngineOperator) Set the rulesEngineOperator property: Describes operator to apply to the match condition.withSelector
(String selector) Set the selector property: Name of selector in RequestHeader or RequestBody to be matched.withTransforms
(List<Transform> transforms) Set the transforms property: List of transforms.
-
Constructor Details
-
RulesEngineMatchCondition
public RulesEngineMatchCondition()Creates an instance of RulesEngineMatchCondition class.
-
-
Method Details
-
rulesEngineMatchVariable
Get the rulesEngineMatchVariable property: Match Variable.- Returns:
- the rulesEngineMatchVariable value.
-
withRulesEngineMatchVariable
public RulesEngineMatchCondition withRulesEngineMatchVariable(RulesEngineMatchVariable rulesEngineMatchVariable) Set the rulesEngineMatchVariable property: Match Variable.- Parameters:
rulesEngineMatchVariable
- the rulesEngineMatchVariable value to set.- Returns:
- the RulesEngineMatchCondition object itself.
-
selector
Get the selector property: Name of selector in RequestHeader or RequestBody to be matched.- Returns:
- the selector value.
-
withSelector
Set the selector property: Name of selector in RequestHeader or RequestBody to be matched.- Parameters:
selector
- the selector value to set.- Returns:
- the RulesEngineMatchCondition object itself.
-
rulesEngineOperator
Get the rulesEngineOperator property: Describes operator to apply to the match condition.- Returns:
- the rulesEngineOperator value.
-
withRulesEngineOperator
Set the rulesEngineOperator property: Describes operator to apply to the match condition.- Parameters:
rulesEngineOperator
- the rulesEngineOperator value to set.- Returns:
- the RulesEngineMatchCondition object itself.
-
negateCondition
Get the negateCondition property: Describes if this is negate condition or not.- Returns:
- the negateCondition value.
-
withNegateCondition
Set the negateCondition property: Describes if this is negate condition or not.- Parameters:
negateCondition
- the negateCondition value to set.- Returns:
- the RulesEngineMatchCondition object itself.
-
rulesEngineMatchValue
Get the rulesEngineMatchValue property: Match values to match against. The operator will apply to each value in here with OR semantics. If any of them match the variable with the given operator this match condition is considered a match.- Returns:
- the rulesEngineMatchValue value.
-
withRulesEngineMatchValue
Set the rulesEngineMatchValue property: Match values to match against. The operator will apply to each value in here with OR semantics. If any of them match the variable with the given operator this match condition is considered a match.- Parameters:
rulesEngineMatchValue
- the rulesEngineMatchValue value to set.- Returns:
- the RulesEngineMatchCondition object itself.
-
transforms
Get the transforms property: List of transforms.- Returns:
- the transforms value.
-
withTransforms
Set the transforms property: List of transforms.- Parameters:
transforms
- the transforms value to set.- Returns:
- the RulesEngineMatchCondition object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-