Class NodeInfoUsage
java.lang.Object
build.cursed.genapi.forgejo.model.NodeInfoUsage
@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 NodeInfoUsage
extends Object
NodeInfoUsage contains usage statistics for this server
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic NodeInfoUsageCreate an instance of NodeInfoUsage given an JSON stringGet localCommentsGet localPostsgetUsers()Get usersinthashCode()localComments(Long localComments) localPosts(Long localPosts) voidsetLocalComments(Long localComments) voidsetLocalPosts(Long localPosts) voidsetUsers(NodeInfoUsageUsers users) toJson()Convert an instance of NodeInfoUsage to an JSON stringtoString()users(NodeInfoUsageUsers users) static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_LOCAL_COMMENTS
- See Also:
-
SERIALIZED_NAME_LOCAL_POSTS
- See Also:
-
SERIALIZED_NAME_USERS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
NodeInfoUsage
public NodeInfoUsage()
-
-
Method Details
-
localComments
-
getLocalComments
Get localComments- Returns:
- localComments
-
setLocalComments
-
localPosts
-
getLocalPosts
Get localPosts- Returns:
- localPosts
-
setLocalPosts
-
users
-
getUsers
Get users- Returns:
- users
-
setUsers
-
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 NodeInfoUsage
-
fromJson
Create an instance of NodeInfoUsage given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of NodeInfoUsage
- Throws:
IOException- if the JSON string is invalid with respect to NodeInfoUsage
-
toJson
Convert an instance of NodeInfoUsage to an JSON string- Returns:
- JSON string
-