Class NetworkConfigurationDiagnosticResult
java.lang.Object
com.azure.resourcemanager.network.models.NetworkConfigurationDiagnosticResult
- All Implemented Interfaces:
com.azure.json.JsonSerializable<NetworkConfigurationDiagnosticResult>
public final class NetworkConfigurationDiagnosticResult
extends Object
implements com.azure.json.JsonSerializable<NetworkConfigurationDiagnosticResult>
Network configuration diagnostic result corresponded to provided traffic query.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of NetworkConfigurationDiagnosticResult class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of NetworkConfigurationDiagnosticResult from the JsonReader.Get the networkSecurityGroupResult property: Network security group result.profile()Get the profile property: Network configuration diagnostic profile.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withNetworkSecurityGroupResult(NetworkSecurityGroupResult networkSecurityGroupResult) Set the networkSecurityGroupResult property: Network security group result.Set the profile property: Network configuration diagnostic profile.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
-
NetworkConfigurationDiagnosticResult
public NetworkConfigurationDiagnosticResult()Creates an instance of NetworkConfigurationDiagnosticResult class.
-
-
Method Details
-
profile
Get the profile property: Network configuration diagnostic profile.- Returns:
- the profile value.
-
withProfile
public NetworkConfigurationDiagnosticResult withProfile(NetworkConfigurationDiagnosticProfile profile) Set the profile property: Network configuration diagnostic profile.- Parameters:
profile- the profile value to set.- Returns:
- the NetworkConfigurationDiagnosticResult object itself.
-
networkSecurityGroupResult
Get the networkSecurityGroupResult property: Network security group result.- Returns:
- the networkSecurityGroupResult value.
-
withNetworkSecurityGroupResult
public NetworkConfigurationDiagnosticResult withNetworkSecurityGroupResult(NetworkSecurityGroupResult networkSecurityGroupResult) Set the networkSecurityGroupResult property: Network security group result.- Parameters:
networkSecurityGroupResult- the networkSecurityGroupResult value to set.- Returns:
- the NetworkConfigurationDiagnosticResult 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<NetworkConfigurationDiagnosticResult>- Throws:
IOException
-
fromJson
public static NetworkConfigurationDiagnosticResult fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of NetworkConfigurationDiagnosticResult from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of NetworkConfigurationDiagnosticResult 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 NetworkConfigurationDiagnosticResult.
-