Class PackStatistics

java.lang.Object
com.veeroute.lss.packer.model.PackStatistics

@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 PackStatistics extends Object
General statistics for packing scheme.
  • Field Details

  • Constructor Details

    • PackStatistics

      public PackStatistics()
  • Method Details

    • productsCount

      public PackStatistics productsCount(@Nonnull Integer productsCount)
    • getProductsCount

      @Nonnull public Integer getProductsCount()
      The total number of products (taking into account the number of goods in one group). minimum: 0 maximum: 700001
      Returns:
      productsCount
    • setProductsCount

      public void setProductsCount(@Nonnull Integer productsCount)
    • packagesCount

      public PackStatistics packagesCount(@Nonnull Integer packagesCount)
    • getPackagesCount

      @Nonnull public Integer getPackagesCount()
      The total number of packages. minimum: 0 maximum: 700001
      Returns:
      packagesCount
    • setPackagesCount

      public void setPackagesCount(@Nonnull Integer packagesCount)
    • totalMass

      public PackStatistics totalMass(@Nonnull Double totalMass)
    • getTotalMass

      @Nonnull public Double getTotalMass()
      Total weight in kilograms. minimum: 0 maximum: 1000000
      Returns:
      totalMass
    • setTotalMass

      public void setTotalMass(@Nonnull Double totalMass)
    • totalVolume

      public PackStatistics totalVolume(@Nonnull Double totalVolume)
    • getTotalVolume

      @Nonnull public Double getTotalVolume()
      The total volume of all packed goods in cubic meters. minimum: 0 maximum: 1000000
      Returns:
      totalVolume
    • setTotalVolume

      public void setTotalVolume(@Nonnull Double totalVolume)
    • packageStatistics

      public PackStatistics packageStatistics(@Nonnull Set<PackageStatistics> packageStatistics)
    • addPackageStatisticsItem

      public PackStatistics addPackageStatisticsItem(PackageStatistics packageStatisticsItem)
    • getPackageStatistics

      @Nonnull public Set<PackageStatistics> getPackageStatistics()
      Statistics on used packages.
      Returns:
      packageStatistics
    • setPackageStatistics

      public void setPackageStatistics(@Nonnull Set<PackageStatistics> packageStatistics)
    • putAdditionalProperty

      public PackStatistics 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 PackStatistics 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 PackStatistics
    • fromJson

      public static PackStatistics fromJson(String jsonString) throws IOException
      Create an instance of PackStatistics given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of PackStatistics
      Throws:
      IOException - if the JSON string is invalid with respect to PackStatistics
    • toJson

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