Compartilhar via


AzureReachabilityReportLatencyInfo Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.AzureReachabilityReportLatencyInfo

Implements

public final class AzureReachabilityReportLatencyInfo
implements JsonSerializable<AzureReachabilityReportLatencyInfo>

Details on latency for a time series.

Constructor Summary

Constructor Description
AzureReachabilityReportLatencyInfo()

Creates an instance of AzureReachabilityReportLatencyInfo class.

Method Summary

Modifier and Type Method and Description
static AzureReachabilityReportLatencyInfo fromJson(JsonReader jsonReader)

Reads an instance of AzureReachabilityReportLatencyInfo from the JsonReader.

Integer score()

Get the score property: The relative latency score between 1 and 100, higher values indicating a faster connection.

OffsetDateTime timestamp()

Get the timestamp property: The time stamp.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AzureReachabilityReportLatencyInfo withScore(Integer score)

Set the score property: The relative latency score between 1 and 100, higher values indicating a faster connection.

AzureReachabilityReportLatencyInfo withTimestamp(OffsetDateTime timestamp)

Set the timestamp property: The time stamp.

Methods inherited from java.lang.Object

Constructor Details

AzureReachabilityReportLatencyInfo

public AzureReachabilityReportLatencyInfo()

Creates an instance of AzureReachabilityReportLatencyInfo class.

Method Details

fromJson

public static AzureReachabilityReportLatencyInfo fromJson(JsonReader jsonReader)

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.

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.

timestamp

public OffsetDateTime timestamp()

Get the timestamp property: The time stamp.

Returns:

the timestamp value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

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.

Applies to