Package com.veeroute.lss.agro.model
Class Leftover
java.lang.Object
com.veeroute.lss.agro.model.Leftover
@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 Leftover
extends Object
A leftover.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic LeftoverCreate an instance of Leftover given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Weight, in tn.Crop key.Humidity crop, in ppm (‰).Target storage key.Target key.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidvoidsetCropKey(String cropKey) voidsetHumidity(Integer humidity) voidsetTargetDetailKey(String targetDetailKey) voidsetTargetKey(String targetKey) targetDetailKey(String targetDetailKey) toJson()Convert an instance of Leftover 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_CROP_KEY
- See Also:
-
SERIALIZED_NAME_HUMIDITY
- See Also:
-
SERIALIZED_NAME_TARGET_KEY
- See Also:
-
SERIALIZED_NAME_TARGET_DETAIL_KEY
- See Also:
-
SERIALIZED_NAME_AMOUNT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Leftover
public Leftover()
-
-
Method Details
-
cropKey
-
getCropKey
Crop key.- Returns:
- cropKey
-
setCropKey
-
humidity
-
getHumidity
Humidity crop, in ppm (‰). minimum: 1 maximum: 999- Returns:
- humidity
-
setHumidity
-
targetKey
-
getTargetKey
Target key.- Returns:
- targetKey
-
setTargetKey
-
targetDetailKey
-
getTargetDetailKey
Target storage key.- Returns:
- targetDetailKey
-
setTargetDetailKey
-
amount
-
getAmount
Weight, in tn. minimum: 0 maximum: 10000000- Returns:
- amount
-
setAmount
-
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 Leftover 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 Leftover
-
fromJson
Create an instance of Leftover given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Leftover
- Throws:
IOException- if the JSON string is invalid with respect to Leftover
-
toJson
Convert an instance of Leftover to an JSON string- Returns:
- JSON string
-