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
    Constructor
    Description
    Creates an instance of NetworkTraceInner class.
  • Method Summary

    Modifier and Type
    Method
    Description
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of NetworkTraceInner from the JsonReader.
    Get the message property: Detailed message of a network trace operation, e.g. error message in case of failure.
    Get the path property: Local file path for the captured network trace file.
    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
    Validates the instance.
    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.
    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

      public String path()
      Get the path property: Local file path for the captured network trace file.
      Returns:
      the path value.
    • withPath

      public NetworkTraceInner withPath(String path)
      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

      public String status()
      Get the status property: Current status of the network trace operation, same as Operation.Status (InProgress/Succeeded/Failed).
      Returns:
      the status value.
    • withStatus

      public NetworkTraceInner withStatus(String status)
      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

      public String 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

      public NetworkTraceInner withMessage(String message)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<NetworkTraceInner>
      Throws:
      IOException
    • fromJson

      public static NetworkTraceInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.