Package com.veeroute.lss.packer.model
Class ModelPackage
java.lang.Object
com.veeroute.lss.packer.model.ModelPackage
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2026-11-23T13:47:46.842085694+03:00[Europe/Moscow]",
comments="Generator version: 7.17.0")
public class ModelPackage
extends Object
Package.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAttributesItem(Attribute attributesItem) attributes(Set<Attribute> attributes) bodyDimensions(Dimensions bodyDimensions) containerCoordinates(Coordinates containerCoordinates) containerDimensions(Dimensions containerDimensions) booleanstatic ModelPackageCreate an instance of ModelPackage given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Attributes.Overall dimensions of the main body of the package.The offset of the far left bottom corner of the container relative to the main body.Dimensions and max mass of the usable space for placing the products.getKey()Package key, unique identifier.getType()Get typeinthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetAttributes(Set<Attribute> attributes) voidsetBodyDimensions(Dimensions bodyDimensions) voidsetContainerCoordinates(Coordinates containerCoordinates) voidsetContainerDimensions(Dimensions containerDimensions) voidvoidsetType(PackageType type) toJson()Convert an instance of ModelPackage to an JSON stringtoString()type(PackageType type) 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_TYPE
- See Also:
-
SERIALIZED_NAME_BODY_DIMENSIONS
- See Also:
-
SERIALIZED_NAME_CONTAINER_DIMENSIONS
- See Also:
-
SERIALIZED_NAME_CONTAINER_COORDINATES
- See Also:
-
SERIALIZED_NAME_ATTRIBUTES
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ModelPackage
public ModelPackage()
-
-
Method Details
-
key
-
getKey
Package key, unique identifier.- Returns:
- key
-
setKey
-
type
-
getType
Get type- Returns:
- type
-
setType
-
bodyDimensions
-
getBodyDimensions
Overall dimensions of the main body of the package.- Returns:
- bodyDimensions
-
setBodyDimensions
-
containerDimensions
-
getContainerDimensions
Dimensions and max mass of the usable space for placing the products.- Returns:
- containerDimensions
-
setContainerDimensions
-
containerCoordinates
-
getContainerCoordinates
The offset of the far left bottom corner of the container relative to the main body.- Returns:
- containerCoordinates
-
setContainerCoordinates
-
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 ModelPackage 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 ModelPackage
-
fromJson
Create an instance of ModelPackage given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ModelPackage
- Throws:
IOException- if the JSON string is invalid with respect to ModelPackage
-
toJson
Convert an instance of ModelPackage to an JSON string- Returns:
- JSON string
-