NetworkTraceInner Class

  • java.lang.Object
    • com.azure.resourcemanager.appservice.fluent.models.NetworkTraceInner

Implements

public final class NetworkTraceInner
implements JsonSerializable<NetworkTraceInner>

Network trace.

Constructor Summary

Constructor Description
NetworkTraceInner()

Creates an instance of NetworkTraceInner class.

Method Summary

Modifier and Type Method and Description
static NetworkTraceInner fromJson(JsonReader jsonReader)

Reads an instance of NetworkTraceInner from the JsonReader.

String message()

Get the message property: Detailed message of a network trace operation, e.g.

String path()

Get the path property: Local file path for the captured network trace file.

String status()

Get the status property: Current status of the network trace operation, same as Operation.Status (InProgress/Succeeded/Failed).

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

NetworkTraceInner withMessage(String message)

Set the message property: Detailed message of a network trace operation, e.g.

NetworkTraceInner withPath(String path)

Set the path property: Local file path for the captured network trace file.

NetworkTraceInner withStatus(String status)

Set the status property: Current status of the network trace operation, same as Operation.Status (InProgress/Succeeded/Failed).

Methods inherited from java.lang.Object

Constructor Details

NetworkTraceInner

public NetworkTraceInner()

Creates an instance of NetworkTraceInner class.

Method Details

fromJson

public static NetworkTraceInner fromJson(JsonReader jsonReader)

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.

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.

path

public String path()

Get the path property: Local file path for the captured network trace file.

Returns:

the path value.

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

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.

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.

Applies to