Class AzureReachabilityReportLatencyInfo

java.lang.Object
com.azure.resourcemanager.network.models.AzureReachabilityReportLatencyInfo
All Implemented Interfaces:
com.azure.json.JsonSerializable<AzureReachabilityReportLatencyInfo>

public final class AzureReachabilityReportLatencyInfo extends Object implements com.azure.json.JsonSerializable<AzureReachabilityReportLatencyInfo>
Details on latency for a time series.
  • Constructor Details

    • AzureReachabilityReportLatencyInfo

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

    • timestamp

      public OffsetDateTime timestamp()
      Get the timestamp property: The time stamp.
      Returns:
      the timestamp value.
    • withTimestamp

      public AzureReachabilityReportLatencyInfo withTimestamp(OffsetDateTime timestamp)
      Set the timestamp property: The time stamp.
      Parameters:
      timestamp - the timestamp value to set.
      Returns:
      the AzureReachabilityReportLatencyInfo object itself.
    • score

      public Integer score()
      Get the score property: The relative latency score between 1 and 100, higher values indicating a faster connection.
      Returns:
      the score value.
    • withScore

      public AzureReachabilityReportLatencyInfo withScore(Integer score)
      Set the score property: The relative latency score between 1 and 100, higher values indicating a faster connection.
      Parameters:
      score - the score value to set.
      Returns:
      the AzureReachabilityReportLatencyInfo object itself.
    • 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<AzureReachabilityReportLatencyInfo>
      Throws:
      IOException
    • fromJson

      public static AzureReachabilityReportLatencyInfo fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of AzureReachabilityReportLatencyInfo from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of AzureReachabilityReportLatencyInfo 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 AzureReachabilityReportLatencyInfo.