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

  • Constructor Details

    • Product

      public Product()
  • Method Details

    • key

      public Product key(@Nonnull String key)
    • getKey

      @Nonnull public String getKey()
      Product key (SKU).
      Returns:
      key
    • setKey

      public void setKey(@Nonnull String key)
    • count

      public Product count(@Nullable Integer count)
    • getCount

      @Nullable public Integer getCount()
      Number of products. minimum: 1 maximum: 70001
      Returns:
      count
    • setCount

      public void setCount(@Nullable Integer count)
    • dimensions

      public Product dimensions(@Nonnull Dimensions dimensions)
    • getDimensions

      @Nonnull public Dimensions getDimensions()
      Outer dimensions and mass of one product.
      Returns:
      dimensions
    • setDimensions

      public void setDimensions(@Nonnull Dimensions dimensions)
    • maxPressure

      public Product maxPressure(@Nullable Integer maxPressure)
    • getMaxPressure

      @Nullable public Integer getMaxPressure()
      The maximum permissible top load that this product can withstand, in kg/m2. minimum: 0 maximum: 100000
      Returns:
      maxPressure
    • setMaxPressure

      public void setMaxPressure(@Nullable Integer maxPressure)
    • compatiblePackageKeys

      public Product compatiblePackageKeys(@Nullable Set<String> compatiblePackageKeys)
    • addCompatiblePackageKeysItem

      public Product addCompatiblePackageKeysItem(String compatiblePackageKeysItem)
    • getCompatiblePackageKeys

      @Nullable public Set<String> 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

      public void setCompatiblePackageKeys(@Nullable Set<String> compatiblePackageKeys)
    • attributes

      public Product attributes(@Nullable Set<Attribute> attributes)
    • addAttributesItem

      public Product addAttributesItem(Attribute attributesItem)
    • getAttributes

      @Nullable public Set<Attribute> getAttributes()
      Attributes. Used to add service information.
      Returns:
      attributes
    • setAttributes

      public void setAttributes(@Nullable Set<Attribute> attributes)
    • putAdditionalProperty

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

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

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