Package com.veeroute.lss.universal.model
Class Demand
java.lang.Object
com.veeroute.lss.universal.model.Demand
@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 Demand
extends Object
Request for a single action with a cargo (pickup / drop) or work at a location.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAttributesItem(Attribute attributesItem) addPossibleEventsItem(PossibleEvent possibleEventsItem) addTargetCargosItem(String targetCargosItem) attributes(Set<Attribute> attributes) demandType(DemandType demandType) booleanstatic DemandCreate an instance of Demand given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Attributes.Get demandTypegetKey()Demand key, unique identifier.getName()Name, information field.List of possible time windows and location keys to fulfil an order.Precedence within an order, 0 - the precedence is not taken into account.Precedence within a trip, 0 - the precedence is not taken into account.The list of cargo keys depends on the type of order in which the cargoes are located: * `PICKUP` - list of keys * `DROP` - one key * `WORK` - empty list * `PICKUP_TO_BOX` - one key * `DROP_FROM_BOX` - one keyinthashCode()possibleEvents(Set<PossibleEvent> possibleEvents) precedenceInOrder(Integer precedenceInOrder) precedenceInTrip(Integer precedenceInTrip) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetAttributes(Set<Attribute> attributes) voidsetDemandType(DemandType demandType) voidvoidvoidsetPossibleEvents(Set<PossibleEvent> possibleEvents) voidsetPrecedenceInOrder(Integer precedenceInOrder) voidsetPrecedenceInTrip(Integer precedenceInTrip) voidsetTargetCargos(Set<String> targetCargos) targetCargos(Set<String> targetCargos) toJson()Convert an instance of Demand 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_DEMAND_TYPE
- See Also:
-
SERIALIZED_NAME_TARGET_CARGOS
- See Also:
-
SERIALIZED_NAME_PRECEDENCE_IN_TRIP
- See Also:
-
SERIALIZED_NAME_PRECEDENCE_IN_ORDER
- See Also:
-
SERIALIZED_NAME_POSSIBLE_EVENTS
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_ATTRIBUTES
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Demand
public Demand()
-
-
Method Details
-
key
-
getKey
Demand key, unique identifier.- Returns:
- key
-
setKey
-
demandType
-
getDemandType
Get demandType- Returns:
- demandType
-
setDemandType
-
targetCargos
-
addTargetCargosItem
-
getTargetCargos
The list of cargo keys depends on the type of order in which the cargoes are located: * `PICKUP` - list of keys * `DROP` - one key * `WORK` - empty list * `PICKUP_TO_BOX` - one key * `DROP_FROM_BOX` - one key- Returns:
- targetCargos
-
setTargetCargos
-
precedenceInTrip
-
getPrecedenceInTrip
Precedence within a trip, 0 - the precedence is not taken into account. minimum: 0 maximum: 15001- Returns:
- precedenceInTrip
-
setPrecedenceInTrip
-
precedenceInOrder
-
getPrecedenceInOrder
Precedence within an order, 0 - the precedence is not taken into account. minimum: 0 maximum: 15001- Returns:
- precedenceInOrder
-
setPrecedenceInOrder
-
possibleEvents
-
addPossibleEventsItem
-
getPossibleEvents
List of possible time windows and location keys to fulfil an order.- Returns:
- possibleEvents
-
setPossibleEvents
-
name
-
getName
Name, information field.- Returns:
- name
-
setName
-
attributes
-
addAttributesItem
-
getAttributes
Attributes. Used to add service information.- Returns:
- attributes
-
setAttributes
-
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 Demand 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 Demand
-
fromJson
Create an instance of Demand given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Demand
- Throws:
IOException- if the JSON string is invalid with respect to Demand
-
toJson
Convert an instance of Demand to an JSON string- Returns:
- JSON string
-