MatchedRule Class

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

Implements

public final class MatchedRule
implements JsonSerializable<MatchedRule>

Matched rule.

Constructor Summary

Constructor Description
MatchedRule()

Creates an instance of MatchedRule class.

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.

MatchedRule withAction(String action)

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

MatchedRule withRuleName(String ruleName)

Set the ruleName property: Name of the matched network security 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:

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.

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.

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.

Applies to