Package com.veeroute.lss.routing.model
Class RouteLeg
java.lang.Object
com.veeroute.lss.routing.model.RouteLeg
@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 RouteLeg
extends Object
The route leg between two locations.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddStepsItem(RouteStep stepsItem) departureName(String departureName) destinationName(String destinationName) booleanstatic RouteLegCreate an instance of RouteLeg given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Name of the departure point.Name of the destination.Get statisticsgetSteps()Steps required to pass a route leg.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetDepartureName(String departureName) voidsetDestinationName(String destinationName) voidsetStatistics(RouteStatistics statistics) voidstatistics(RouteStatistics statistics) toJson()Convert an instance of RouteLeg 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_STEPS
- See Also:
-
SERIALIZED_NAME_DEPARTURE_NAME
- See Also:
-
SERIALIZED_NAME_DESTINATION_NAME
- See Also:
-
SERIALIZED_NAME_STATISTICS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
RouteLeg
public RouteLeg()
-
-
Method Details
-
steps
-
addStepsItem
-
getSteps
Steps required to pass a route leg.- Returns:
- steps
-
setSteps
-
departureName
-
getDepartureName
Name of the departure point. Filled in if specified in the source data.- Returns:
- departureName
-
setDepartureName
-
destinationName
-
getDestinationName
Name of the destination. Filled in if specified in the source data.- Returns:
- destinationName
-
setDestinationName
-
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 RouteLeg 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 RouteLeg
-
fromJson
Create an instance of RouteLeg given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of RouteLeg
- Throws:
IOException- if the JSON string is invalid with respect to RouteLeg
-
toJson
Convert an instance of RouteLeg to an JSON string- Returns:
- JSON string
-