Class ConnectionStateSnapshot
- java.lang.Object
-
- com.azure.resourcemanager.network.models.ConnectionStateSnapshot
-
public final class ConnectionStateSnapshot extends Object
Connection state snapshot.
-
-
Constructor Summary
Constructors Constructor Description ConnectionStateSnapshot()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LongavgLatencyInMs()Get the avgLatencyInMs property: Average latency in ms.ConnectionStateconnectionState()Get the connectionState property: The connection state.OffsetDateTimeendTime()Get the endTime property: The end time of the connection snapshot.EvaluationStateevaluationState()Get the evaluationState property: Connectivity analysis evaluation state.List<ConnectivityHop>hops()Get the hops property: List of hops between the source and the destination.LongmaxLatencyInMs()Get the maxLatencyInMs property: Maximum latency in ms.LongminLatencyInMs()Get the minLatencyInMs property: Minimum latency in ms.LongprobesFailed()Get the probesFailed property: The number of failed probes.LongprobesSent()Get the probesSent property: The number of sent probes.OffsetDateTimestartTime()Get the startTime property: The start time of the connection snapshot.voidvalidate()Validates the instance.ConnectionStateSnapshotwithAvgLatencyInMs(Long avgLatencyInMs)Set the avgLatencyInMs property: Average latency in ms.ConnectionStateSnapshotwithConnectionState(ConnectionState connectionState)Set the connectionState property: The connection state.ConnectionStateSnapshotwithEndTime(OffsetDateTime endTime)Set the endTime property: The end time of the connection snapshot.ConnectionStateSnapshotwithEvaluationState(EvaluationState evaluationState)Set the evaluationState property: Connectivity analysis evaluation state.ConnectionStateSnapshotwithMaxLatencyInMs(Long maxLatencyInMs)Set the maxLatencyInMs property: Maximum latency in ms.ConnectionStateSnapshotwithMinLatencyInMs(Long minLatencyInMs)Set the minLatencyInMs property: Minimum latency in ms.ConnectionStateSnapshotwithProbesFailed(Long probesFailed)Set the probesFailed property: The number of failed probes.ConnectionStateSnapshotwithProbesSent(Long probesSent)Set the probesSent property: The number of sent probes.ConnectionStateSnapshotwithStartTime(OffsetDateTime startTime)Set the startTime property: The start time of the connection snapshot.
-
-
-
Method Detail
-
connectionState
public ConnectionState connectionState()
Get the connectionState property: The connection state.- Returns:
- the connectionState value.
-
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.
-
startTime
public OffsetDateTime startTime()
Get the startTime property: The start time of the connection snapshot.- Returns:
- the startTime value.
-
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.
-
endTime
public OffsetDateTime endTime()
Get the endTime property: The end time of the connection snapshot.- Returns:
- the endTime value.
-
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.
-
evaluationState
public EvaluationState evaluationState()
Get the evaluationState property: Connectivity analysis evaluation state.- Returns:
- the evaluationState value.
-
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.
-
avgLatencyInMs
public Long avgLatencyInMs()
Get the avgLatencyInMs property: Average latency in ms.- Returns:
- the avgLatencyInMs value.
-
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.
-
minLatencyInMs
public Long minLatencyInMs()
Get the minLatencyInMs property: Minimum latency in ms.- Returns:
- the minLatencyInMs value.
-
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.
-
maxLatencyInMs
public Long maxLatencyInMs()
Get the maxLatencyInMs property: Maximum latency in ms.- Returns:
- the maxLatencyInMs value.
-
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.
-
probesSent
public Long probesSent()
Get the probesSent property: The number of sent probes.- Returns:
- the probesSent value.
-
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.
-
probesFailed
public Long probesFailed()
Get the probesFailed property: The number of failed probes.- Returns:
- the probesFailed value.
-
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.
-
hops
public List<ConnectivityHop> 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.
-
-