Class AddTimeOption

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

@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 AddTimeOption extends Object
AddTimeOption options for adding time to an issue
  • Field Details

  • Constructor Details

    • AddTimeOption

      public AddTimeOption()
  • Method Details

    • created

      public AddTimeOption created(@Nullable OffsetDateTime created)
    • getCreated

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

      public void setCreated(@Nullable OffsetDateTime created)
    • time

      public AddTimeOption time(@Nonnull Long time)
    • getTime

      @Nonnull public Long getTime()
      time in seconds
      Returns:
      time
    • setTime

      public void setTime(@Nonnull Long time)
    • userName

      public AddTimeOption userName(@Nullable String userName)
    • getUserName

      @Nullable public String getUserName()
      User who spent the time (optional)
      Returns:
      userName
    • setUserName

      public void setUserName(@Nullable String userName)
    • 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 AddTimeOption
    • fromJson

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

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