Class NodeInfo
java.lang.Object
build.cursed.genapi.forgejo.model.NodeInfo
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2026-09-28T16:24:31.414706+02:00[Europe/Stockholm]",
comments="Generator version: 7.21.0")
public class NodeInfo
extends Object
NodeInfo contains standardized way of exposing metadata about a server running one of the distributed social networks
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddProtocolsItem(String protocolsItem) booleanstatic NodeInfoCreate an instance of NodeInfo given an JSON stringGet metadataGet openRegistrationsGet protocolsGet servicesGet softwaregetUsage()Get usageGet versioninthashCode()openRegistrations(Boolean openRegistrations) services(NodeInfoServices services) voidsetMetadata(Object metadata) voidsetOpenRegistrations(Boolean openRegistrations) voidsetProtocols(List<String> protocols) voidsetServices(NodeInfoServices services) voidsetSoftware(NodeInfoSoftware software) voidsetUsage(NodeInfoUsage usage) voidsetVersion(String version) software(NodeInfoSoftware software) toJson()Convert an instance of NodeInfo to an JSON stringtoString()usage(NodeInfoUsage usage) static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_METADATA
- See Also:
-
SERIALIZED_NAME_OPEN_REGISTRATIONS
- See Also:
-
SERIALIZED_NAME_PROTOCOLS
- See Also:
-
SERIALIZED_NAME_SERVICES
- See Also:
-
SERIALIZED_NAME_SOFTWARE
- See Also:
-
SERIALIZED_NAME_USAGE
- See Also:
-
SERIALIZED_NAME_VERSION
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
NodeInfo
public NodeInfo()
-
-
Method Details
-
metadata
-
getMetadata
Get metadata- Returns:
- metadata
-
setMetadata
-
openRegistrations
-
getOpenRegistrations
Get openRegistrations- Returns:
- openRegistrations
-
setOpenRegistrations
-
protocols
-
addProtocolsItem
-
getProtocols
Get protocols- Returns:
- protocols
-
setProtocols
-
services
-
getServices
Get services- Returns:
- services
-
setServices
-
software
-
getSoftware
Get software- Returns:
- software
-
setSoftware
-
usage
-
getUsage
Get usage- Returns:
- usage
-
setUsage
-
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 NodeInfo
-
fromJson
Create an instance of NodeInfo given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of NodeInfo
- Throws:
IOException- if the JSON string is invalid with respect to NodeInfo
-
toJson
Convert an instance of NodeInfo to an JSON string- Returns:
- JSON string
-