Class CargoCompatibilities

java.lang.Object
com.veeroute.lss.universal.model.CargoCompatibilities

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2026-11-23T13:48:07.156941043+03:00[Europe/Moscow]", comments="Generator version: 7.17.0") public class CargoCompatibilities extends Object
Compatibilities of [the cargo with the transport box and other cargos](#/section/description/compatibilities).
  • Field Details

  • Constructor Details

    • CargoCompatibilities

      public CargoCompatibilities()
  • Method Details

    • width

      public CargoCompatibilities width(@Nullable Double width)
    • getWidth

      @Nullable public Double getWidth()
      Width in meters, used to check the transport box capacity. minimum: 0 maximum: 1000000
      Returns:
      width
    • setWidth

      public void setWidth(@Nullable Double width)
    • height

      public CargoCompatibilities height(@Nullable Double height)
    • getHeight

      @Nullable public Double getHeight()
      Height in meters, used to check the transport box capacity. minimum: 0 maximum: 1000000
      Returns:
      height
    • setHeight

      public void setHeight(@Nullable Double height)
    • length

      public CargoCompatibilities length(@Nullable Double length)
    • getLength

      @Nullable public Double getLength()
      Length in meters, used to check the transport box capacity. minimum: 0 maximum: 1000000
      Returns:
      length
    • setLength

      public void setLength(@Nullable Double length)
    • rotation

      public CargoCompatibilities rotation(@Nullable Set<CargoRotationType> rotation)
    • addRotationItem

      public CargoCompatibilities addRotationItem(CargoRotationType rotationItem)
    • getRotation

      @Nullable public Set<CargoRotationType> getRotation()
      List of possibilities of a object rotations (90 degree step): * `ALL` - can rotate by any axis * `YAW` - can yaw * `PITCH` - can pitch * `ROLL` - can roll Empty list means object rotations is prohibited. More about [cargo placement](#/section/description/cargo-placement-in-the-box).
      Returns:
      rotation
    • setRotation

      public void setRotation(@Nullable Set<CargoRotationType> rotation)
    • boxRestrictions

      public CargoCompatibilities boxRestrictions(@Nullable Set<String> boxRestrictions)
    • addBoxRestrictionsItem

      public CargoCompatibilities addBoxRestrictionsItem(String boxRestrictionsItem)
    • getBoxRestrictions

      @Nullable public Set<String> getBoxRestrictions()
      A list of tags that define a property or requirement.
      Returns:
      boxRestrictions
    • setBoxRestrictions

      public void setBoxRestrictions(@Nullable Set<String> boxRestrictions)
    • cargoFeatures

      public CargoCompatibilities cargoFeatures(@Nullable Set<String> cargoFeatures)
    • addCargoFeaturesItem

      public CargoCompatibilities addCargoFeaturesItem(String cargoFeaturesItem)
    • getCargoFeatures

      @Nullable public Set<String> getCargoFeatures()
      A list of tags that define a property or requirement.
      Returns:
      cargoFeatures
    • setCargoFeatures

      public void setCargoFeatures(@Nullable Set<String> cargoFeatures)
    • cargoRestrictions

      public CargoCompatibilities cargoRestrictions(@Nullable Set<String> cargoRestrictions)
    • addCargoRestrictionsItem

      public CargoCompatibilities addCargoRestrictionsItem(String cargoRestrictionsItem)
    • getCargoRestrictions

      @Nullable public Set<String> getCargoRestrictions()
      A list of tags that define a property or requirement.
      Returns:
      cargoRestrictions
    • setCargoRestrictions

      public void setCargoRestrictions(@Nullable Set<String> cargoRestrictions)
    • putAdditionalProperty

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

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

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