Class FileCommitResponse

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

@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 FileCommitResponse extends Object
FileCommitResponse
  • Field Details

  • Constructor Details

    • FileCommitResponse

      public FileCommitResponse()
  • Method Details

    • author

      public FileCommitResponse author(@Nullable CommitUser author)
    • getAuthor

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

      public void setAuthor(@Nullable CommitUser author)
    • committer

      public FileCommitResponse committer(@Nullable CommitUser committer)
    • getCommitter

      @Nullable public CommitUser getCommitter()
      Get committer
      Returns:
      committer
    • setCommitter

      public void setCommitter(@Nullable CommitUser committer)
    • created

      public FileCommitResponse created(@Nullable OffsetDateTime created)
    • getCreated

      @Nullable public OffsetDateTime getCreated()
      Get created
      Returns:
      created
    • setCreated

      public void setCreated(@Nullable OffsetDateTime created)
    • htmlUrl

      public FileCommitResponse htmlUrl(@Nullable String htmlUrl)
    • getHtmlUrl

      @Nullable public String getHtmlUrl()
      Get htmlUrl
      Returns:
      htmlUrl
    • setHtmlUrl

      public void setHtmlUrl(@Nullable String htmlUrl)
    • message

      public FileCommitResponse message(@Nullable String message)
    • getMessage

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

      public void setMessage(@Nullable String message)
    • parents

      public FileCommitResponse parents(@Nullable List<CommitMeta> parents)
    • addParentsItem

      public FileCommitResponse addParentsItem(CommitMeta parentsItem)
    • getParents

      @Nullable public List<CommitMeta> getParents()
      Get parents
      Returns:
      parents
    • setParents

      public void setParents(@Nullable List<CommitMeta> parents)
    • sha

      public FileCommitResponse sha(@Nullable String sha)
    • getSha

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

      public void setSha(@Nullable String sha)
    • tree

      public FileCommitResponse tree(@Nullable CommitMeta tree)
    • getTree

      @Nullable public CommitMeta getTree()
      Get tree
      Returns:
      tree
    • setTree

      public void setTree(@Nullable CommitMeta tree)
    • url

      public FileCommitResponse url(@Nullable String url)
    • getUrl

      @Nullable public String getUrl()
      Get url
      Returns:
      url
    • setUrl

      public void setUrl(@Nullable String url)
    • 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 FileCommitResponse
    • fromJson

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

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