MatchCondition Class

  • java.lang.Object
    • com.azure.resourcemanager.network.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> matchValues()

Get the matchValues property: Match value.

List<MatchVariable> matchVariables()

Get the matchVariables property: List of match variables.

Boolean negationConditon()

Get the negationConditon property: Whether this is negate condition or not.

WebApplicationFirewallOperator operator()

Get the operator property: The operator to be matched.

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

Get the transforms property: List of transforms.

void validate()

Validates the instance.

MatchCondition withMatchValues(List<String> matchValues)

Set the matchValues property: Match value.

MatchCondition withMatchVariables(List<MatchVariable> matchVariables)

Set the matchVariables property: List of match variables.

MatchCondition withNegationConditon(Boolean negationConditon)

Set the negationConditon property: Whether this is negate condition or not.

MatchCondition withOperator(WebApplicationFirewallOperator operator)

Set the operator property: The operator to be matched.

MatchCondition withTransforms(List<WebApplicationFirewallTransform> 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.

matchValues

public List matchValues()

Get the matchValues property: Match value.

Returns:

the matchValues value.

matchVariables

public List matchVariables()

Get the matchVariables property: List of match variables.

Returns:

the matchVariables value.

negationConditon

public Boolean negationConditon()

Get the negationConditon property: Whether this is negate condition or not.

Returns:

the negationConditon value.

operator

public WebApplicationFirewallOperator operator()

Get the operator property: The operator to be matched.

Returns:

the operator value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

transforms

public List transforms()

Get the transforms property: List of transforms.

Returns:

the transforms value.

validate

public void validate()

Validates the instance.

withMatchValues

public MatchCondition withMatchValues(List matchValues)

Set the matchValues property: Match value.

Parameters:

matchValues - the matchValues value to set.

Returns:

the MatchCondition object itself.

withMatchVariables

public MatchCondition withMatchVariables(List matchVariables)

Set the matchVariables property: List of match variables.

Parameters:

matchVariables - the matchVariables value to set.

Returns:

the MatchCondition object itself.

withNegationConditon

public MatchCondition withNegationConditon(Boolean negationConditon)

Set the negationConditon property: Whether this is negate condition or not.

Parameters:

negationConditon - the negationConditon value to set.

Returns:

the MatchCondition object itself.

withOperator

public MatchCondition withOperator(WebApplicationFirewallOperator operator)

Set the operator property: The operator to be matched.

Parameters:

operator - the operator value to set.

Returns:

the MatchCondition object itself.

withTransforms

public MatchCondition withTransforms(List transforms)

Set the transforms property: List of transforms.

Parameters:

transforms - the transforms value to set.

Returns:

the MatchCondition object itself.

Applies to