Class VersionResult

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

@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 VersionResult extends Object
Service version.
  • Field Details

  • Constructor Details

    • VersionResult

      public VersionResult()
  • Method Details

    • major

      public VersionResult major(@Nonnull Integer major)
    • getMajor

      @Nonnull public Integer getMajor()
      Product version. Within a single version, compatibility of common data structures between services is guaranteed. A version change indicates changes that are incompatible with previous versions of the product (and all services). minimum: 1 maximum: 100
      Returns:
      major
    • setMajor

      public void setMajor(@Nonnull Integer major)
    • minor

      public VersionResult minor(@Nonnull Integer minor)
    • getMinor

      @Nonnull public Integer getMinor()
      Minor version of the service. A version change indicates new functionality. The update is backward compatible with the major version of the product. minimum: 0 maximum: 111
      Returns:
      minor
    • setMinor

      public void setMinor(@Nonnull Integer minor)
    • build

      public VersionResult build(@Nonnull String build)
    • getBuild

      @Nonnull public String getBuild()
      Build version. Contains backwards compatible bug fixes and docs update.
      Returns:
      build
    • setBuild

      public void setBuild(@Nonnull String build)
    • putAdditionalProperty

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

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

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