ConnectionStateSnapshot Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. ConnectionStateSnapshot
- com.
Implements
public final class ConnectionStateSnapshot
implements JsonSerializable<ConnectionStateSnapshot>
Connection state snapshot.
Constructor Summary
Constructor | Description |
---|---|
ConnectionStateSnapshot() |
Creates an instance of Connection |
Method Summary
Modifier and Type | Method and Description |
---|---|
Long |
avgLatencyInMs()
Get the avg |
Connection |
connectionState()
Get the connection |
Offset |
endTime()
Get the end |
Evaluation |
evaluationState()
Get the evaluation |
static
Connection |
fromJson(JsonReader jsonReader)
Reads an instance of Connection |
List<Connectivity |
hops()
Get the hops property: List of hops between the source and the destination. |
Long |
maxLatencyInMs()
Get the max |
Long |
minLatencyInMs()
Get the min |
Long |
probesFailed()
Get the probes |
Long |
probesSent()
Get the probes |
Offset |
startTime()
Get the start |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Connection |
withAvgLatencyInMs(Long avgLatencyInMs)
Set the avg |
Connection |
withConnectionState(ConnectionState connectionState)
Set the connection |
Connection |
withEndTime(OffsetDateTime endTime)
Set the end |
Connection |
withEvaluationState(EvaluationState evaluationState)
Set the evaluation |
Connection |
withMaxLatencyInMs(Long maxLatencyInMs)
Set the max |
Connection |
withMinLatencyInMs(Long minLatencyInMs)
Set the min |
Connection |
withProbesFailed(Long probesFailed)
Set the probes |
Connection |
withProbesSent(Long probesSent)
Set the probes |
Connection |
withStartTime(OffsetDateTime startTime)
Set the start |
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:
connectionState
public ConnectionState connectionState()
Get the connectionState property: The connection state.
Returns:
endTime
public OffsetDateTime endTime()
Get the endTime property: The end time of the connection snapshot.
Returns:
evaluationState
public EvaluationState evaluationState()
Get the evaluationState property: Connectivity analysis evaluation state.
Returns:
fromJson
public static ConnectionStateSnapshot fromJson(JsonReader jsonReader)
Reads an instance of ConnectionStateSnapshot from the JsonReader.
Parameters:
Returns:
Throws:
hops
public List
Get the hops property: List of hops between the source and the destination.
Returns:
maxLatencyInMs
public Long maxLatencyInMs()
Get the maxLatencyInMs property: Maximum latency in ms.
Returns:
minLatencyInMs
public Long minLatencyInMs()
Get the minLatencyInMs property: Minimum latency in ms.
Returns:
probesFailed
public Long probesFailed()
Get the probesFailed property: The number of failed probes.
Returns:
probesSent
public Long probesSent()
Get the probesSent property: The number of sent probes.
Returns:
startTime
public OffsetDateTime startTime()
Get the startTime property: The start time of the connection snapshot.
Returns:
toJson
validate
public void validate()
Validates the instance.
withAvgLatencyInMs
public ConnectionStateSnapshot withAvgLatencyInMs(Long avgLatencyInMs)
Set the avgLatencyInMs property: Average latency in ms.
Parameters:
Returns:
withConnectionState
public ConnectionStateSnapshot withConnectionState(ConnectionState connectionState)
Set the connectionState property: The connection state.
Parameters:
Returns:
withEndTime
public ConnectionStateSnapshot withEndTime(OffsetDateTime endTime)
Set the endTime property: The end time of the connection snapshot.
Parameters:
Returns:
withEvaluationState
public ConnectionStateSnapshot withEvaluationState(EvaluationState evaluationState)
Set the evaluationState property: Connectivity analysis evaluation state.
Parameters:
Returns:
withMaxLatencyInMs
public ConnectionStateSnapshot withMaxLatencyInMs(Long maxLatencyInMs)
Set the maxLatencyInMs property: Maximum latency in ms.
Parameters:
Returns:
withMinLatencyInMs
public ConnectionStateSnapshot withMinLatencyInMs(Long minLatencyInMs)
Set the minLatencyInMs property: Minimum latency in ms.
Parameters:
Returns:
withProbesFailed
public ConnectionStateSnapshot withProbesFailed(Long probesFailed)
Set the probesFailed property: The number of failed probes.
Parameters:
Returns:
withProbesSent
public ConnectionStateSnapshot withProbesSent(Long probesSent)
Set the probesSent property: The number of sent probes.
Parameters:
Returns:
withStartTime
public ConnectionStateSnapshot withStartTime(OffsetDateTime startTime)
Set the startTime property: The start time of the connection snapshot.
Parameters:
Returns:
Applies to
Azure SDK for Java