Поделиться через


QueryExperience Class

  • java.lang.Object
    • com.azure.resourcemanager.trafficmanager.models.QueryExperience

Implements

public final class QueryExperience
implements JsonSerializable<QueryExperience>

Class representing a Traffic Manager HeatMap query experience properties.

Constructor Summary

Constructor Description
QueryExperience()

Creates an instance of QueryExperience class.

Method Summary

Modifier and Type Method and Description
int endpointId()

Get the endpointId property: The id of the endpoint from the 'endpoints' array which these queries were routed to.

static QueryExperience fromJson(JsonReader jsonReader)

Reads an instance of QueryExperience from the JsonReader.

Double latency()

Get the latency property: The latency experienced by queries originating from this location.

int queryCount()

Get the queryCount property: The number of queries originating from this location.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

QueryExperience withEndpointId(int endpointId)

Set the endpointId property: The id of the endpoint from the 'endpoints' array which these queries were routed to.

QueryExperience withLatency(Double latency)

Set the latency property: The latency experienced by queries originating from this location.

QueryExperience withQueryCount(int queryCount)

Set the queryCount property: The number of queries originating from this location.

Methods inherited from java.lang.Object

Constructor Details

QueryExperience

public QueryExperience()

Creates an instance of QueryExperience class.

Method Details

endpointId

public int endpointId()

Get the endpointId property: The id of the endpoint from the 'endpoints' array which these queries were routed to.

Returns:

the endpointId value.

fromJson

public static QueryExperience fromJson(JsonReader jsonReader)

Reads an instance of QueryExperience from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of QueryExperience if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

latency

public Double latency()

Get the latency property: The latency experienced by queries originating from this location.

Returns:

the latency value.

queryCount

public int queryCount()

Get the queryCount property: The number of queries originating from this location.

Returns:

the queryCount value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withEndpointId

public QueryExperience withEndpointId(int endpointId)

Set the endpointId property: The id of the endpoint from the 'endpoints' array which these queries were routed to.

Parameters:

endpointId - the endpointId value to set.

Returns:

the QueryExperience object itself.

withLatency

public QueryExperience withLatency(Double latency)

Set the latency property: The latency experienced by queries originating from this location.

Parameters:

latency - the latency value to set.

Returns:

the QueryExperience object itself.

withQueryCount

public QueryExperience withQueryCount(int queryCount)

Set the queryCount property: The number of queries originating from this location.

Parameters:

queryCount - the queryCount value to set.

Returns:

the QueryExperience object itself.

Applies to