Class Trip

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

@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 Trip extends Object
A trip is a set of works planned to be performed by a specific performer on a specific transport, expressed through a [change in the states](#/section/description/trip-model) of the performer.
  • Field Details

  • Constructor Details

    • Trip

      public Trip()
  • Method Details

    • key

      public Trip key(@Nonnull String key)
    • getKey

      @Nonnull public String getKey()
      Trip key, unique identifier.
      Returns:
      key
    • setKey

      public void setKey(@Nonnull String key)
    • performer

      public Trip performer(@Nonnull AssignedPerformer performer)
    • getPerformer

      @Nonnull public AssignedPerformer getPerformer()
      Get performer
      Returns:
      performer
    • setPerformer

      public void setPerformer(@Nonnull AssignedPerformer performer)
    • transport

      public Trip transport(@Nonnull AssignedTransport transport)
    • getTransport

      @Nonnull public AssignedTransport getTransport()
      Get transport
      Returns:
      transport
    • setTransport

      public void setTransport(@Nonnull AssignedTransport transport)
    • states

      public Trip states(@Nonnull List<TripState> states)
    • addStatesItem

      public Trip addStatesItem(TripState statesItem)
    • getStates

      @Nonnull public List<TripState> getStates()
      List of performer's states.
      Returns:
      states
    • setStates

      public void setStates(@Nonnull List<TripState> states)
    • waitlist

      public Trip waitlist(@Nullable Set<String> waitlist)
    • addWaitlistItem

      public Trip addWaitlistItem(String waitlistItem)
    • getWaitlist

      @Nullable public Set<String> getWaitlist()
      List of order keys assigned to the performer, but not scheduled for a specific time and not taken into account in the transport load.
      Returns:
      waitlist
    • setWaitlist

      public void setWaitlist(@Nullable Set<String> waitlist)
    • name

      public Trip name(@Nullable String name)
    • getName

      @Nullable public String getName()
      Name, information field.
      Returns:
      name
    • setName

      public void setName(@Nullable String name)
    • status

      public Trip status(@Nullable TripStatus status)
    • getStatus

      @Nullable public TripStatus getStatus()
      Get status
      Returns:
      status
    • setStatus

      public void setStatus(@Nullable TripStatus status)
    • attributes

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

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

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

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