Class CommitDateOptions

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

@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 CommitDateOptions extends Object
CommitDateOptions store dates for GIT_AUTHOR_DATE and GIT_COMMITTER_DATE
  • Field Details

  • Constructor Details

    • CommitDateOptions

      public CommitDateOptions()
  • Method Details

    • author

      public CommitDateOptions author(@Nullable OffsetDateTime author)
    • getAuthor

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

      public void setAuthor(@Nullable OffsetDateTime author)
    • committer

      public CommitDateOptions committer(@Nullable OffsetDateTime committer)
    • getCommitter

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

      public void setCommitter(@Nullable OffsetDateTime committer)
    • 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 CommitDateOptions
    • fromJson

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

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