Class Crop

java.lang.Object
com.veeroute.lss.agro.model.Crop

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2026-11-23T13:47:31.676214391+03:00[Europe/Moscow]", comments="Generator version: 7.17.0") public class Crop extends Object
A crop.
  • Field Details

  • Constructor Details

    • Crop

      public Crop()
  • Method Details

    • key

      public Crop key(@Nonnull String key)
    • getKey

      @Nonnull public String getKey()
      Key, unique identifier.
      Returns:
      key
    • setKey

      public void setKey(@Nonnull String key)
    • baseHumidity

      public Crop baseHumidity(@Nonnull Integer baseHumidity)
    • getBaseHumidity

      @Nonnull public Integer getBaseHumidity()
      Humidity crop, in ppm (‰). minimum: 1 maximum: 999
      Returns:
      baseHumidity
    • setBaseHumidity

      public void setBaseHumidity(@Nonnull Integer baseHumidity)
    • compatibleStorageTypes

      public Crop compatibleStorageTypes(@Nullable Set<String> compatibleStorageTypes)
    • addCompatibleStorageTypesItem

      public Crop addCompatibleStorageTypesItem(String compatibleStorageTypesItem)
    • getCompatibleStorageTypes

      @Nullable public Set<String> getCompatibleStorageTypes()
      List of compatible short-term storage types.
      Returns:
      compatibleStorageTypes
    • setCompatibleStorageTypes

      public void setCompatibleStorageTypes(@Nullable Set<String> compatibleStorageTypes)
    • compatibleSiloTypes

      public Crop compatibleSiloTypes(@Nullable Set<String> compatibleSiloTypes)
    • addCompatibleSiloTypesItem

      public Crop addCompatibleSiloTypesItem(String compatibleSiloTypesItem)
    • getCompatibleSiloTypes

      @Nullable public Set<String> getCompatibleSiloTypes()
      List of compatible long-term storage types.
      Returns:
      compatibleSiloTypes
    • setCompatibleSiloTypes

      public void setCompatibleSiloTypes(@Nullable Set<String> compatibleSiloTypes)
    • attributes

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

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

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

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