Package com.veeroute.lss.packer.model
Class Product
java.lang.Object
com.veeroute.lss.packer.model.Product
@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 Product
extends Object
Product. Can be rotated 90 degrees around the vertical axis.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAttributesItem(Attribute attributesItem) addCompatiblePackageKeysItem(String compatiblePackageKeysItem) attributes(Set<Attribute> attributes) compatiblePackageKeys(Set<String> compatiblePackageKeys) dimensions(Dimensions dimensions) booleanstatic ProductCreate an instance of Product given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Attributes.List of keys of compatible packages.getCount()Number of products.Outer dimensions and mass of one product.getKey()Product key (SKU).The maximum permissible top load that this product can withstand, in kg/m2.inthashCode()maxPressure(Integer maxPressure) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetAttributes(Set<Attribute> attributes) voidsetCompatiblePackageKeys(Set<String> compatiblePackageKeys) voidvoidsetDimensions(Dimensions dimensions) voidvoidsetMaxPressure(Integer maxPressure) toJson()Convert an instance of Product 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_COUNT
- See Also:
-
SERIALIZED_NAME_DIMENSIONS
- See Also:
-
SERIALIZED_NAME_MAX_PRESSURE
- See Also:
-
SERIALIZED_NAME_COMPATIBLE_PACKAGE_KEYS
- See Also:
-
SERIALIZED_NAME_ATTRIBUTES
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Product
public Product()
-
-
Method Details
-
key
-
getKey
Product key (SKU).- Returns:
- key
-
setKey
-
count
-
getCount
Number of products. minimum: 1 maximum: 70001- Returns:
- count
-
setCount
-
dimensions
-
getDimensions
Outer dimensions and mass of one product.- Returns:
- dimensions
-
setDimensions
-
maxPressure
-
getMaxPressure
The maximum permissible top load that this product can withstand, in kg/m2. minimum: 0 maximum: 100000- Returns:
- maxPressure
-
setMaxPressure
-
compatiblePackageKeys
-
addCompatiblePackageKeysItem
-
getCompatiblePackageKeys
List of keys of compatible packages. If the list is empty, then all packages are considered compatible. The list must be either empty or must contain the keys of all mixboxes.- Returns:
- compatiblePackageKeys
-
setCompatiblePackageKeys
-
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 Product 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 Product
-
fromJson
Create an instance of Product given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Product
- Throws:
IOException- if the JSON string is invalid with respect to Product
-
toJson
Convert an instance of Product to an JSON string- Returns:
- JSON string
-