ConnectionStateSnapshot Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.ConnectionStateSnapshot

Implements

public final class ConnectionStateSnapshot
implements JsonSerializable<ConnectionStateSnapshot>

Connection state snapshot.

Constructor Summary

Constructor Description
ConnectionStateSnapshot()

Creates an instance of ConnectionStateSnapshot class.

Method Summary

Modifier and Type Method and Description
Long avgLatencyInMs()

Get the avgLatencyInMs property: Average latency in ms.

ConnectionState connectionState()

Get the connectionState property: The connection state.

OffsetDateTime endTime()

Get the endTime property: The end time of the connection snapshot.

EvaluationState evaluationState()

Get the evaluationState property: Connectivity analysis evaluation state.

static ConnectionStateSnapshot fromJson(JsonReader jsonReader)

Reads an instance of ConnectionStateSnapshot from the JsonReader.

List<ConnectivityHop> hops()

Get the hops property: List of hops between the source and the destination.

Long maxLatencyInMs()

Get the maxLatencyInMs property: Maximum latency in ms.

Long minLatencyInMs()

Get the minLatencyInMs property: Minimum latency in ms.

Long probesFailed()

Get the probesFailed property: The number of failed probes.

Long probesSent()

Get the probesSent property: The number of sent probes.

OffsetDateTime startTime()

Get the startTime property: The start time of the connection snapshot.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ConnectionStateSnapshot withAvgLatencyInMs(Long avgLatencyInMs)

Set the avgLatencyInMs property: Average latency in ms.

ConnectionStateSnapshot withConnectionState(ConnectionState connectionState)

Set the connectionState property: The connection state.

ConnectionStateSnapshot withEndTime(OffsetDateTime endTime)

Set the endTime property: The end time of the connection snapshot.

ConnectionStateSnapshot withEvaluationState(EvaluationState evaluationState)

Set the evaluationState property: Connectivity analysis evaluation state.

ConnectionStateSnapshot withMaxLatencyInMs(Long maxLatencyInMs)

Set the maxLatencyInMs property: Maximum latency in ms.

ConnectionStateSnapshot withMinLatencyInMs(Long minLatencyInMs)

Set the minLatencyInMs property: Minimum latency in ms.

ConnectionStateSnapshot withProbesFailed(Long probesFailed)

Set the probesFailed property: The number of failed probes.

ConnectionStateSnapshot withProbesSent(Long probesSent)

Set the probesSent property: The number of sent probes.

ConnectionStateSnapshot withStartTime(OffsetDateTime startTime)

Set the startTime property: The start time of the connection snapshot.

Methods inherited from java.lang.Object

Constructor Details

ConnectionStateSnapshot

public ConnectionStateSnapshot()

Creates an instance of ConnectionStateSnapshot class.

Method Details

avgLatencyInMs

public Long avgLatencyInMs()

Get the avgLatencyInMs property: Average latency in ms.

Returns:

the avgLatencyInMs value.

connectionState

public ConnectionState connectionState()

Get the connectionState property: The connection state.

Returns:

the connectionState value.

endTime

public OffsetDateTime endTime()

Get the endTime property: The end time of the connection snapshot.

Returns:

the endTime value.

evaluationState

public EvaluationState evaluationState()

Get the evaluationState property: Connectivity analysis evaluation state.

Returns:

the evaluationState value.

fromJson

public static ConnectionStateSnapshot fromJson(JsonReader jsonReader)

Reads an instance of ConnectionStateSnapshot from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ConnectionStateSnapshot 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 ConnectionStateSnapshot.

hops

public List hops()

Get the hops property: List of hops between the source and the destination.

Returns:

the hops value.

maxLatencyInMs

public Long maxLatencyInMs()

Get the maxLatencyInMs property: Maximum latency in ms.

Returns:

the maxLatencyInMs value.

minLatencyInMs

public Long minLatencyInMs()

Get the minLatencyInMs property: Minimum latency in ms.

Returns:

the minLatencyInMs value.

probesFailed

public Long probesFailed()

Get the probesFailed property: The number of failed probes.

Returns:

the probesFailed value.

probesSent

public Long probesSent()

Get the probesSent property: The number of sent probes.

Returns:

the probesSent value.

startTime

public OffsetDateTime startTime()

Get the startTime property: The start time of the connection snapshot.

Returns:

the startTime value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAvgLatencyInMs

public ConnectionStateSnapshot withAvgLatencyInMs(Long avgLatencyInMs)

Set the avgLatencyInMs property: Average latency in ms.

Parameters:

avgLatencyInMs - the avgLatencyInMs value to set.

Returns:

the ConnectionStateSnapshot object itself.

withConnectionState

public ConnectionStateSnapshot withConnectionState(ConnectionState connectionState)

Set the connectionState property: The connection state.

Parameters:

connectionState - the connectionState value to set.

Returns:

the ConnectionStateSnapshot object itself.

withEndTime

public ConnectionStateSnapshot withEndTime(OffsetDateTime endTime)

Set the endTime property: The end time of the connection snapshot.

Parameters:

endTime - the endTime value to set.

Returns:

the ConnectionStateSnapshot object itself.

withEvaluationState

public ConnectionStateSnapshot withEvaluationState(EvaluationState evaluationState)

Set the evaluationState property: Connectivity analysis evaluation state.

Parameters:

evaluationState - the evaluationState value to set.

Returns:

the ConnectionStateSnapshot object itself.

withMaxLatencyInMs

public ConnectionStateSnapshot withMaxLatencyInMs(Long maxLatencyInMs)

Set the maxLatencyInMs property: Maximum latency in ms.

Parameters:

maxLatencyInMs - the maxLatencyInMs value to set.

Returns:

the ConnectionStateSnapshot object itself.

withMinLatencyInMs

public ConnectionStateSnapshot withMinLatencyInMs(Long minLatencyInMs)

Set the minLatencyInMs property: Minimum latency in ms.

Parameters:

minLatencyInMs - the minLatencyInMs value to set.

Returns:

the ConnectionStateSnapshot object itself.

withProbesFailed

public ConnectionStateSnapshot withProbesFailed(Long probesFailed)

Set the probesFailed property: The number of failed probes.

Parameters:

probesFailed - the probesFailed value to set.

Returns:

the ConnectionStateSnapshot object itself.

withProbesSent

public ConnectionStateSnapshot withProbesSent(Long probesSent)

Set the probesSent property: The number of sent probes.

Parameters:

probesSent - the probesSent value to set.

Returns:

the ConnectionStateSnapshot object itself.

withStartTime

public ConnectionStateSnapshot withStartTime(OffsetDateTime startTime)

Set the startTime property: The start time of the connection snapshot.

Parameters:

startTime - the startTime value to set.

Returns:

the ConnectionStateSnapshot object itself.

Applies to