Package com.veeroute.lss.monitor.model
Class Cargo
java.lang.Object
com.veeroute.lss.monitor.model.Cargo
@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 Cargo
extends Object
Cargo. Regardless of capacity, cargo can only move inside the transport box.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAttributesItem(Attribute attributesItem) attributes(Set<Attribute> attributes) compatibilities(CargoCompatibilities compatibilities) booleanstatic CargoCreate an instance of Cargo given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Attributes.Get capacityGet compatibilitiesGet invoicegetKey()Cargo key, unique identifier.The key of the transport box in which the cargo is already located.inthashCode()invoice(CargoInvoice invoice) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetAttributes(Set<Attribute> attributes) voidsetCapacity(Capacity capacity) voidsetCompatibilities(CargoCompatibilities compatibilities) voidsetInvoice(CargoInvoice invoice) voidvoidsetTargetBoxKey(String targetBoxKey) targetBoxKey(String targetBoxKey) toJson()Convert an instance of Cargo 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_CAPACITY
- See Also:
-
SERIALIZED_NAME_COMPATIBILITIES
- See Also:
-
SERIALIZED_NAME_TARGET_BOX_KEY
- See Also:
-
SERIALIZED_NAME_INVOICE
- See Also:
-
SERIALIZED_NAME_ATTRIBUTES
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Cargo
public Cargo()
-
-
Method Details
-
key
-
getKey
Cargo key, unique identifier.- Returns:
- key
-
setKey
-
capacity
-
getCapacity
Get capacity- Returns:
- capacity
-
setCapacity
-
compatibilities
-
getCompatibilities
Get compatibilities- Returns:
- compatibilities
-
setCompatibilities
-
targetBoxKey
-
getTargetBoxKey
The key of the transport box in which the cargo is already located. Applicable only for cargo that is in the order with the type `DROP_FROM_BOX`. For other order types, the key must be empty.- Returns:
- targetBoxKey
-
setTargetBoxKey
-
invoice
-
getInvoice
Get invoice- Returns:
- invoice
-
setInvoice
-
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 Cargo 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 Cargo
-
fromJson
Create an instance of Cargo given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Cargo
- Throws:
IOException- if the JSON string is invalid with respect to Cargo
-
toJson
Convert an instance of Cargo to an JSON string- Returns:
- JSON string
-