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.
  • Field Details

  • Constructor Details

    • Factory

      public Factory()
  • Method Details

    • key

      public Factory key(@Nonnull String key)
    • getKey

      @Nonnull public String getKey()
      Key, unique identifier.
      Returns:
      key
    • setKey

      public void setKey(@Nonnull String key)
    • gate

      public Factory gate(@Nonnull Gate gate)
    • getGate

      @Nonnull public Gate getGate()
      The gates and weighing station ensure the process of receiving and unloading grain.
      Returns:
      gate
    • setGate

      public void setGate(@Nonnull Gate gate)
    • dryers

      public Factory dryers(@Nullable Set<Dryer> dryers)
    • addDryersItem

      public Factory addDryersItem(Dryer dryersItem)
    • getDryers

      @Nullable public Set<Dryer> getDryers()
      List of dryers.
      Returns:
      dryers
    • setDryers

      public void setDryers(@Nullable Set<Dryer> dryers)
    • bunkers

      public Factory bunkers(@Nonnull Set<Bunker> bunkers)
    • addBunkersItem

      public Factory addBunkersItem(Bunker bunkersItem)
    • getBunkers

      @Nonnull public Set<Bunker> getBunkers()
      List of bunkers - places for storing grain and a source for consumption.
      Returns:
      bunkers
    • setBunkers

      public void setBunkers(@Nonnull Set<Bunker> bunkers)
    • consumers

      public Factory consumers(@Nonnull Set<Consumer> consumers)
    • addConsumersItem

      public Factory addConsumersItem(Consumer consumersItem)
    • getConsumers

      @Nonnull public Set<Consumer> getConsumers()
      List of consumers who process grain.
      Returns:
      consumers
    • setConsumers

      public void setConsumers(@Nonnull Set<Consumer> consumers)
    • attributes

      public Factory attributes(@Nullable Set<Attribute> attributes)
    • addAttributesItem

      public Factory addAttributesItem(Attribute attributesItem)
    • getAttributes

      @Nullable public Set<Attribute> getAttributes()
      Attributes. Used to add service information.
      Returns:
      attributes
    • setAttributes

      public void setAttributes(@Nullable Set<Attribute> attributes)
    • putAdditionalProperty

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

      public static Factory fromJson(String jsonString) throws IOException
      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

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