Package com.veeroute.lss.routing.model
Class Route
java.lang.Object
com.veeroute.lss.routing.model.Route
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2026-11-23T13:47:52.805996699+03:00[Europe/Moscow]",
comments="Generator version: 7.17.0")
public class Route
extends Object
Information about the planned route.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddLegsItem(RouteLeg legsItem) booleanstatic RouteCreate an instance of Route given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.getLegs()Route segments between locations.Get statisticsinthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidvoidsetStatistics(RouteStatistics statistics) statistics(RouteStatistics statistics) toJson()Convert an instance of Route to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_LEGS
- See Also:
-
SERIALIZED_NAME_STATISTICS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Route
public Route()
-
-
Method Details
-
legs
-
addLegsItem
-
getLegs
Route segments between locations.- Returns:
- legs
-
setLegs
-
statistics
-
getStatistics
Get statistics- Returns:
- statistics
-
setStatistics
-
putAdditionalProperty
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- name of the propertyvalue- value of the property- Returns:
- the Route instance itself
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- name of the property- Returns:
- an object
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to Route
-
fromJson
Create an instance of Route given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Route
- Throws:
IOException- if the JSON string is invalid with respect to Route
-
toJson
Convert an instance of Route to an JSON string- Returns:
- JSON string
-