Package com.veeroute.lss.agro.model
Class Factory
java.lang.Object
com.veeroute.lss.agro.model.Factory
@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 Factory
extends Object
A production facility.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAttributesItem(Attribute attributesItem) addBunkersItem(Bunker bunkersItem) addConsumersItem(Consumer consumersItem) addDryersItem(Dryer dryersItem) attributes(Set<Attribute> attributes) booleanstatic FactoryCreate an instance of Factory given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Attributes.List of bunkers - places for storing grain and a source for consumption.List of consumers who process grain.List of dryers.getGate()The gates and weighing station ensure the process of receiving and unloading grain.getKey()Key, unique identifier.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetAttributes(Set<Attribute> attributes) voidsetBunkers(Set<Bunker> bunkers) voidsetConsumers(Set<Consumer> consumers) voidvoidvoidtoJson()Convert an instance of Factory 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_GATE
- See Also:
-
SERIALIZED_NAME_DRYERS
- See Also:
-
SERIALIZED_NAME_BUNKERS
- See Also:
-
SERIALIZED_NAME_CONSUMERS
- See Also:
-
SERIALIZED_NAME_ATTRIBUTES
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Factory
public Factory()
-
-
Method Details
-
key
-
getKey
Key, unique identifier.- Returns:
- key
-
setKey
-
gate
-
getGate
The gates and weighing station ensure the process of receiving and unloading grain.- Returns:
- gate
-
setGate
-
dryers
-
addDryersItem
-
getDryers
List of dryers.- Returns:
- dryers
-
setDryers
-
bunkers
-
addBunkersItem
-
getBunkers
List of bunkers - places for storing grain and a source for consumption.- Returns:
- bunkers
-
setBunkers
-
consumers
-
addConsumersItem
-
getConsumers
List of consumers who process grain.- Returns:
- consumers
-
setConsumers
-
attributes
-
addAttributesItem
-
getAttributes
Attributes. Used to add service information.- Returns:
- attributes
-
setAttributes
-
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 Factory 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 Factory
-
fromJson
Create an instance of Factory given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Factory
- Throws:
IOException- if the JSON string is invalid with respect to Factory
-
toJson
Convert an instance of Factory to an JSON string- Returns:
- JSON string
-