Package com.veeroute.lss.packer.model
Class PackageStatistics
java.lang.Object
com.veeroute.lss.packer.model.PackageStatistics
@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 PackageStatistics
extends Object
Statistics for package.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic PackageStatisticsCreate an instance of PackageStatistics given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.getCount()The total number of packages.The maximum weight of goods that this package can hold (in total for all packages of the specified key and type), in kilograms.The maximum volume of goods that this package can hold (total for all packages of the specified key and type), in cubic meters.Package key, unique identifier.Get packageTypeUtilization by mass (in fractions) - the ratio of the loaded mass to the maximum possible (excluding weight of packages).Utilization by volume (in fractions) - the ratio of the loaded volume to the maximum possible (excluding volume of packages).inthashCode()maxContainerMass(Double maxContainerMass) maxContainerVolume(Double maxContainerVolume) packageKey(String packageKey) packageType(PackageType packageType) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidvoidsetMaxContainerMass(Double maxContainerMass) voidsetMaxContainerVolume(Double maxContainerVolume) voidsetPackageKey(String packageKey) voidsetPackageType(PackageType packageType) voidsetUtilizationByMass(Double utilizationByMass) voidsetUtilizationByVolume(Double utilizationByVolume) toJson()Convert an instance of PackageStatistics to an JSON stringtoString()utilizationByMass(Double utilizationByMass) utilizationByVolume(Double utilizationByVolume) static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_PACKAGE_KEY
- See Also:
-
SERIALIZED_NAME_PACKAGE_TYPE
- See Also:
-
SERIALIZED_NAME_COUNT
- See Also:
-
SERIALIZED_NAME_MAX_CONTAINER_MASS
- See Also:
-
SERIALIZED_NAME_MAX_CONTAINER_VOLUME
- See Also:
-
SERIALIZED_NAME_UTILIZATION_BY_MASS
- See Also:
-
SERIALIZED_NAME_UTILIZATION_BY_VOLUME
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
PackageStatistics
public PackageStatistics()
-
-
Method Details
-
packageKey
-
getPackageKey
Package key, unique identifier.- Returns:
- packageKey
-
setPackageKey
-
packageType
-
getPackageType
Get packageType- Returns:
- packageType
-
setPackageType
-
count
-
getCount
The total number of packages. minimum: 0 maximum: 700001- Returns:
- count
-
setCount
-
maxContainerMass
-
getMaxContainerMass
The maximum weight of goods that this package can hold (in total for all packages of the specified key and type), in kilograms. minimum: 0 maximum: 1000000- Returns:
- maxContainerMass
-
setMaxContainerMass
-
maxContainerVolume
-
getMaxContainerVolume
The maximum volume of goods that this package can hold (total for all packages of the specified key and type), in cubic meters. minimum: 0 maximum: 1000000- Returns:
- maxContainerVolume
-
setMaxContainerVolume
-
utilizationByMass
-
getUtilizationByMass
Utilization by mass (in fractions) - the ratio of the loaded mass to the maximum possible (excluding weight of packages). minimum: 0 maximum: 1- Returns:
- utilizationByMass
-
setUtilizationByMass
-
utilizationByVolume
-
getUtilizationByVolume
Utilization by volume (in fractions) - the ratio of the loaded volume to the maximum possible (excluding volume of packages). minimum: 0 maximum: 1- Returns:
- utilizationByVolume
-
setUtilizationByVolume
-
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 PackageStatistics 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 PackageStatistics
-
fromJson
Create an instance of PackageStatistics given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PackageStatistics
- Throws:
IOException- if the JSON string is invalid with respect to PackageStatistics
-
toJson
Convert an instance of PackageStatistics to an JSON string- Returns:
- JSON string
-