Package com.veeroute.lss.monitor.model
Class Order
java.lang.Object
com.veeroute.lss.monitor.model.Order
@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 Order
extends Object
The order for delivery/transportation, contains a list of demands.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAttributesItem(Attribute attributesItem) addCargosItem(Cargo cargosItem) addDemandsItem(Demand demandsItem) attributes(Set<Attribute> attributes) compatibilities(OrderCompatibilities compatibilities) booleanstatic OrderCreate an instance of Order given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Attributes.The list of cargoes referred to by the demands of this order.Get compatibilitiesDemands list.getKey()Order key, unique identifier.getName()Name, information field.Get statusinthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetAttributes(Set<Attribute> attributes) voidvoidsetCompatibilities(OrderCompatibilities compatibilities) voidsetDemands(Set<Demand> demands) voidvoidvoidsetStatus(OrderStatus status) status(OrderStatus status) toJson()Convert an instance of Order 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_DEMANDS
- See Also:
-
SERIALIZED_NAME_CARGOS
- See Also:
-
SERIALIZED_NAME_COMPATIBILITIES
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_ATTRIBUTES
- See Also:
-
SERIALIZED_NAME_STATUS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Order
public Order()
-
-
Method Details
-
key
-
getKey
Order key, unique identifier.- Returns:
- key
-
setKey
-
demands
-
addDemandsItem
-
getDemands
Demands list.- Returns:
- demands
-
setDemands
-
cargos
-
addCargosItem
-
getCargos
The list of cargoes referred to by the demands of this order. The list must be empty if all demands in the order are of type `WORK`.- Returns:
- cargos
-
setCargos
-
compatibilities
-
getCompatibilities
Get compatibilities- Returns:
- compatibilities
-
setCompatibilities
-
name
-
getName
Name, information field.- Returns:
- name
-
setName
-
attributes
-
addAttributesItem
-
getAttributes
Attributes. Used to add service information.- Returns:
- attributes
-
setAttributes
-
status
-
getStatus
Get status- Returns:
- status
-
setStatus
-
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 Order 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 Order
-
fromJson
Create an instance of Order given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Order
- Throws:
IOException- if the JSON string is invalid with respect to Order
-
toJson
Convert an instance of Order to an JSON string- Returns:
- JSON string
-