Compartilhar via


TrafficFlow Class

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

Implements

public final class TrafficFlow
implements JsonSerializable<TrafficFlow>

Class representing a Traffic Manager HeatMap traffic flow properties.

Constructor Summary

Constructor Description
TrafficFlow()

Creates an instance of TrafficFlow class.

Method Summary

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

Reads an instance of TrafficFlow from the JsonReader.

Double latitude()

Get the latitude property: The approximate latitude that these queries originated from.

Double longitude()

Get the longitude property: The approximate longitude that these queries originated from.

List<QueryExperience> queryExperiences()

Get the queryExperiences property: The query experiences produced in this HeatMap calculation.

String sourceIp()

Get the sourceIp property: The IP address that this query experience originated from.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

TrafficFlow withLatitude(Double latitude)

Set the latitude property: The approximate latitude that these queries originated from.

TrafficFlow withLongitude(Double longitude)

Set the longitude property: The approximate longitude that these queries originated from.

TrafficFlow withQueryExperiences(List<QueryExperience> queryExperiences)

Set the queryExperiences property: The query experiences produced in this HeatMap calculation.

TrafficFlow withSourceIp(String sourceIp)

Set the sourceIp property: The IP address that this query experience originated from.

Methods inherited from java.lang.Object

Constructor Details

TrafficFlow

public TrafficFlow()

Creates an instance of TrafficFlow class.

Method Details

fromJson

public static TrafficFlow fromJson(JsonReader jsonReader)

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.

latitude

public Double latitude()

Get the latitude property: The approximate latitude that these queries originated from.

Returns:

the latitude value.

longitude

public Double longitude()

Get the longitude property: The approximate longitude that these queries originated from.

Returns:

the longitude value.

queryExperiences

public List queryExperiences()

Get the queryExperiences property: The query experiences produced in this HeatMap calculation.

Returns:

the queryExperiences value.

sourceIp

public String sourceIp()

Get the sourceIp property: The IP address that this query experience originated from.

Returns:

the sourceIp value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

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.

withQueryExperiences

public TrafficFlow withQueryExperiences(List 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.

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.

Applies to