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

public final class TrafficFlow extends Object implements com.azure.json.JsonSerializable<TrafficFlow>
Class representing a Traffic Manager HeatMap traffic flow properties.
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of TrafficFlow from the JsonReader.
    Get the latitude property: The approximate latitude that these queries originated from.
    Get the longitude property: The approximate longitude that these queries originated from.
    Get the queryExperiences property: The query experiences produced in this HeatMap calculation.
    Get the sourceIp property: The IP address that this query experience originated from.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.
    withLatitude(Double latitude)
    Set the latitude property: The approximate latitude that these queries originated from.
    withLongitude(Double longitude)
    Set the longitude property: The approximate longitude that these queries originated from.
    Set the queryExperiences property: The query experiences produced in this HeatMap calculation.
    withSourceIp(String sourceIp)
    Set the sourceIp property: The IP address that this query experience originated from.

    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

    • TrafficFlow

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

    • sourceIp

      public String sourceIp()
      Get the sourceIp property: The IP address that this query experience originated from.
      Returns:
      the sourceIp value.
    • withSourceIp

      public TrafficFlow withSourceIp(String sourceIp)
      Set the sourceIp property: The IP address that this query experience originated from.
      Parameters:
      sourceIp - the sourceIp value to set.
      Returns:
      the TrafficFlow object itself.
    • latitude

      public Double latitude()
      Get the latitude property: The approximate latitude that these queries originated from.
      Returns:
      the latitude value.
    • withLatitude

      public TrafficFlow withLatitude(Double latitude)
      Set the latitude property: The approximate latitude that these queries originated from.
      Parameters:
      latitude - the latitude value to set.
      Returns:
      the TrafficFlow object itself.
    • longitude

      public Double longitude()
      Get the longitude property: The approximate longitude that these queries originated from.
      Returns:
      the longitude value.
    • withLongitude

      public TrafficFlow withLongitude(Double longitude)
      Set the longitude property: The approximate longitude that these queries originated from.
      Parameters:
      longitude - the longitude value to set.
      Returns:
      the TrafficFlow object itself.
    • queryExperiences

      public List<QueryExperience> queryExperiences()
      Get the queryExperiences property: The query experiences produced in this HeatMap calculation.
      Returns:
      the queryExperiences value.
    • withQueryExperiences

      public TrafficFlow withQueryExperiences(List<QueryExperience> queryExperiences)
      Set the queryExperiences property: The query experiences produced in this HeatMap calculation.
      Parameters:
      queryExperiences - the queryExperiences value to set.
      Returns:
      the TrafficFlow 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<TrafficFlow>
      Throws:
      IOException
    • fromJson

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