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 Details

    • ConnectionStateSnapshot

      public ConnectionStateSnapshot()
      Creates an instance of ConnectionStateSnapshot class.
  • Method Details

    • 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.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.