Class MatchCondition
java.lang.Object
com.azure.resourcemanager.frontdoor.models.MatchCondition
Define a match condition.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the matchValue property: List of possible match values.Get the matchVariable property: Request variable to compare with.Get the negateCondition property: Describes if the result of this condition should be negated.operator()
Get the operator property: Comparison type to use for matching with the variable value.selector()
Get the selector property: Match against a specific key from the QueryString, PostArgs, RequestHeader or Cookies variables.Get the transforms property: List of transforms.void
validate()
Validates the instance.withMatchValue
(List<String> matchValue) Set the matchValue property: List of possible match values.withMatchVariable
(MatchVariable matchVariable) Set the matchVariable property: Request variable to compare with.withNegateCondition
(Boolean negateCondition) Set the negateCondition property: Describes if the result of this condition should be negated.withOperator
(Operator operator) Set the operator property: Comparison type to use for matching with the variable value.withSelector
(String selector) Set the selector property: Match against a specific key from the QueryString, PostArgs, RequestHeader or Cookies variables.withTransforms
(List<TransformType> transforms) Set the transforms property: List of transforms.
-
Constructor Details
-
MatchCondition
public MatchCondition()Creates an instance of MatchCondition class.
-
-
Method Details
-
matchVariable
Get the matchVariable property: Request variable to compare with.- Returns:
- the matchVariable value.
-
withMatchVariable
Set the matchVariable property: Request variable to compare with.- Parameters:
matchVariable
- the matchVariable value to set.- Returns:
- the MatchCondition object itself.
-
selector
Get the selector property: Match against a specific key from the QueryString, PostArgs, RequestHeader or Cookies variables. Default is null.- Returns:
- the selector value.
-
withSelector
Set the selector property: Match against a specific key from the QueryString, PostArgs, RequestHeader or Cookies variables. Default is null.- Parameters:
selector
- the selector value to set.- Returns:
- the MatchCondition object itself.
-
operator
Get the operator property: Comparison type to use for matching with the variable value.- Returns:
- the operator value.
-
withOperator
Set the operator property: Comparison type to use for matching with the variable value.- Parameters:
operator
- the operator value to set.- Returns:
- the MatchCondition object itself.
-
negateCondition
Get the negateCondition property: Describes if the result of this condition should be negated.- Returns:
- the negateCondition value.
-
withNegateCondition
Set the negateCondition property: Describes if the result of this condition should be negated.- Parameters:
negateCondition
- the negateCondition value to set.- Returns:
- the MatchCondition object itself.
-
matchValue
Get the matchValue property: List of possible match values.- Returns:
- the matchValue value.
-
withMatchValue
Set the matchValue property: List of possible match values.- Parameters:
matchValue
- the matchValue value to set.- Returns:
- the MatchCondition 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 MatchCondition object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-