Share via


MatchCondition Class

  • java.lang.Object
    • com.azure.resourcemanager.cdn.models.MatchCondition

Implements

public final class MatchCondition
implements JsonSerializable<MatchCondition>

Define match conditions.

Constructor Summary

Constructor Description
MatchCondition()

Creates an instance of MatchCondition class.

Method Summary

Modifier and Type Method and Description
static MatchCondition fromJson(JsonReader jsonReader)

Reads an instance of MatchCondition from the JsonReader.

List<String> matchValue()

Get the matchValue property: List of possible match values.

WafMatchVariable matchVariable()

Get the matchVariable property: Match variable to compare against.

Boolean negateCondition()

Get the negateCondition property: Describes if the result of this condition should be negated.

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

JsonWriter toJson(JsonWriter jsonWriter)
List<TransformType> transforms()

Get the transforms property: List of transforms.

void validate()

Validates the instance.

MatchCondition withMatchValue(List<String> matchValue)

Set the matchValue property: List of possible match values.

MatchCondition withMatchVariable(WafMatchVariable matchVariable)

Set the matchVariable property: Match variable to compare against.

MatchCondition withNegateCondition(Boolean negateCondition)

Set the negateCondition property: Describes if the result of this condition should be negated.

MatchCondition withOperator(Operator operator)

Set the operator property: Describes operator to be matched.

MatchCondition withSelector(String selector)

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

MatchCondition 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

fromJson

public static MatchCondition fromJson(JsonReader jsonReader)

Reads an instance of MatchCondition from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MatchCondition if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

matchValue

public List<String> matchValue()

Get the matchValue property: List of possible match values.

Returns:

the matchValue value.

matchVariable

public WafMatchVariable matchVariable()

Get the matchVariable property: Match variable to compare against.

Returns:

the matchVariable value.

negateCondition

public Boolean negateCondition()

Get the negateCondition property: Describes if the result of this condition should be negated.

Returns:

the negateCondition value.

operator

public Operator operator()

Get the operator property: Describes operator to be matched.

Returns:

the operator value.

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

transforms

public List<TransformType> transforms()

Get the transforms property: List of transforms.

Returns:

the transforms value.

validate

public void validate()

Validates the instance.

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.

withMatchVariable

public MatchCondition withMatchVariable(WafMatchVariable matchVariable)

Set the matchVariable property: Match variable to compare against.

Parameters:

matchVariable - the matchVariable value to set.

Returns:

the MatchCondition object itself.

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.

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.

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.

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.

Applies to