Class WikiCommit

java.lang.Object
build.cursed.genapi.forgejo.model.WikiCommit

@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 WikiCommit extends Object
WikiCommit page commit/revision
  • Field Details

  • Constructor Details

    • WikiCommit

      public WikiCommit()
  • Method Details

    • author

      public WikiCommit author(@Nullable CommitUser author)
    • getAuthor

      @Nullable public CommitUser getAuthor()
      Get author
      Returns:
      author
    • setAuthor

      public void setAuthor(@Nullable CommitUser author)
    • commiter

      public WikiCommit commiter(@Nullable CommitUser commiter)
    • getCommiter

      @Nullable public CommitUser getCommiter()
      Get commiter
      Returns:
      commiter
    • setCommiter

      public void setCommiter(@Nullable CommitUser commiter)
    • message

      public WikiCommit message(@Nullable String message)
    • getMessage

      @Nullable public String getMessage()
      Get message
      Returns:
      message
    • setMessage

      public void setMessage(@Nullable String message)
    • sha

      public WikiCommit sha(@Nullable String sha)
    • getSha

      @Nullable public String getSha()
      Get sha
      Returns:
      sha
    • setSha

      public void setSha(@Nullable String sha)
    • 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 WikiCommit
    • fromJson

      public static WikiCommit fromJson(String jsonString) throws IOException
      Create an instance of WikiCommit given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of WikiCommit
      Throws:
      IOException - if the JSON string is invalid with respect to WikiCommit
    • toJson

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