Class NetworkConfigurationDiagnosticParameters
java.lang.Object
com.azure.resourcemanager.network.models.NetworkConfigurationDiagnosticParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<NetworkConfigurationDiagnosticParameters>
public final class NetworkConfigurationDiagnosticParameters
extends Object
implements com.azure.json.JsonSerializable<NetworkConfigurationDiagnosticParameters>
Parameters to get network configuration diagnostic.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of NetworkConfigurationDiagnosticParameters class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of NetworkConfigurationDiagnosticParameters from the JsonReader.profiles()Get the profiles property: List of network configuration diagnostic profiles.Get the targetResourceId property: The ID of the target resource to perform network configuration diagnostic.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Get the verbosityLevel property: Verbosity level.Set the profiles property: List of network configuration diagnostic profiles.withTargetResourceId(String targetResourceId) Set the targetResourceId property: The ID of the target resource to perform network configuration diagnostic.withVerbosityLevel(VerbosityLevel verbosityLevel) Set the verbosityLevel property: Verbosity level.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
-
NetworkConfigurationDiagnosticParameters
public NetworkConfigurationDiagnosticParameters()Creates an instance of NetworkConfigurationDiagnosticParameters class.
-
-
Method Details
-
targetResourceId
Get the targetResourceId property: The ID of the target resource to perform network configuration diagnostic. Valid options are VM, NetworkInterface, VMSS/NetworkInterface and Application Gateway.- Returns:
- the targetResourceId value.
-
withTargetResourceId
Set the targetResourceId property: The ID of the target resource to perform network configuration diagnostic. Valid options are VM, NetworkInterface, VMSS/NetworkInterface and Application Gateway.- Parameters:
targetResourceId- the targetResourceId value to set.- Returns:
- the NetworkConfigurationDiagnosticParameters object itself.
-
verbosityLevel
Get the verbosityLevel property: Verbosity level.- Returns:
- the verbosityLevel value.
-
withVerbosityLevel
Set the verbosityLevel property: Verbosity level.- Parameters:
verbosityLevel- the verbosityLevel value to set.- Returns:
- the NetworkConfigurationDiagnosticParameters object itself.
-
profiles
Get the profiles property: List of network configuration diagnostic profiles.- Returns:
- the profiles value.
-
withProfiles
public NetworkConfigurationDiagnosticParameters withProfiles(List<NetworkConfigurationDiagnosticProfile> profiles) Set the profiles property: List of network configuration diagnostic profiles.- Parameters:
profiles- the profiles value to set.- Returns:
- the NetworkConfigurationDiagnosticParameters 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<NetworkConfigurationDiagnosticParameters>- Throws:
IOException
-
fromJson
public static NetworkConfigurationDiagnosticParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of NetworkConfigurationDiagnosticParameters from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of NetworkConfigurationDiagnosticParameters if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the NetworkConfigurationDiagnosticParameters.
-