Package com.veeroute.lss.agro.model
Class Consumer
java.lang.Object
com.veeroute.lss.agro.model.Consumer
@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 Consumer
extends Object
Grain process.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddConsumptionForecastItem(CapacityForecastElement consumptionForecastItem) addStockForecastItem(StockForecastElement stockForecastItem) consumptionForecast(List<CapacityForecastElement> consumptionForecast) booleanstatic ConsumerCreate an instance of Consumer given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Capacity forecast.Crop key.getKey()Key, unique identifier.Guaranteed balance requirement forecast.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetConsumptionForecast(List<CapacityForecastElement> consumptionForecast) voidsetCropKey(String cropKey) voidvoidsetStockForecast(List<StockForecastElement> stockForecast) stockForecast(List<StockForecastElement> stockForecast) toJson()Convert an instance of Consumer to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_KEY
- See Also:
-
SERIALIZED_NAME_CROP_KEY
- See Also:
-
SERIALIZED_NAME_CONSUMPTION_FORECAST
- See Also:
-
SERIALIZED_NAME_STOCK_FORECAST
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Consumer
public Consumer()
-
-
Method Details
-
key
-
getKey
Key, unique identifier.- Returns:
- key
-
setKey
-
cropKey
-
getCropKey
Crop key.- Returns:
- cropKey
-
setCropKey
-
consumptionForecast
-
addConsumptionForecastItem
-
getConsumptionForecast
Capacity forecast.- Returns:
- consumptionForecast
-
setConsumptionForecast
-
stockForecast
-
addStockForecastItem
-
getStockForecast
Guaranteed balance requirement forecast.- Returns:
- stockForecast
-
setStockForecast
-
putAdditionalProperty
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 propertyvalue- value of the property- Returns:
- the Consumer instance itself
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- name of the property- Returns:
- an object
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
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 Consumer
-
fromJson
Create an instance of Consumer given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Consumer
- Throws:
IOException- if the JSON string is invalid with respect to Consumer
-
toJson
Convert an instance of Consumer to an JSON string- Returns:
- JSON string
-