MatchedRule Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.MatchedRule

Implements

public final class MatchedRule
implements JsonSerializable<MatchedRule>

Matched rule.

Method Summary

Modifier and Type Method and Description
String action()

Get the action property: The network traffic is allowed or denied.

static MatchedRule fromJson(JsonReader jsonReader)

Reads an instance of MatchedRule from the JsonReader.

String ruleName()

Get the ruleName property: Name of the matched network security rule.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Method Details

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.

fromJson

public static MatchedRule fromJson(JsonReader jsonReader)

Reads an instance of MatchedRule from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MatchedRule if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the MatchedRule.

ruleName

public String ruleName()

Get the ruleName property: Name of the matched network security rule.

Returns:

the ruleName value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to