Class EvaluatedNetworkSecurityGroup
java.lang.Object
com.azure.resourcemanager.network.models.EvaluatedNetworkSecurityGroup
- All Implemented Interfaces:
com.azure.json.JsonSerializable<EvaluatedNetworkSecurityGroup>
public final class EvaluatedNetworkSecurityGroup
extends Object
implements com.azure.json.JsonSerializable<EvaluatedNetworkSecurityGroup>
Results of network security group evaluation.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of EvaluatedNetworkSecurityGroup class. -
Method Summary
Modifier and TypeMethodDescriptionGet the appliedTo property: Resource ID of nic or subnet to which network security group is applied.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of EvaluatedNetworkSecurityGroup from the JsonReader.Get the matchedRule property: Matched network security rule.Get the networkSecurityGroupId property: Network security group ID.Get the rulesEvaluationResult property: List of network security rules evaluation results.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAppliedTo(String appliedTo) Set the appliedTo property: Resource ID of nic or subnet to which network security group is applied.withMatchedRule(MatchedRule matchedRule) Set the matchedRule property: Matched network security rule.withNetworkSecurityGroupId(String networkSecurityGroupId) Set the networkSecurityGroupId property: Network security group ID.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
EvaluatedNetworkSecurityGroup
public EvaluatedNetworkSecurityGroup()Creates an instance of EvaluatedNetworkSecurityGroup class.
-
-
Method Details
-
networkSecurityGroupId
Get the networkSecurityGroupId property: Network security group ID.- Returns:
- the networkSecurityGroupId value.
-
withNetworkSecurityGroupId
Set the networkSecurityGroupId property: Network security group ID.- Parameters:
networkSecurityGroupId- the networkSecurityGroupId value to set.- Returns:
- the EvaluatedNetworkSecurityGroup object itself.
-
appliedTo
Get the appliedTo property: Resource ID of nic or subnet to which network security group is applied.- Returns:
- the appliedTo value.
-
withAppliedTo
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.
-
matchedRule
Get the matchedRule property: Matched network security rule.- Returns:
- the matchedRule value.
-
withMatchedRule
Set the matchedRule property: Matched network security rule.- Parameters:
matchedRule- the matchedRule value to set.- Returns:
- the EvaluatedNetworkSecurityGroup object itself.
-
rulesEvaluationResult
Get the rulesEvaluationResult property: List of network security rules evaluation results.- Returns:
- the rulesEvaluationResult value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<EvaluatedNetworkSecurityGroup>- Throws:
IOException
-
fromJson
public static EvaluatedNetworkSecurityGroup fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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.
-