Class TransportShift

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

@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 TransportShift extends Object
Working shift of transport. Specifies the availability of transport for scheduling. The end of the shift resets the cargo remaining in the body after the execution of demands of the `DROP_FROM_BOX` and `PICKUP_TO_BOX` types.
  • Field Details

  • Constructor Details

    • TransportShift

      public TransportShift()
  • Method Details

    • key

      public TransportShift key(@Nonnull String key)
    • getKey

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

      public void setKey(@Nonnull String key)
    • availabilityTime

      public TransportShift availabilityTime(@Nonnull TimeWindow availabilityTime)
    • getAvailabilityTime

      @Nonnull public TimeWindow getAvailabilityTime()
      The shift time window in which the transport can move between locations and be used by the performer in work on locations.
      Returns:
      availabilityTime
    • setAvailabilityTime

      public void setAvailabilityTime(@Nonnull TimeWindow availabilityTime)
    • startLocationKey

      public TransportShift startLocationKey(@Nullable String startLocationKey)
    • getStartLocationKey

      @Nullable public String getStartLocationKey()
      Start location key. If the key is not set, then the transport path starts on the first order.
      Returns:
      startLocationKey
    • setStartLocationKey

      public void setStartLocationKey(@Nullable String startLocationKey)
    • finishLocationKey

      public TransportShift finishLocationKey(@Nullable String finishLocationKey)
    • getFinishLocationKey

      @Nullable public String getFinishLocationKey()
      Finish location key. If the key is not set, then the transport path ends at the last order.
      Returns:
      finishLocationKey
    • setFinishLocationKey

      public void setFinishLocationKey(@Nullable String finishLocationKey)
    • tariff

      public TransportShift tariff(@Nullable TransportTariff tariff)
    • getTariff

      @Nullable public TransportTariff getTariff()
      Get tariff
      Returns:
      tariff
    • setTariff

      public void setTariff(@Nullable TransportTariff tariff)
    • name

      public TransportShift name(@Nullable String name)
    • getName

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

      public void setName(@Nullable String name)
    • attributes

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

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

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

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