MatchCondition Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. MatchCondition
- com.
Implements
public final class MatchCondition
implements JsonSerializable<MatchCondition>
Define match conditions.
Constructor Summary
Constructor | Description |
---|---|
MatchCondition() |
Creates an instance of Match |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Match |
fromJson(JsonReader jsonReader)
Reads an instance of Match |
List<String> |
matchValues()
Get the match |
List<Match |
matchVariables()
Get the match |
Boolean |
negationConditon()
Get the negation |
Web |
operator()
Get the operator property: The operator to be matched. |
Json |
toJson(JsonWriter jsonWriter) |
List<Web |
transforms()
Get the transforms property: List of transforms. |
void |
validate()
Validates the instance. |
Match |
withMatchValues(List<String> matchValues)
Set the match |
Match |
withMatchVariables(List<MatchVariable> matchVariables)
Set the match |
Match |
withNegationConditon(Boolean negationConditon)
Set the negation |
Match |
withOperator(WebApplicationFirewallOperator operator)
Set the operator property: The operator to be matched. |
Match |
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:
Returns:
Throws:
matchValues
public List
Get the matchValues property: Match value.
Returns:
matchVariables
public List
Get the matchVariables property: List of match variables.
Returns:
negationConditon
public Boolean negationConditon()
Get the negationConditon property: Whether this is negate condition or not.
Returns:
operator
public WebApplicationFirewallOperator operator()
Get the operator property: The operator to be matched.
Returns:
toJson
transforms
public List
Get the transforms property: List of transforms.
Returns:
validate
public void validate()
Validates the instance.
withMatchValues
public MatchCondition withMatchValues(List
Set the matchValues property: Match value.
Parameters:
Returns:
withMatchVariables
public MatchCondition withMatchVariables(List
Set the matchVariables property: List of match variables.
Parameters:
Returns:
withNegationConditon
public MatchCondition withNegationConditon(Boolean negationConditon)
Set the negationConditon property: Whether this is negate condition or not.
Parameters:
Returns:
withOperator
public MatchCondition withOperator(WebApplicationFirewallOperator operator)
Set the operator property: The operator to be matched.
Parameters:
Returns:
withTransforms
public MatchCondition withTransforms(List
Set the transforms property: List of transforms.
Parameters:
Returns:
Applies to
Azure SDK for Java