Class MatchedRule
- java.lang.Object
-
- com.azure.resourcemanager.network.models.MatchedRule
-
public final class MatchedRule extends Object
Matched rule.
-
-
Constructor Summary
Constructors Constructor Description MatchedRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringaction()Get the action property: The network traffic is allowed or denied.StringruleName()Get the ruleName property: Name of the matched network security rule.voidvalidate()Validates the instance.MatchedRulewithAction(String action)Set the action property: The network traffic is allowed or denied.MatchedRulewithRuleName(String ruleName)Set the ruleName property: Name of the matched network security rule.
-
-
-
Method Detail
-
ruleName
public String ruleName()
Get the ruleName property: Name of the matched network security rule.- Returns:
- the ruleName value.
-
withRuleName
public MatchedRule withRuleName(String ruleName)
Set the ruleName property: Name of the matched network security rule.- Parameters:
ruleName- the ruleName value to set.- Returns:
- the MatchedRule object itself.
-
action
public String action()
Get the action property: The network traffic is allowed or denied. Possible values are 'Allow' and 'Deny'.- Returns:
- the action value.
-
withAction
public MatchedRule withAction(String action)
Set the action property: The network traffic is allowed or denied. Possible values are 'Allow' and 'Deny'.- Parameters:
action- the action value to set.- Returns:
- the MatchedRule object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-