MatchedRule Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. MatchedRule
- com.
Implements
public final class MatchedRule
implements JsonSerializable<MatchedRule>
Matched rule.
Constructor Summary
Constructor | Description |
---|---|
MatchedRule() |
Creates an instance of Matched |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
action()
Get the action property: The network traffic is allowed or denied. |
static
Matched |
fromJson(JsonReader jsonReader)
Reads an instance of Matched |
String |
ruleName()
Get the rule |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Matched |
withAction(String action)
Set the action property: The network traffic is allowed or denied. |
Matched |
withRuleName(String ruleName)
Set the rule |
Methods inherited from java.lang.Object
Constructor Details
MatchedRule
public MatchedRule()
Creates an instance of MatchedRule class.
Method Details
action
public String action()
Get the action property: The network traffic is allowed or denied. Possible values are 'Allow' and 'Deny'.
Returns:
fromJson
public static MatchedRule fromJson(JsonReader jsonReader)
Reads an instance of MatchedRule from the JsonReader.
Parameters:
Returns:
Throws:
ruleName
public String ruleName()
Get the ruleName property: Name of the matched network security rule.
Returns:
toJson
validate
public void validate()
Validates the instance.
withAction
public MatchedRule withAction(String action)
Set the action property: The network traffic is allowed or denied. Possible values are 'Allow' and 'Deny'.
Parameters:
Returns:
withRuleName
public MatchedRule withRuleName(String ruleName)
Set the ruleName property: Name of the matched network security rule.
Parameters:
Returns:
Applies to
Azure SDK for Java