Class NetworkTraceInner
java.lang.Object
com.azure.resourcemanager.appservice.fluent.models.NetworkTraceInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<NetworkTraceInner>
public final class NetworkTraceInner
extends Object
implements com.azure.json.JsonSerializable<NetworkTraceInner>
Network trace.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NetworkTraceInner
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of NetworkTraceInner from the JsonReader.message()
Get the message property: Detailed message of a network trace operation, e.g. error message in case of failure.path()
Get the path property: Local file path for the captured network trace file.status()
Get the status property: Current status of the network trace operation, same as Operation.Status (InProgress/Succeeded/Failed).com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withMessage
(String message) Set the message property: Detailed message of a network trace operation, e.g. error message in case of failure.Set the path property: Local file path for the captured network trace file.withStatus
(String status) Set the status property: Current status of the network trace operation, same as Operation.Status (InProgress/Succeeded/Failed).Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
NetworkTraceInner
public NetworkTraceInner()Creates an instance of NetworkTraceInner class.
-
-
Method Details
-
path
Get the path property: Local file path for the captured network trace file.- Returns:
- the path value.
-
withPath
Set the path property: Local file path for the captured network trace file.- Parameters:
path
- the path value to set.- Returns:
- the NetworkTraceInner object itself.
-
status
Get the status property: Current status of the network trace operation, same as Operation.Status (InProgress/Succeeded/Failed).- Returns:
- the status value.
-
withStatus
Set the status property: Current status of the network trace operation, same as Operation.Status (InProgress/Succeeded/Failed).- Parameters:
status
- the status value to set.- Returns:
- the NetworkTraceInner object itself.
-
message
Get the message property: Detailed message of a network trace operation, e.g. error message in case of failure.- Returns:
- the message value.
-
withMessage
Set the message property: Detailed message of a network trace operation, e.g. error message in case of failure.- Parameters:
message
- the message value to set.- Returns:
- the NetworkTraceInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<NetworkTraceInner>
- Throws:
IOException
-
fromJson
Reads an instance of NetworkTraceInner from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of NetworkTraceInner 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 NetworkTraceInner.
-