Class MatchCondition
- java.lang.Object
-
- com.azure.resourcemanager.network.models.MatchCondition
-
public final class MatchCondition extends Object
Define match conditions.
-
-
Constructor Summary
Constructors Constructor Description MatchCondition()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>matchValues()Get the matchValues property: Match value.List<MatchVariable>matchVariables()Get the matchVariables property: List of match variables.BooleannegationConditon()Get the negationConditon property: Whether this is negate condition or not.WebApplicationFirewallOperatoroperator()Get the operator property: The operator to be matched.List<WebApplicationFirewallTransform>transforms()Get the transforms property: List of transforms.voidvalidate()Validates the instance.MatchConditionwithMatchValues(List<String> matchValues)Set the matchValues property: Match value.MatchConditionwithMatchVariables(List<MatchVariable> matchVariables)Set the matchVariables property: List of match variables.MatchConditionwithNegationConditon(Boolean negationConditon)Set the negationConditon property: Whether this is negate condition or not.MatchConditionwithOperator(WebApplicationFirewallOperator operator)Set the operator property: The operator to be matched.MatchConditionwithTransforms(List<WebApplicationFirewallTransform> transforms)Set the transforms property: List of transforms.
-
-
-
Method Detail
-
matchVariables
public List<MatchVariable> matchVariables()
Get the matchVariables property: List of match variables.- Returns:
- the matchVariables value.
-
withMatchVariables
public MatchCondition withMatchVariables(List<MatchVariable> matchVariables)
Set the matchVariables property: List of match variables.- Parameters:
matchVariables- the matchVariables value to set.- Returns:
- the MatchCondition object itself.
-
operator
public WebApplicationFirewallOperator operator()
Get the operator property: The operator to be matched.- Returns:
- the operator value.
-
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.
-
negationConditon
public Boolean negationConditon()
Get the negationConditon property: Whether this is negate condition or not.- Returns:
- the negationConditon value.
-
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.
-
matchValues
public List<String> matchValues()
Get the matchValues property: Match value.- Returns:
- the matchValues value.
-
withMatchValues
public MatchCondition withMatchValues(List<String> matchValues)
Set the matchValues property: Match value.- Parameters:
matchValues- the matchValues value to set.- Returns:
- the MatchCondition object itself.
-
transforms
public List<WebApplicationFirewallTransform> transforms()
Get the transforms property: List of transforms.- Returns:
- the transforms value.
-
withTransforms
public MatchCondition withTransforms(List<WebApplicationFirewallTransform> transforms)
Set the transforms property: List of transforms.- Parameters:
transforms- the transforms value to set.- Returns:
- the MatchCondition object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-