Class TripState

java.lang.Object
com.veeroute.lss.studio.model.TripState

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2026-11-23T13:47:57.513559297+03:00[Europe/Moscow]", comments="Generator version: 7.17.0") public class TripState extends Object
Trip state.
  • Field Details

  • Constructor Details

    • TripState

      public TripState()
  • Method Details

    • time

      public TripState time(@Nonnull OffsetDateTime time)
    • getTime

      @Nonnull public OffsetDateTime getTime()
      Start time according to the [ISO 8601](https://tools.ietf.org/html/rfc3339#section-5.6).
      Returns:
      time
    • setTime

      public void setTime(@Nonnull OffsetDateTime time)
    • orderKey

      public TripState orderKey(@Nullable String orderKey)
    • getOrderKey

      @Nullable public String getOrderKey()
      Key of the order with which an action is taken.
      Returns:
      orderKey
    • setOrderKey

      public void setOrderKey(@Nullable String orderKey)
    • demandKey

      public TripState demandKey(@Nullable String demandKey)
    • getDemandKey

      @Nullable public String getDemandKey()
      Key of the demand with which an action is taken.
      Returns:
      demandKey
    • setDemandKey

      public void setDemandKey(@Nullable String demandKey)
    • eventKey

      public TripState eventKey(@Nullable String eventKey)
    • getEventKey

      @Nullable public String getEventKey()
      Key of the event at which an action is taken.
      Returns:
      eventKey
    • setEventKey

      public void setEventKey(@Nullable String eventKey)
    • locationKey

      public TripState locationKey(@Nullable String locationKey)
    • getLocationKey

      @Nullable public String getLocationKey()
      Key of the location at which an action is taken.
      Returns:
      locationKey
    • setLocationKey

      public void setLocationKey(@Nullable String locationKey)
    • roundtripKey

      public TripState roundtripKey(@Nullable String roundtripKey)
    • getRoundtripKey

      @Nullable public String getRoundtripKey()
      Key of the roundtrip at which an action is taken.
      Returns:
      roundtripKey
    • setRoundtripKey

      public void setRoundtripKey(@Nullable String roundtripKey)
    • flags

      public TripState flags(@Nonnull Set<TripStateFlag> flags)
    • addFlagsItem

      public TripState addFlagsItem(TripStateFlag flagsItem)
    • getFlags

      @Nonnull public Set<TripStateFlag> getFlags()
      List of flags, describing current state. Values of flags responsible for geographic location (there can be several flags at the same time): * `AROUND_LOCATION` - the performer is near the location - in the process of parking or leaving it. * `INSIDE_LOCATION` - the performer is at the location. Values of flags responsible for being in time windows (there can be several flags at the same time): * `INSIDE_WORKING_WINDOW` - the performer is inside the working time window. * `INSIDE_LOCATION_WINDOW` - the performer is inside the working time of the location. * `INSIDE_EVENT_HARD_WINDOW` - the performer is inside the hard time window. * `INSIDE_EVENT_SOFT_WINDOW` - the performer is inside the soft time window. Values of flags responsible for actions (there can be only one flag at a time): * `ON_DEMAND` - the performer has started working on the request. * `WAITING` - the performer has started waiting. * `RELOCATING` - the performer has started moving to the next stop. * `BREAK` - the performer has started a break. * `REST` - the performer has started a long rest. * `ARRIVAL` - the performer has started parking. * `DEPARTURE` - the performer has finished leaving the parking lot. The values of the flags responsible for the logical state: * `DURING_ROUNDTRIP` - the performer is making a roundtrip.
      Returns:
      flags
    • setFlags

      public void setFlags(@Nonnull Set<TripStateFlag> flags)
    • cargoActions

      public TripState cargoActions(@Nullable List<CargoAction> cargoActions)
    • addCargoActionsItem

      public TripState addCargoActionsItem(CargoAction cargoActionsItem)
    • getCargoActions

      @Nullable public List<CargoAction> getCargoActions()
      List of actions with cargo in transport at the beginning of the state.
      Returns:
      cargoActions
    • setCargoActions

      public void setCargoActions(@Nullable List<CargoAction> cargoActions)
    • distance

      public TripState distance(@Nullable Integer distance)
    • getDistance

      @Nullable public Integer getDistance()
      Cumulative distance from the start of the trip, in meters. minimum: 0 maximum: 4000000000
      Returns:
      distance
    • setDistance

      public void setDistance(@Nullable Integer distance)
    • cost

      public TripState cost(@Nullable Double cost)
    • getCost

      @Nullable public Double getCost()
      Cumulative cost from the start of the trip, calculated based on the performers' and transport tariffs. minimum: 0 maximum: 10000000000
      Returns:
      cost
    • setCost

      public void setCost(@Nullable Double cost)
    • reward

      public TripState reward(@Nullable Double reward)
    • getReward

      @Nullable public Double getReward()
      Cumulative reward from the start of the trip for orders fulfillment. minimum: 0 maximum: 10000000000
      Returns:
      reward
    • setReward

      public void setReward(@Nullable Double reward)
    • attributes

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

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

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

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