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 Summary
ConstructorsConstructorDescriptionCreates an instance of AzureReachabilityReportLatencyInfo class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AzureReachabilityReportLatencyInfo from the JsonReader.score()Get the score property: The relative latency score between 1 and 100, higher values indicating a faster connection.Get the timestamp property: The time stamp.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Set the score property: The relative latency score between 1 and 100, higher values indicating a faster connection.withTimestamp(OffsetDateTime timestamp) Set the timestamp property: The time stamp.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
-
AzureReachabilityReportLatencyInfo
public AzureReachabilityReportLatencyInfo()Creates an instance of AzureReachabilityReportLatencyInfo class.
-
-
Method Details
-
timestamp
Get the timestamp property: The time stamp.- Returns:
- the timestamp value.
-
withTimestamp
Set the timestamp property: The time stamp.- Parameters:
timestamp- the timestamp value to set.- Returns:
- the AzureReachabilityReportLatencyInfo object itself.
-
score
Get the score property: The relative latency score between 1 and 100, higher values indicating a faster connection.- Returns:
- the score value.
-
withScore
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
- Specified by:
toJsonin interfacecom.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.
-