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.
  • Field Details

  • Constructor Details

    • PackageStatistics

      public PackageStatistics()
  • Method Details

    • packageKey

      public PackageStatistics packageKey(@Nonnull String packageKey)
    • getPackageKey

      @Nonnull public String getPackageKey()
      Package key, unique identifier.
      Returns:
      packageKey
    • setPackageKey

      public void setPackageKey(@Nonnull String packageKey)
    • packageType

      public PackageStatistics packageType(@Nonnull PackageType packageType)
    • getPackageType

      @Nonnull public PackageType getPackageType()
      Get packageType
      Returns:
      packageType
    • setPackageType

      public void setPackageType(@Nonnull PackageType packageType)
    • count

      public PackageStatistics count(@Nonnull Integer count)
    • getCount

      @Nonnull public Integer getCount()
      The total number of packages. minimum: 0 maximum: 700001
      Returns:
      count
    • setCount

      public void setCount(@Nonnull Integer count)
    • maxContainerMass

      public PackageStatistics maxContainerMass(@Nonnull Double maxContainerMass)
    • getMaxContainerMass

      @Nonnull public Double 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

      public void setMaxContainerMass(@Nonnull Double maxContainerMass)
    • maxContainerVolume

      public PackageStatistics maxContainerVolume(@Nonnull Double maxContainerVolume)
    • getMaxContainerVolume

      @Nonnull public Double 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

      public void setMaxContainerVolume(@Nonnull Double maxContainerVolume)
    • utilizationByMass

      public PackageStatistics utilizationByMass(@Nonnull Double utilizationByMass)
    • getUtilizationByMass

      @Nonnull public Double 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

      public void setUtilizationByMass(@Nonnull Double utilizationByMass)
    • utilizationByVolume

      public PackageStatistics utilizationByVolume(@Nonnull Double utilizationByVolume)
    • getUtilizationByVolume

      @Nonnull public Double 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

      public void setUtilizationByVolume(@Nonnull Double utilizationByVolume)
    • putAdditionalProperty

      public PackageStatistics putAdditionalProperty(String key, Object value)
      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 property
      value - value of the property
      Returns:
      the PackageStatistics instance itself
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) property.
      Returns:
      a map of objects
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      Return the additional (undeclared) property with the specified name.
      Parameters:
      key - name of the property
      Returns:
      an object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      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

      public static PackageStatistics fromJson(String jsonString) throws IOException
      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

      public String toJson()
      Convert an instance of PackageStatistics to an JSON string
      Returns:
      JSON string