Class ConnectionStateSnapshot
java.lang.Object
com.azure.resourcemanager.network.models.ConnectionStateSnapshot
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ConnectionStateSnapshot>
public final class ConnectionStateSnapshot
extends Object
implements com.azure.json.JsonSerializable<ConnectionStateSnapshot>
Connection state snapshot.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ConnectionStateSnapshot class. -
Method Summary
Modifier and TypeMethodDescriptionGet the avgLatencyInMs property: Average latency in ms.Get the connectionState property: The connection state.endTime()Get the endTime property: The end time of the connection snapshot.Get the evaluationState property: Connectivity analysis evaluation state.static ConnectionStateSnapshotfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ConnectionStateSnapshot from the JsonReader.hops()Get the hops property: List of hops between the source and the destination.Get the maxLatencyInMs property: Maximum latency in ms.Get the minLatencyInMs property: Minimum latency in ms.Get the probesFailed property: The number of failed probes.Get the probesSent property: The number of sent probes.Get the startTime property: The start time of the connection snapshot.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAvgLatencyInMs(Long avgLatencyInMs) Set the avgLatencyInMs property: Average latency in ms.withConnectionState(ConnectionState connectionState) Set the connectionState property: The connection state.withEndTime(OffsetDateTime endTime) Set the endTime property: The end time of the connection snapshot.withEvaluationState(EvaluationState evaluationState) Set the evaluationState property: Connectivity analysis evaluation state.withMaxLatencyInMs(Long maxLatencyInMs) Set the maxLatencyInMs property: Maximum latency in ms.withMinLatencyInMs(Long minLatencyInMs) Set the minLatencyInMs property: Minimum latency in ms.withProbesFailed(Long probesFailed) Set the probesFailed property: The number of failed probes.withProbesSent(Long probesSent) Set the probesSent property: The number of sent probes.withStartTime(OffsetDateTime startTime) Set the startTime property: The start time of the connection snapshot.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
-
ConnectionStateSnapshot
public ConnectionStateSnapshot()Creates an instance of ConnectionStateSnapshot class.
-
-
Method Details
-
connectionState
Get the connectionState property: The connection state.- Returns:
- the connectionState value.
-
withConnectionState
Set the connectionState property: The connection state.- Parameters:
connectionState- the connectionState value to set.- Returns:
- the ConnectionStateSnapshot object itself.
-
startTime
Get the startTime property: The start time of the connection snapshot.- Returns:
- the startTime value.
-
withStartTime
Set the startTime property: The start time of the connection snapshot.- Parameters:
startTime- the startTime value to set.- Returns:
- the ConnectionStateSnapshot object itself.
-
endTime
Get the endTime property: The end time of the connection snapshot.- Returns:
- the endTime value.
-
withEndTime
Set the endTime property: The end time of the connection snapshot.- Parameters:
endTime- the endTime value to set.- Returns:
- the ConnectionStateSnapshot object itself.
-
evaluationState
Get the evaluationState property: Connectivity analysis evaluation state.- Returns:
- the evaluationState value.
-
withEvaluationState
Set the evaluationState property: Connectivity analysis evaluation state.- Parameters:
evaluationState- the evaluationState value to set.- Returns:
- the ConnectionStateSnapshot object itself.
-
avgLatencyInMs
Get the avgLatencyInMs property: Average latency in ms.- Returns:
- the avgLatencyInMs value.
-
withAvgLatencyInMs
Set the avgLatencyInMs property: Average latency in ms.- Parameters:
avgLatencyInMs- the avgLatencyInMs value to set.- Returns:
- the ConnectionStateSnapshot object itself.
-
minLatencyInMs
Get the minLatencyInMs property: Minimum latency in ms.- Returns:
- the minLatencyInMs value.
-
withMinLatencyInMs
Set the minLatencyInMs property: Minimum latency in ms.- Parameters:
minLatencyInMs- the minLatencyInMs value to set.- Returns:
- the ConnectionStateSnapshot object itself.
-
maxLatencyInMs
Get the maxLatencyInMs property: Maximum latency in ms.- Returns:
- the maxLatencyInMs value.
-
withMaxLatencyInMs
Set the maxLatencyInMs property: Maximum latency in ms.- Parameters:
maxLatencyInMs- the maxLatencyInMs value to set.- Returns:
- the ConnectionStateSnapshot object itself.
-
probesSent
Get the probesSent property: The number of sent probes.- Returns:
- the probesSent value.
-
withProbesSent
Set the probesSent property: The number of sent probes.- Parameters:
probesSent- the probesSent value to set.- Returns:
- the ConnectionStateSnapshot object itself.
-
probesFailed
Get the probesFailed property: The number of failed probes.- Returns:
- the probesFailed value.
-
withProbesFailed
Set the probesFailed property: The number of failed probes.- Parameters:
probesFailed- the probesFailed value to set.- Returns:
- the ConnectionStateSnapshot object itself.
-
hops
Get the hops property: List of hops between the source and the destination.- Returns:
- the hops value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ConnectionStateSnapshot>- Throws:
IOException
-
fromJson
public static ConnectionStateSnapshot fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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.
-