Package com.veeroute.lss.monitor.model
Class LocationLimit
java.lang.Object
com.veeroute.lss.monitor.model.LocationLimit
@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 LocationLimit
extends Object
Limitation on the capacity of a location during a certain time period.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddMaxCargosItem(LocationCargosLimit maxCargosItem) addMaxTransportsItem(LocationTransportsLimit maxTransportsItem) addMinCargosItem(LocationCargosLimit minCargosItem) addMinTransportsItem(LocationTransportsLimit minTransportsItem) booleanstatic LocationLimitCreate an instance of LocationLimit given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.getKey()Constraint key, unique identifier.A function that describes the limitation of a location's ability to handle cargo and penalties for violating the restrictions.A function that describes the limitation of a location’s ability to serve transport and penalties for violating the restrictions.A function that describes the limitation of a location's ability to handle cargo and penalties for violating the restrictions.A function that describes the limitation of a location’s ability to serve transport and penalties for violating the restrictions.Time window for the restriction.inthashCode()maxCargos(List<LocationCargosLimit> maxCargos) maxTransports(List<LocationTransportsLimit> maxTransports) minCargos(List<LocationCargosLimit> minCargos) minTransports(List<LocationTransportsLimit> minTransports) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidvoidsetMaxCargos(List<LocationCargosLimit> maxCargos) voidsetMaxTransports(List<LocationTransportsLimit> maxTransports) voidsetMinCargos(List<LocationCargosLimit> minCargos) voidsetMinTransports(List<LocationTransportsLimit> minTransports) voidsetTimeWindow(TimeWindow timeWindow) timeWindow(TimeWindow timeWindow) toJson()Convert an instance of LocationLimit to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_KEY
- See Also:
-
SERIALIZED_NAME_TIME_WINDOW
- See Also:
-
SERIALIZED_NAME_MIN_CARGOS
- See Also:
-
SERIALIZED_NAME_MAX_CARGOS
- See Also:
-
SERIALIZED_NAME_MIN_TRANSPORTS
- See Also:
-
SERIALIZED_NAME_MAX_TRANSPORTS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
LocationLimit
public LocationLimit()
-
-
Method Details
-
key
-
getKey
Constraint key, unique identifier.- Returns:
- key
-
setKey
-
timeWindow
-
getTimeWindow
Time window for the restriction.- Returns:
- timeWindow
-
setTimeWindow
-
minCargos
-
addMinCargosItem
-
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
-
maxCargos
-
addMaxCargosItem
-
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
-
minTransports
-
addMinTransportsItem
-
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
-
maxTransports
-
addMaxTransportsItem
-
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
-
putAdditionalProperty
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 propertyvalue- value of the property- Returns:
- the LocationLimit instance itself
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- name of the property- Returns:
- an object
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
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
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
Convert an instance of LocationLimit to an JSON string- Returns:
- JSON string
-