Package com.veeroute.lss.universal.model
Class Box
java.lang.Object
com.veeroute.lss.universal.model.Box
@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 Box
extends Object
A transport box capable to hold a cargo.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAttributesItem(Attribute attributesItem) attributes(Set<Attribute> attributes) compatibilities(BoxCompatibilities compatibilities) booleanstatic BoxCreate an instance of Box given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Attributes.Get capacityGet compatibilitiesgetKey()Unique box key.Get limitsinthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetAttributes(Set<Attribute> attributes) voidsetCapacity(Capacity capacity) voidsetCompatibilities(BoxCompatibilities compatibilities) voidvoidtoJson()Convert an instance of Box 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_LIMITS
- See Also:
-
SERIALIZED_NAME_ATTRIBUTES
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Box
public Box()
-
-
Method Details
-
key
-
getKey
Unique box key. Used to identify the cargo placement in boxes.- Returns:
- key
-
setKey
-
capacity
-
getCapacity
Get capacity- Returns:
- capacity
-
setCapacity
-
compatibilities
-
getCompatibilities
Get compatibilities- Returns:
- compatibilities
-
setCompatibilities
-
limits
-
getLimits
Get limits- Returns:
- limits
-
setLimits
-
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 Box 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 Box
-
fromJson
Create an instance of Box given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Box
- Throws:
IOException- if the JSON string is invalid with respect to Box
-
toJson
Convert an instance of Box to an JSON string- Returns:
- JSON string
-