Class PerformerShift

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

@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 PerformerShift extends Object
Performer's shift that determines the availability of the resource for planning within its time window.
  • Field Details

  • Constructor Details

    • PerformerShift

      public PerformerShift()
  • Method Details

    • key

      public PerformerShift key(@Nonnull String key)
    • getKey

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

      public void setKey(@Nonnull String key)
    • availabilityTime

      public PerformerShift availabilityTime(@Nonnull TimeWindow availabilityTime)
    • getAvailabilityTime

      @Nonnull public TimeWindow getAvailabilityTime()
      Time shift window when the performer can perform work at locations and drive between locations.
      Returns:
      availabilityTime
    • setAvailabilityTime

      public void setAvailabilityTime(@Nonnull TimeWindow availabilityTime)
    • workingTime

      public PerformerShift workingTime(@Nonnull TimeWindow workingTime)
    • getWorkingTime

      @Nonnull public TimeWindow getWorkingTime()
      Working time window, when the performer can perform work at locations, must be inside the time window.
      Returns:
      workingTime
    • setWorkingTime

      public void setWorkingTime(@Nonnull TimeWindow workingTime)
    • startLocationKey

      public PerformerShift startLocationKey(@Nullable String startLocationKey)
    • getStartLocationKey

      @Nullable public String getStartLocationKey()
      Start location key. If not specified, the trip starts from the first order location.
      Returns:
      startLocationKey
    • setStartLocationKey

      public void setStartLocationKey(@Nullable String startLocationKey)
    • finishLocationKey

      public PerformerShift finishLocationKey(@Nullable String finishLocationKey)
    • getFinishLocationKey

      @Nullable public String getFinishLocationKey()
      Finish location key. If not specified, the trip finishes on the last order location.
      Returns:
      finishLocationKey
    • setFinishLocationKey

      public void setFinishLocationKey(@Nullable String finishLocationKey)
    • maxLocations

      public PerformerShift maxLocations(@Nullable Integer maxLocations)
    • getMaxLocations

      @Nullable public Integer getMaxLocations()
      Limit of the number of unique locations in one trip. If not specified or null, number of locations is not limited. minimum: 1 maximum: 1000
      Returns:
      maxLocations
    • setMaxLocations

      public void setMaxLocations(@Nullable Integer maxLocations)
    • maxStops

      public PerformerShift maxStops(@Nullable Integer maxStops)
    • getMaxStops

      @Nullable public Integer getMaxStops()
      Limit of the number of stops in one trip. If not specified or null, number of stops is not limited. minimum: 1 maximum: 1000
      Returns:
      maxStops
    • setMaxStops

      public void setMaxStops(@Nullable Integer maxStops)
    • tariff

      public PerformerShift tariff(@Nullable PerformerTariff tariff)
    • getTariff

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

      public void setTariff(@Nullable PerformerTariff tariff)
    • workAndRestRules

      public PerformerShift workAndRestRules(@Nullable WorkAndRestRules workAndRestRules)
    • getWorkAndRestRules

      @Nullable public WorkAndRestRules getWorkAndRestRules()
      Get workAndRestRules
      Returns:
      workAndRestRules
    • setWorkAndRestRules

      public void setWorkAndRestRules(@Nullable WorkAndRestRules workAndRestRules)
    • name

      public PerformerShift name(@Nullable String name)
    • getName

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

      public void setName(@Nullable String name)
    • attributes

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

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

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

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