Class ProjectCode

java.lang.Object
com.w3asel.inventree.model.ProjectCode

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2025-09-18T21:37:15.178287456Z[Etc/UTC]", comments="Generator version: 7.15.0") public class ProjectCode extends Object
Serializer for the ProjectCode model.
  • Field Details

  • Constructor Details

    • ProjectCode

      public ProjectCode()
    • ProjectCode

      public ProjectCode(Integer pk, Owner responsibleDetail)
  • Method Details

    • getPk

      @Nonnull public Integer getPk()
      Get pk
      Returns:
      pk
    • code

      public ProjectCode code(@Nonnull String code)
    • getCode

      @Nonnull public String getCode()
      Unique project code
      Returns:
      code
    • setCode

      public void setCode(@Nonnull String code)
    • description

      public ProjectCode description(@Nullable String description)
    • getDescription

      @Nullable public String getDescription()
      Project description
      Returns:
      description
    • setDescription

      public void setDescription(@Nullable String description)
    • responsible

      public ProjectCode responsible(@Nullable Integer responsible)
    • getResponsible

      @Nullable public Integer getResponsible()
      User or group responsible for this project
      Returns:
      responsible
    • setResponsible

      public void setResponsible(@Nullable Integer responsible)
    • getResponsibleDetail

      @Nullable public Owner getResponsibleDetail()
      Get responsibleDetail
      Returns:
      responsibleDetail
    • 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 ProjectCode
    • fromJson

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

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