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
  • Field Details

  • Constructor Details

    • NodeInfo

      public NodeInfo()
  • Method Details

    • metadata

      public NodeInfo metadata(@Nullable Object metadata)
    • getMetadata

      @Nullable public Object getMetadata()
      Get metadata
      Returns:
      metadata
    • setMetadata

      public void setMetadata(@Nullable Object metadata)
    • openRegistrations

      public NodeInfo openRegistrations(@Nullable Boolean openRegistrations)
    • getOpenRegistrations

      @Nullable public Boolean getOpenRegistrations()
      Get openRegistrations
      Returns:
      openRegistrations
    • setOpenRegistrations

      public void setOpenRegistrations(@Nullable Boolean openRegistrations)
    • protocols

      public NodeInfo protocols(@Nullable List<String> protocols)
    • addProtocolsItem

      public NodeInfo addProtocolsItem(String protocolsItem)
    • getProtocols

      @Nullable public List<String> getProtocols()
      Get protocols
      Returns:
      protocols
    • setProtocols

      public void setProtocols(@Nullable List<String> protocols)
    • services

      public NodeInfo services(@Nullable NodeInfoServices services)
    • getServices

      @Nullable public NodeInfoServices getServices()
      Get services
      Returns:
      services
    • setServices

      public void setServices(@Nullable NodeInfoServices services)
    • software

      public NodeInfo software(@Nullable NodeInfoSoftware software)
    • getSoftware

      @Nullable public NodeInfoSoftware getSoftware()
      Get software
      Returns:
      software
    • setSoftware

      public void setSoftware(@Nullable NodeInfoSoftware software)
    • usage

      public NodeInfo usage(@Nullable NodeInfoUsage usage)
    • getUsage

      @Nullable public NodeInfoUsage getUsage()
      Get usage
      Returns:
      usage
    • setUsage

      public void setUsage(@Nullable NodeInfoUsage usage)
    • version

      public NodeInfo version(@Nullable String version)
    • getVersion

      @Nullable public String getVersion()
      Get version
      Returns:
      version
    • setVersion

      public void setVersion(@Nullable String version)
    • 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 NodeInfo
    • fromJson

      public static NodeInfo fromJson(String jsonString) throws IOException
      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

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