Class CalculationSettings

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

@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 CalculationSettings extends Object
Calculation settings.
  • Field Details

  • Constructor Details

    • CalculationSettings

      public CalculationSettings()
  • Method Details

    • maxCalculationTime

      public CalculationSettings maxCalculationTime(@Nullable String maxCalculationTime)
    • getMaxCalculationTime

      @Nullable public String getMaxCalculationTime()
      Max calculation time. The countdown starts from the time when data is uploaded to the server and calculation starts.
      Returns:
      maxCalculationTime
    • setMaxCalculationTime

      public void setMaxCalculationTime(@Nullable String maxCalculationTime)
    • maxWaitingTime

      public CalculationSettings maxWaitingTime(@Nullable String maxWaitingTime)
    • getMaxWaitingTime

      @Nullable public String getMaxWaitingTime()
      Max calculation time. The countdown starts from the time when data is uploaded to the server.
      Returns:
      maxWaitingTime
    • setMaxWaitingTime

      public void setMaxWaitingTime(@Nullable String maxWaitingTime)
    • resultTtl

      public CalculationSettings resultTtl(@Nullable String resultTtl)
    • getResultTtl

      @Nullable public String getResultTtl()
      Calculation result lifetime. The countdown starts from the time when the calculation is completed.
      Returns:
      resultTtl
    • setResultTtl

      public void setResultTtl(@Nullable String resultTtl)
    • resultTimezone

      public CalculationSettings resultTimezone(@Nullable Integer resultTimezone)
    • getResultTimezone

      @Nullable public Integer getResultTimezone()
      Timezone. minimum: -12 maximum: 12
      Returns:
      resultTimezone
    • setResultTimezone

      public void setResultTimezone(@Nullable Integer resultTimezone)
    • treatWarningsAsErrors

      public CalculationSettings treatWarningsAsErrors(@Nullable Boolean treatWarningsAsErrors)
    • getTreatWarningsAsErrors

      @Nullable public Boolean getTreatWarningsAsErrors()
      Treat warnings as errors and do not run calculations if at least one entity contains invalid data.
      Returns:
      treatWarningsAsErrors
    • setTreatWarningsAsErrors

      public void setTreatWarningsAsErrors(@Nullable Boolean treatWarningsAsErrors)
    • precision

      public CalculationSettings precision(@Nullable Integer precision)
    • getPrecision

      @Nullable public Integer getPrecision()
      Specifies the calculation accuracy in the decimal point sequence number. It equals 3 by default, so the accuracy is 0.001. minimum: 0 maximum: 6
      Returns:
      precision
    • setPrecision

      public void setPrecision(@Nullable Integer precision)
    • workerTag

      public CalculationSettings workerTag(@Nullable String workerTag)
    • getWorkerTag

      @Nullable public String getWorkerTag()
      Calculation tag, used to select the calculation pool.
      Returns:
      workerTag
    • setWorkerTag

      public void setWorkerTag(@Nullable String workerTag)
    • putAdditionalProperty

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

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

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