Class TrafficFlow
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 -
Method Summary
Modifier and TypeMethodDescriptionstatic TrafficFlowfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of TrafficFlow from the JsonReader.latitude()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.sourceIp()Get the sourceIp property: The IP address that this query experience originated from.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()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.withQueryExperiences(List<QueryExperience> queryExperiences) 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, waitMethods 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
Get the sourceIp property: The IP address that this query experience originated from.- Returns:
- the sourceIp value.
-
withSourceIp
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
Get the latitude property: The approximate latitude that these queries originated from.- Returns:
- the latitude value.
-
withLatitude
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
Get the longitude property: The approximate longitude that these queries originated from.- Returns:
- the longitude value.
-
withLongitude
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
Get the queryExperiences property: The query experiences produced in this HeatMap calculation.- Returns:
- the queryExperiences value.
-
withQueryExperiences
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
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<TrafficFlow>- Throws:
IOException
-
fromJson
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.
-