Class NetworkSecurityRulesEvaluationResult
java.lang.Object
com.azure.resourcemanager.network.models.NetworkSecurityRulesEvaluationResult
- All Implemented Interfaces:
com.azure.json.JsonSerializable<NetworkSecurityRulesEvaluationResult>
public final class NetworkSecurityRulesEvaluationResult
extends Object
implements com.azure.json.JsonSerializable<NetworkSecurityRulesEvaluationResult>
Network security rules evaluation result.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of NetworkSecurityRulesEvaluationResult class. -
Method Summary
Modifier and TypeMethodDescriptionGet the destinationMatched property: Value indicating whether destination is matched.Get the destinationPortMatched property: Value indicating whether destination port is matched.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of NetworkSecurityRulesEvaluationResult from the JsonReader.name()Get the name property: Name of the network security rule.Get the protocolMatched property: Value indicating whether protocol is matched.Get the sourceMatched property: Value indicating whether source is matched.Get the sourcePortMatched property: Value indicating whether source port is matched.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDestinationMatched(Boolean destinationMatched) Set the destinationMatched property: Value indicating whether destination is matched.withDestinationPortMatched(Boolean destinationPortMatched) Set the destinationPortMatched property: Value indicating whether destination port is matched.Set the name property: Name of the network security rule.withProtocolMatched(Boolean protocolMatched) Set the protocolMatched property: Value indicating whether protocol is matched.withSourceMatched(Boolean sourceMatched) Set the sourceMatched property: Value indicating whether source is matched.withSourcePortMatched(Boolean sourcePortMatched) Set the sourcePortMatched property: Value indicating whether source port is matched.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
-
NetworkSecurityRulesEvaluationResult
public NetworkSecurityRulesEvaluationResult()Creates an instance of NetworkSecurityRulesEvaluationResult class.
-
-
Method Details
-
name
Get the name property: Name of the network security rule.- Returns:
- the name value.
-
withName
Set the name property: Name of the network security rule.- Parameters:
name- the name value to set.- Returns:
- the NetworkSecurityRulesEvaluationResult object itself.
-
protocolMatched
Get the protocolMatched property: Value indicating whether protocol is matched.- Returns:
- the protocolMatched value.
-
withProtocolMatched
Set the protocolMatched property: Value indicating whether protocol is matched.- Parameters:
protocolMatched- the protocolMatched value to set.- Returns:
- the NetworkSecurityRulesEvaluationResult object itself.
-
sourceMatched
Get the sourceMatched property: Value indicating whether source is matched.- Returns:
- the sourceMatched value.
-
withSourceMatched
Set the sourceMatched property: Value indicating whether source is matched.- Parameters:
sourceMatched- the sourceMatched value to set.- Returns:
- the NetworkSecurityRulesEvaluationResult object itself.
-
sourcePortMatched
Get the sourcePortMatched property: Value indicating whether source port is matched.- Returns:
- the sourcePortMatched value.
-
withSourcePortMatched
Set the sourcePortMatched property: Value indicating whether source port is matched.- Parameters:
sourcePortMatched- the sourcePortMatched value to set.- Returns:
- the NetworkSecurityRulesEvaluationResult object itself.
-
destinationMatched
Get the destinationMatched property: Value indicating whether destination is matched.- Returns:
- the destinationMatched value.
-
withDestinationMatched
Set the destinationMatched property: Value indicating whether destination is matched.- Parameters:
destinationMatched- the destinationMatched value to set.- Returns:
- the NetworkSecurityRulesEvaluationResult object itself.
-
destinationPortMatched
Get the destinationPortMatched property: Value indicating whether destination port is matched.- Returns:
- the destinationPortMatched value.
-
withDestinationPortMatched
public NetworkSecurityRulesEvaluationResult withDestinationPortMatched(Boolean destinationPortMatched) Set the destinationPortMatched property: Value indicating whether destination port is matched.- Parameters:
destinationPortMatched- the destinationPortMatched value to set.- Returns:
- the NetworkSecurityRulesEvaluationResult object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<NetworkSecurityRulesEvaluationResult>- Throws:
IOException
-
fromJson
public static NetworkSecurityRulesEvaluationResult fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of NetworkSecurityRulesEvaluationResult from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of NetworkSecurityRulesEvaluationResult 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 NetworkSecurityRulesEvaluationResult.
-