Class MatchCondition
java.lang.Object
com.microsoft.azure.management.cdn.MatchCondition
Define match conditions.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet list of possible match values.Get match variable to compare against.Get describes if the result of this condition should be negated.operator()
Get describes operator to be matched.selector()
Get selector can used to match a specific key for QueryString, Cookies, RequestHeader or PostArgs.Get list of transforms.withMatchValue
(List<String> matchValue) Set list of possible match values.withMatchVariable
(MatchVariable matchVariable) Set match variable to compare against.withNegateCondition
(Boolean negateCondition) Set describes if the result of this condition should be negated.withOperator
(Operator operator) Set describes operator to be matched.withSelector
(String selector) Set selector can used to match a specific key for QueryString, Cookies, RequestHeader or PostArgs.withTransforms
(List<TransformType> transforms) Set list of transforms.
-
Constructor Details
-
MatchCondition
public MatchCondition()
-
-
Method Details
-
matchVariable
Get match variable to compare against. Possible values include: 'RemoteAddr', 'SocketAddr', 'RequestMethod', 'RequestHeader', 'RequestUri', 'QueryString', 'RequestBody', 'Cookies', 'PostArgs'.- Returns:
- the matchVariable value
-
withMatchVariable
Set match variable to compare against. Possible values include: 'RemoteAddr', 'SocketAddr', 'RequestMethod', 'RequestHeader', 'RequestUri', 'QueryString', 'RequestBody', 'Cookies', 'PostArgs'.- Parameters:
matchVariable
- the matchVariable value to set- Returns:
- the MatchCondition object itself.
-
selector
Get selector can used to match a specific key for QueryString, Cookies, RequestHeader or PostArgs.- Returns:
- the selector value
-
withSelector
Set 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
Get describes operator to be matched. Possible values include: 'Any', 'IPMatch', 'GeoMatch', 'Equal', 'Contains', 'LessThan', 'GreaterThan', 'LessThanOrEqual', 'GreaterThanOrEqual', 'BeginsWith', 'EndsWith', 'RegEx'.- Returns:
- the operator value
-
withOperator
Set describes operator to be matched. Possible values include: 'Any', 'IPMatch', 'GeoMatch', 'Equal', 'Contains', 'LessThan', 'GreaterThan', 'LessThanOrEqual', 'GreaterThanOrEqual', 'BeginsWith', 'EndsWith', 'RegEx'.- Parameters:
operator
- the operator value to set- Returns:
- the MatchCondition object itself.
-
negateCondition
Get describes if the result of this condition should be negated.- Returns:
- the negateCondition value
-
withNegateCondition
Set describes if the result of this condition should be negated.- Parameters:
negateCondition
- the negateCondition value to set- Returns:
- the MatchCondition object itself.
-
matchValue
Get list of possible match values.- Returns:
- the matchValue value
-
withMatchValue
Set list of possible match values.- Parameters:
matchValue
- the matchValue value to set- Returns:
- the MatchCondition object itself.
-
transforms
Get list of transforms.- Returns:
- the transforms value
-
withTransforms
Set list of transforms.- Parameters:
transforms
- the transforms value to set- Returns:
- the MatchCondition object itself.
-