MatchCondition Class
- java.
lang. Object - com.
azure. resourcemanager. cdn. models. MatchCondition
- com.
public final class MatchCondition
Define match conditions.
Constructor Summary
Constructor | Description |
---|---|
MatchCondition() |
Creates an instance of Match |
Method Summary
Modifier and Type | Method and Description |
---|---|
List<String> |
matchValue()
Get the match |
Waf |
matchVariable()
Get the match |
Boolean |
negateCondition()
Get the negate |
Operator |
operator()
Get the operator property: Describes operator to be matched. |
String |
selector()
Get the selector property: Selector can used to match a specific key for Query |
List<Transform |
transforms()
Get the transforms property: List of transforms. |
void |
validate()
Validates the instance. |
Match |
withMatchValue(List<String> matchValue)
Set the match |
Match |
withMatchVariable(WafMatchVariable matchVariable)
Set the match |
Match |
withNegateCondition(Boolean negateCondition)
Set the negate |
Match |
withOperator(Operator operator)
Set the operator property: Describes operator to be matched. |
Match |
withSelector(String selector)
Set the selector property: Selector can used to match a specific key for Query |
Match |
withTransforms(List<TransformType> transforms)
Set the transforms property: List of transforms. |
Methods inherited from java.lang.Object
Constructor Details
MatchCondition
public MatchCondition()
Creates an instance of MatchCondition class.
Method Details
matchValue
public List
Get the matchValue property: List of possible match values.
Returns:
matchVariable
public WafMatchVariable matchVariable()
Get the matchVariable property: Match variable to compare against.
Returns:
negateCondition
public Boolean negateCondition()
Get the negateCondition property: Describes if the result of this condition should be negated.
Returns:
operator
public Operator operator()
Get the operator property: Describes operator to be matched.
Returns:
selector
public String selector()
Get the selector property: Selector can used to match a specific key for QueryString, Cookies, RequestHeader or PostArgs.
Returns:
transforms
public List
Get the transforms property: List of transforms.
Returns:
validate
public void validate()
Validates the instance.
withMatchValue
public MatchCondition withMatchValue(List
Set the matchValue property: List of possible match values.
Parameters:
Returns:
withMatchVariable
public MatchCondition withMatchVariable(WafMatchVariable matchVariable)
Set the matchVariable property: Match variable to compare against.
Parameters:
Returns:
withNegateCondition
public MatchCondition withNegateCondition(Boolean negateCondition)
Set the negateCondition property: Describes if the result of this condition should be negated.
Parameters:
Returns:
withOperator
public MatchCondition withOperator(Operator operator)
Set the operator property: Describes operator to be matched.
Parameters:
Returns:
withSelector
public MatchCondition withSelector(String selector)
Set the selector property: Selector can used to match a specific key for QueryString, Cookies, RequestHeader or PostArgs.
Parameters:
Returns:
withTransforms
public MatchCondition withTransforms(List
Set the transforms property: List of transforms.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for