Class QueryExperience

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

public final class QueryExperience extends Object implements com.azure.json.JsonSerializable<QueryExperience>
Class representing a Traffic Manager HeatMap query experience properties.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of QueryExperience class.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Get the endpointId property: The id of the endpoint from the 'endpoints' array which these queries were routed to.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of QueryExperience from the JsonReader.
    Get the latency property: The latency experienced by queries originating from this location.
    int
    Get the queryCount property: The number of queries originating from this location.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.
    withEndpointId(int endpointId)
    Set the endpointId property: The id of the endpoint from the 'endpoints' array which these queries were routed to.
    Set the latency property: The latency experienced by queries originating from this location.
    withQueryCount(int queryCount)
    Set the queryCount property: The number of queries originating from this location.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • 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.
    • 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.
    • queryCount

      public int queryCount()
      Get the queryCount property: The number of queries originating from this location.
      Returns:
      the queryCount value.
    • 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.
    • latency

      public Double latency()
      Get the latency property: The latency experienced by queries originating from this location.
      Returns:
      the latency value.
    • 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.
    • 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<QueryExperience>
      Throws:
      IOException
    • fromJson

      public static QueryExperience fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the QueryExperience.