Class PackTask

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

@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 PackTask extends Object
Initial task.
  • Field Details

  • Constructor Details

    • PackTask

      public PackTask()
  • Method Details

    • products

      public PackTask products(@Nonnull Set<Product> products)
    • addProductsItem

      public PackTask addProductsItem(Product productsItem)
    • getProducts

      @Nonnull public Set<Product> getProducts()
      List of products.
      Returns:
      products
    • setProducts

      public void setProducts(@Nonnull Set<Product> products)
    • packages

      public PackTask packages(@Nonnull Set<ModelPackage> packages)
    • addPackagesItem

      public PackTask addPackagesItem(ModelPackage packagesItem)
    • getPackages

      @Nonnull public Set<ModelPackage> getPackages()
      List of packages. It is obligatory to have at least one package of each type (SLOT, PALLET, MIXBOX).
      Returns:
      packages
    • setPackages

      public void setPackages(@Nonnull Set<ModelPackage> packages)
    • packSettings

      public PackTask packSettings(@Nullable PackSettings packSettings)
    • getPackSettings

      @Nullable public PackSettings getPackSettings()
      Get packSettings
      Returns:
      packSettings
    • setPackSettings

      public void setPackSettings(@Nullable PackSettings packSettings)
    • datasetName

      public PackTask datasetName(@Nullable String datasetName)
    • getDatasetName

      @Nullable public String getDatasetName()
      The name of the dataset. A technical field that does not affect calculation.
      Returns:
      datasetName
    • setDatasetName

      public void setDatasetName(@Nullable String datasetName)
    • putAdditionalProperty

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

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

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