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