Class AgroPlanTask

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

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

  • Constructor Details

    • AgroPlanTask

      public AgroPlanTask()
  • Method Details

    • crops

      public AgroPlanTask crops(@Nonnull Set<Crop> crops)
    • addCropsItem

      public AgroPlanTask addCropsItem(Crop cropsItem)
    • getCrops

      @Nonnull public Set<Crop> getCrops()
      List of crops.
      Returns:
      crops
    • setCrops

      public void setCrops(@Nonnull Set<Crop> crops)
    • fields

      public AgroPlanTask fields(@Nonnull Set<Field> fields)
    • addFieldsItem

      public AgroPlanTask addFieldsItem(Field fieldsItem)
    • getFields

      @Nonnull public Set<Field> getFields()
      List of fields.
      Returns:
      fields
    • setFields

      public void setFields(@Nonnull Set<Field> fields)
    • elevators

      public AgroPlanTask elevators(@Nullable Set<Elevator> elevators)
    • addElevatorsItem

      public AgroPlanTask addElevatorsItem(Elevator elevatorsItem)
    • getElevators

      @Nullable public Set<Elevator> getElevators()
      List of elevators.
      Returns:
      elevators
    • setElevators

      public void setElevators(@Nullable Set<Elevator> elevators)
    • factories

      public AgroPlanTask factories(@Nonnull Set<Factory> factories)
    • addFactoriesItem

      public AgroPlanTask addFactoriesItem(Factory factoriesItem)
    • getFactories

      @Nonnull public Set<Factory> getFactories()
      List of factories.
      Returns:
      factories
    • setFactories

      public void setFactories(@Nonnull Set<Factory> factories)
    • markets

      public AgroPlanTask markets(@Nonnull Set<Market> markets)
    • addMarketsItem

      public AgroPlanTask addMarketsItem(Market marketsItem)
    • getMarkets

      @Nonnull public Set<Market> getMarkets()
      List of markets.
      Returns:
      markets
    • setMarkets

      public void setMarkets(@Nonnull Set<Market> markets)
    • movementMatrix

      public AgroPlanTask movementMatrix(@Nonnull Set<MovementMatrixElement> movementMatrix)
    • addMovementMatrixItem

      public AgroPlanTask addMovementMatrixItem(MovementMatrixElement movementMatrixItem)
    • getMovementMatrix

      @Nonnull public Set<MovementMatrixElement> getMovementMatrix()
      Matrix describing the cost (in kilometers and monetary units) of moving grain between objects (in both directions). If there is no corresponding entry in the matrix between the objects, the movement of grain between them is considered impossible.
      Returns:
      movementMatrix
    • setMovementMatrix

      public void setMovementMatrix(@Nonnull Set<MovementMatrixElement> movementMatrix)
    • leftovers

      public AgroPlanTask leftovers(@Nullable List<Leftover> leftovers)
    • addLeftoversItem

      public AgroPlanTask addLeftoversItem(Leftover leftoversItem)
    • getLeftovers

      @Nullable public List<Leftover> getLeftovers()
      List of leftovers.
      Returns:
      leftovers
    • setLeftovers

      public void setLeftovers(@Nullable List<Leftover> leftovers)
    • planSettings

      public AgroPlanTask planSettings(@Nonnull AgroPlanSettings planSettings)
    • getPlanSettings

      @Nonnull public AgroPlanSettings getPlanSettings()
      Get planSettings
      Returns:
      planSettings
    • setPlanSettings

      public void setPlanSettings(@Nonnull AgroPlanSettings planSettings)
    • datasetName

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

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

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