Class ModelPackage
java.lang.Object
build.cursed.genapi.forgejo.model.ModelPackage
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2026-09-28T10:48:29.723777+02:00[Europe/Stockholm]",
comments="Generator version: 7.21.0")
public class ModelPackage
extends Object
Package represents a package
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreatedAt(OffsetDateTime createdAt) booleanstatic ModelPackageCreate an instance of ModelPackage given an JSON stringGet createdAtGet creatorGet htmlUrlgetId()Get idgetName()Get namegetOwner()Get ownerGet repositorygetType()Get typeGet versioninthashCode()repository(Repository repository) voidsetCreatedAt(OffsetDateTime createdAt) voidsetCreator(User creator) voidsetHtmlUrl(String htmlUrl) voidvoidvoidvoidsetRepository(Repository repository) voidvoidsetVersion(String version) toJson()Convert an instance of ModelPackage 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_CREATED_AT
- See Also:
-
SERIALIZED_NAME_CREATOR
- See Also:
-
SERIALIZED_NAME_HTML_URL
- See Also:
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_OWNER
- See Also:
-
SERIALIZED_NAME_REPOSITORY
- See Also:
-
SERIALIZED_NAME_TYPE
- See Also:
-
SERIALIZED_NAME_VERSION
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ModelPackage
public ModelPackage()
-
-
Method Details
-
createdAt
-
getCreatedAt
Get createdAt- Returns:
- createdAt
-
setCreatedAt
-
creator
-
getCreator
Get creator- Returns:
- creator
-
setCreator
-
htmlUrl
-
getHtmlUrl
Get htmlUrl- Returns:
- htmlUrl
-
setHtmlUrl
-
id
-
getId
Get id- Returns:
- id
-
setId
-
name
-
getName
Get name- Returns:
- name
-
setName
-
owner
-
getOwner
Get owner- Returns:
- owner
-
setOwner
-
repository
-
getRepository
Get repository- Returns:
- repository
-
setRepository
-
type
-
getType
Get type- Returns:
- type
-
setType
-
version
-
getVersion
Get version- Returns:
- version
-
setVersion
-
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 ModelPackage
-
fromJson
Create an instance of ModelPackage given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ModelPackage
- Throws:
IOException- if the JSON string is invalid with respect to ModelPackage
-
toJson
Convert an instance of ModelPackage to an JSON string- Returns:
- JSON string
-