Aracılığıyla paylaş


MatchCondition Class

  • java.lang.Object
    • com.microsoft.azure.management.cdn.MatchCondition

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.

MatchVariable 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 QueryString, Cookies, RequestHeader or PostArgs.

java.util.List<TransformType> transforms()

Get list of transforms.

MatchCondition withMatchValue(List<String> matchValue)

Set list of possible match values.

MatchCondition withMatchVariable(MatchVariable matchVariable)

Set match variable to compare against.

MatchCondition withNegateCondition(Boolean negateCondition)

Set describes if the result of this condition should be negated.

MatchCondition withOperator(Operator operator)

Set describes operator to be matched.

MatchCondition withSelector(String selector)

Set selector can used to match a specific key for QueryString, Cookies, RequestHeader or PostArgs.

MatchCondition withTransforms(List<TransformType> transforms)

Set list of transforms.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

MatchCondition

public MatchCondition()

Method Details

matchValue

public List matchValue()

Get list of possible match values.

Returns:

the matchValue value

matchVariable

public MatchVariable matchVariable()

Get match variable to compare against. Possible values include: 'RemoteAddr', 'SocketAddr', 'RequestMethod', 'RequestHeader', 'RequestUri', 'QueryString', 'RequestBody', 'Cookies', 'PostArgs'.

Returns:

the matchVariable value

negateCondition

public Boolean negateCondition()

Get describes if the result of this condition should be negated.

Returns:

the negateCondition value

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:

the operator value

selector

public String selector()

Get selector can used to match a specific key for QueryString, Cookies, RequestHeader or PostArgs.

Returns:

the selector value

transforms

public List transforms()

Get list of transforms.

Returns:

the transforms value

withMatchValue

public MatchCondition withMatchValue(List matchValue)

Set list of possible match values.

Parameters:

matchValue - the matchValue value to set

Returns:

the MatchCondition object itself.

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:

matchVariable - the matchVariable value to set

Returns:

the MatchCondition object itself.

withNegateCondition

public MatchCondition withNegateCondition(Boolean negateCondition)

Set describes if the result of this condition should be negated.

Parameters:

negateCondition - the negateCondition value to set

Returns:

the MatchCondition object itself.

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:

operator - the operator value to set

Returns:

the MatchCondition object itself.

withSelector

public MatchCondition withSelector(String selector)

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.

withTransforms

public MatchCondition withTransforms(List transforms)

Set list of transforms.

Parameters:

transforms - the transforms value to set

Returns:

the MatchCondition object itself.

Applies to