EvaluatedNetworkSecurityGroup Class

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

Implements

public final class EvaluatedNetworkSecurityGroup
implements JsonSerializable<EvaluatedNetworkSecurityGroup>

Results of network security group evaluation.

Constructor Summary

Constructor Description
EvaluatedNetworkSecurityGroup()

Creates an instance of EvaluatedNetworkSecurityGroup class.

Method Summary

Modifier and Type Method and Description
String appliedTo()

Get the appliedTo property: Resource ID of nic or subnet to which network security group is applied.

static EvaluatedNetworkSecurityGroup fromJson(JsonReader jsonReader)

Reads an instance of EvaluatedNetworkSecurityGroup from the JsonReader.

MatchedRule matchedRule()

Get the matchedRule property: Matched network security rule.

String networkSecurityGroupId()

Get the networkSecurityGroupId property: Network security group ID.

List<NetworkSecurityRulesEvaluationResult> rulesEvaluationResult()

Get the rulesEvaluationResult property: List of network security rules evaluation results.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

EvaluatedNetworkSecurityGroup withAppliedTo(String appliedTo)

Set the appliedTo property: Resource ID of nic or subnet to which network security group is applied.

EvaluatedNetworkSecurityGroup withMatchedRule(MatchedRule matchedRule)

Set the matchedRule property: Matched network security rule.

EvaluatedNetworkSecurityGroup withNetworkSecurityGroupId(String networkSecurityGroupId)

Set the networkSecurityGroupId property: Network security group ID.

Methods inherited from java.lang.Object

Constructor Details

EvaluatedNetworkSecurityGroup

public EvaluatedNetworkSecurityGroup()

Creates an instance of EvaluatedNetworkSecurityGroup class.

Method Details

appliedTo

public String appliedTo()

Get the appliedTo property: Resource ID of nic or subnet to which network security group is applied.

Returns:

the appliedTo value.

fromJson

public static EvaluatedNetworkSecurityGroup fromJson(JsonReader jsonReader)

Reads an instance of EvaluatedNetworkSecurityGroup from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of EvaluatedNetworkSecurityGroup 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 EvaluatedNetworkSecurityGroup.

matchedRule

public MatchedRule matchedRule()

Get the matchedRule property: Matched network security rule.

Returns:

the matchedRule value.

networkSecurityGroupId

public String networkSecurityGroupId()

Get the networkSecurityGroupId property: Network security group ID.

Returns:

the networkSecurityGroupId value.

rulesEvaluationResult

public List rulesEvaluationResult()

Get the rulesEvaluationResult property: List of network security rules evaluation results.

Returns:

the rulesEvaluationResult value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAppliedTo

public EvaluatedNetworkSecurityGroup withAppliedTo(String appliedTo)

Set the appliedTo property: Resource ID of nic or subnet to which network security group is applied.

Parameters:

appliedTo - the appliedTo value to set.

Returns:

the EvaluatedNetworkSecurityGroup object itself.

withMatchedRule

public EvaluatedNetworkSecurityGroup withMatchedRule(MatchedRule matchedRule)

Set the matchedRule property: Matched network security rule.

Parameters:

matchedRule - the matchedRule value to set.

Returns:

the EvaluatedNetworkSecurityGroup object itself.

withNetworkSecurityGroupId

public EvaluatedNetworkSecurityGroup withNetworkSecurityGroupId(String networkSecurityGroupId)

Set the networkSecurityGroupId property: Network security group ID.

Parameters:

networkSecurityGroupId - the networkSecurityGroupId value to set.

Returns:

the EvaluatedNetworkSecurityGroup object itself.

Applies to