Class MatchCondition
- java.lang.Object
-
- com.azure.resourcemanager.cdn.models.MatchCondition
-
public final class MatchCondition extends Object
Define match conditions.
-
-
Constructor Summary
Constructors Constructor Description MatchCondition()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>matchValue()Get the matchValue property: List of possible match values.MatchVariablematchVariable()Get the matchVariable property: Match variable to compare against.BooleannegateCondition()Get the negateCondition property: Describes if the result of this condition should be negated.Operatoroperator()Get the operator property: Describes operator to be matched.Stringselector()Get the selector property: Selector can used to match a specific key for QueryString, Cookies, RequestHeader or PostArgs.List<TransformType>transforms()Get the transforms property: List of transforms.voidvalidate()Validates the instance.MatchConditionwithMatchValue(List<String> matchValue)Set the matchValue property: List of possible match values.MatchConditionwithMatchVariable(MatchVariable matchVariable)Set the matchVariable property: Match variable to compare against.MatchConditionwithNegateCondition(Boolean negateCondition)Set the negateCondition property: Describes if the result of this condition should be negated.MatchConditionwithOperator(Operator operator)Set the operator property: Describes operator to be matched.MatchConditionwithSelector(String selector)Set the selector property: Selector can used to match a specific key for QueryString, Cookies, RequestHeader or PostArgs.MatchConditionwithTransforms(List<TransformType> transforms)Set the transforms property: List of transforms.
-
-
-
Method Detail
-
matchVariable
public MatchVariable matchVariable()
Get the matchVariable property: Match variable to compare against.- Returns:
- the matchVariable value.
-
withMatchVariable
public MatchCondition withMatchVariable(MatchVariable matchVariable)
Set the matchVariable property: Match variable to compare against.- Parameters:
matchVariable- the matchVariable value to set.- Returns:
- the MatchCondition object itself.
-
selector
public String selector()
Get the selector property: Selector can used to match a specific key for QueryString, Cookies, RequestHeader or PostArgs.- Returns:
- the selector value.
-
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:
selector- the selector value to set.- Returns:
- the MatchCondition object itself.
-
operator
public Operator operator()
Get the operator property: Describes operator to be matched.- Returns:
- the operator value.
-
withOperator
public MatchCondition withOperator(Operator operator)
Set the operator property: Describes operator to be matched.- Parameters:
operator- the operator value to set.- Returns:
- the MatchCondition object itself.
-
negateCondition
public Boolean negateCondition()
Get the negateCondition property: Describes if the result of this condition should be negated.- Returns:
- the negateCondition value.
-
withNegateCondition
public MatchCondition withNegateCondition(Boolean negateCondition)
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
public List<String> matchValue()
Get the matchValue property: List of possible match values.- Returns:
- the matchValue value.
-
withMatchValue
public MatchCondition withMatchValue(List<String> matchValue)
Set the matchValue property: List of possible match values.- Parameters:
matchValue- the matchValue value to set.- Returns:
- the MatchCondition object itself.
-
transforms
public List<TransformType> transforms()
Get the transforms property: List of transforms.- Returns:
- the transforms value.
-
withTransforms
public MatchCondition withTransforms(List<TransformType> transforms)
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.
-
-