Package com.w3asel.inventree.model
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.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondescription(String description) booleanstatic ProjectCodeCreate an instance of ProjectCode given an JSON stringgetCode()Unique project codeProject descriptiongetPk()Get pkUser or group responsible for this projectGet responsibleDetailinthashCode()responsible(Integer responsible) voidvoidsetDescription(String description) voidsetResponsible(Integer responsible) toJson()Convert an instance of ProjectCode 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_PK
- See Also:
-
SERIALIZED_NAME_CODE
- See Also:
-
SERIALIZED_NAME_DESCRIPTION
- See Also:
-
SERIALIZED_NAME_RESPONSIBLE
- See Also:
-
SERIALIZED_NAME_RESPONSIBLE_DETAIL
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ProjectCode
public ProjectCode() -
ProjectCode
-
-
Method Details
-
getPk
Get pk- Returns:
- pk
-
code
-
getCode
Unique project code- Returns:
- code
-
setCode
-
description
-
getDescription
Project description- Returns:
- description
-
setDescription
-
responsible
-
getResponsible
User or group responsible for this project- Returns:
- responsible
-
setResponsible
-
getResponsibleDetail
Get responsibleDetail- Returns:
- responsibleDetail
-
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 ProjectCode
-
fromJson
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
Convert an instance of ProjectCode to an JSON string- Returns:
- JSON string
-