Class LocationLimit

java.lang.Object
com.veeroute.lss.universal.model.LocationLimit

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2026-11-23T13:48:07.156941043+03:00[Europe/Moscow]", comments="Generator version: 7.17.0") public class LocationLimit extends Object
Limitation on the capacity of a location during a certain time period.
  • Field Details

  • Constructor Details

    • LocationLimit

      public LocationLimit()
  • Method Details

    • key

      public LocationLimit key(@Nonnull String key)
    • getKey

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

      public void setKey(@Nonnull String key)
    • timeWindow

      public LocationLimit timeWindow(@Nonnull TimeWindow timeWindow)
    • getTimeWindow

      @Nonnull public TimeWindow getTimeWindow()
      Time window for the restriction.
      Returns:
      timeWindow
    • setTimeWindow

      public void setTimeWindow(@Nonnull TimeWindow timeWindow)
    • minCargos

      public LocationLimit minCargos(@Nullable List<LocationCargosLimit> minCargos)
    • addMinCargosItem

      public LocationLimit addMinCargosItem(LocationCargosLimit minCargosItem)
    • getMinCargos

      @Nullable public List<LocationCargosLimit> getMinCargos()
      A function that describes the limitation of a location's ability to handle cargo and penalties for violating the restrictions. Penalties are cumulative independently for each qualifying part of the function.
      Returns:
      minCargos
    • setMinCargos

      public void setMinCargos(@Nullable List<LocationCargosLimit> minCargos)
    • maxCargos

      public LocationLimit maxCargos(@Nullable List<LocationCargosLimit> maxCargos)
    • addMaxCargosItem

      public LocationLimit addMaxCargosItem(LocationCargosLimit maxCargosItem)
    • getMaxCargos

      @Nullable public List<LocationCargosLimit> getMaxCargos()
      A function that describes the limitation of a location's ability to handle cargo and penalties for violating the restrictions. Penalties are cumulative independently for each qualifying part of the function.
      Returns:
      maxCargos
    • setMaxCargos

      public void setMaxCargos(@Nullable List<LocationCargosLimit> maxCargos)
    • minTransports

      public LocationLimit minTransports(@Nullable List<LocationTransportsLimit> minTransports)
    • addMinTransportsItem

      public LocationLimit addMinTransportsItem(LocationTransportsLimit minTransportsItem)
    • getMinTransports

      @Nullable public List<LocationTransportsLimit> getMinTransports()
      A function that describes the limitation of a location’s ability to serve transport and penalties for violating the restrictions. Penalties are cumulative independently for each qualifying part of the function.
      Returns:
      minTransports
    • setMinTransports

      public void setMinTransports(@Nullable List<LocationTransportsLimit> minTransports)
    • maxTransports

      public LocationLimit maxTransports(@Nullable List<LocationTransportsLimit> maxTransports)
    • addMaxTransportsItem

      public LocationLimit addMaxTransportsItem(LocationTransportsLimit maxTransportsItem)
    • getMaxTransports

      @Nullable public List<LocationTransportsLimit> getMaxTransports()
      A function that describes the limitation of a location’s ability to serve transport and penalties for violating the restrictions. Penalties are cumulative independently for each qualifying part of the function.
      Returns:
      maxTransports
    • setMaxTransports

      public void setMaxTransports(@Nullable List<LocationTransportsLimit> maxTransports)
    • putAdditionalProperty

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

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

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