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.
  • Field Details

  • Constructor Details

    • RouteLeg

      public RouteLeg()
  • Method Details

    • steps

      public RouteLeg steps(@Nonnull List<RouteStep> steps)
    • addStepsItem

      public RouteLeg addStepsItem(RouteStep stepsItem)
    • getSteps

      @Nonnull public List<RouteStep> getSteps()
      Steps required to pass a route leg.
      Returns:
      steps
    • setSteps

      public void setSteps(@Nonnull List<RouteStep> steps)
    • departureName

      public RouteLeg departureName(@Nullable String departureName)
    • getDepartureName

      @Nullable public String getDepartureName()
      Name of the departure point. Filled in if specified in the source data.
      Returns:
      departureName
    • setDepartureName

      public void setDepartureName(@Nullable String departureName)
    • destinationName

      public RouteLeg destinationName(@Nullable String destinationName)
    • getDestinationName

      @Nullable public String getDestinationName()
      Name of the destination. Filled in if specified in the source data.
      Returns:
      destinationName
    • setDestinationName

      public void setDestinationName(@Nullable String destinationName)
    • statistics

      public RouteLeg statistics(@Nonnull RouteStatistics statistics)
    • getStatistics

      @Nonnull public RouteStatistics getStatistics()
      Get statistics
      Returns:
      statistics
    • setStatistics

      public void setStatistics(@Nonnull RouteStatistics statistics)
    • putAdditionalProperty

      public RouteLeg putAdditionalProperty(String key, Object value)
      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 property
      value - value of the property
      Returns:
      the RouteLeg instance itself
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) property.
      Returns:
      a map of objects
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      Return the additional (undeclared) property with the specified name.
      Parameters:
      key - name of the property
      Returns:
      an object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      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

      public static RouteLeg fromJson(String jsonString) throws IOException
      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

      public String toJson()
      Convert an instance of RouteLeg to an JSON string
      Returns:
      JSON string