Class TripStatistics

java.lang.Object
com.veeroute.lss.monitor.model.TripStatistics

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2026-11-23T13:47:38.388455705+03:00[Europe/Moscow]", comments="Generator version: 7.17.0") public class TripStatistics extends Object
Statistics for a specific trip.
  • Field Details

  • Constructor Details

    • TripStatistics

      public TripStatistics()
  • Method Details

    • tripKey

      public TripStatistics tripKey(@Nonnull String tripKey)
    • getTripKey

      @Nonnull public String getTripKey()
      Trip key, unique identifier.
      Returns:
      tripKey
    • setTripKey

      public void setTripKey(@Nonnull String tripKey)
    • generalStatistics

      public TripStatistics generalStatistics(@Nonnull GeneralStatistics generalStatistics)
    • getGeneralStatistics

      @Nonnull public GeneralStatistics getGeneralStatistics()
      General statistics for trip.
      Returns:
      generalStatistics
    • setGeneralStatistics

      public void setGeneralStatistics(@Nonnull GeneralStatistics generalStatistics)
    • loadStatistics

      public TripStatistics loadStatistics(@Nonnull LoadStatistics loadStatistics)
    • getLoadStatistics

      @Nonnull public LoadStatistics getLoadStatistics()
      Get loadStatistics
      Returns:
      loadStatistics
    • setLoadStatistics

      public void setLoadStatistics(@Nonnull LoadStatistics loadStatistics)
    • stopStatistics

      public TripStatistics stopStatistics(@Nonnull List<StopStatistics> stopStatistics)
    • addStopStatisticsItem

      public TripStatistics addStopStatisticsItem(StopStatistics stopStatisticsItem)
    • getStopStatistics

      @Nonnull public List<StopStatistics> getStopStatistics()
      Statistics per stop during the trip.
      Returns:
      stopStatistics
    • setStopStatistics

      public void setStopStatistics(@Nonnull List<StopStatistics> stopStatistics)
    • factStopStatistics

      public TripStatistics factStopStatistics(@Nullable List<StopStatistics> factStopStatistics)
    • addFactStopStatisticsItem

      public TripStatistics addFactStopStatisticsItem(StopStatistics factStopStatisticsItem)
    • getFactStopStatistics

      @Nullable public List<StopStatistics> getFactStopStatistics()
      Statistics per stop during the trip.
      Returns:
      factStopStatistics
    • setFactStopStatistics

      public void setFactStopStatistics(@Nullable List<StopStatistics> factStopStatistics)
    • roundtripStatistics

      public TripStatistics roundtripStatistics(@Nonnull List<RoundtripStatistics> roundtripStatistics)
    • addRoundtripStatisticsItem

      public TripStatistics addRoundtripStatisticsItem(RoundtripStatistics roundtripStatisticsItem)
    • getRoundtripStatistics

      @Nonnull public List<RoundtripStatistics> getRoundtripStatistics()
      Statistics per roundtrip during the trip.
      Returns:
      roundtripStatistics
    • setRoundtripStatistics

      public void setRoundtripStatistics(@Nonnull List<RoundtripStatistics> roundtripStatistics)
    • attributes

      public TripStatistics attributes(@Nullable Set<Attribute> attributes)
    • addAttributesItem

      public TripStatistics addAttributesItem(Attribute attributesItem)
    • getAttributes

      @Nullable public Set<Attribute> getAttributes()
      Attributes. Used to add service information.
      Returns:
      attributes
    • setAttributes

      public void setAttributes(@Nullable Set<Attribute> attributes)
    • putAdditionalProperty

      public TripStatistics 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 TripStatistics 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 TripStatistics
    • fromJson

      public static TripStatistics fromJson(String jsonString) throws IOException
      Create an instance of TripStatistics given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of TripStatistics
      Throws:
      IOException - if the JSON string is invalid with respect to TripStatistics
    • toJson

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