Class StopWatch

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

@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 StopWatch extends Object
StopWatch represent a running stopwatch
  • Field Details

  • Constructor Details

    • StopWatch

      public StopWatch()
  • Method Details

    • created

      public StopWatch created(@Nullable OffsetDateTime created)
    • getCreated

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

      public void setCreated(@Nullable OffsetDateTime created)
    • duration

      public StopWatch duration(@Nullable String duration)
    • getDuration

      @Nullable public String getDuration()
      Get duration
      Returns:
      duration
    • setDuration

      public void setDuration(@Nullable String duration)
    • issueIndex

      public StopWatch issueIndex(@Nullable Long issueIndex)
    • getIssueIndex

      @Nullable public Long getIssueIndex()
      Get issueIndex
      Returns:
      issueIndex
    • setIssueIndex

      public void setIssueIndex(@Nullable Long issueIndex)
    • issueTitle

      public StopWatch issueTitle(@Nullable String issueTitle)
    • getIssueTitle

      @Nullable public String getIssueTitle()
      Get issueTitle
      Returns:
      issueTitle
    • setIssueTitle

      public void setIssueTitle(@Nullable String issueTitle)
    • repoName

      public StopWatch repoName(@Nullable String repoName)
    • getRepoName

      @Nullable public String getRepoName()
      Get repoName
      Returns:
      repoName
    • setRepoName

      public void setRepoName(@Nullable String repoName)
    • repoOwnerName

      public StopWatch repoOwnerName(@Nullable String repoOwnerName)
    • getRepoOwnerName

      @Nullable public String getRepoOwnerName()
      Get repoOwnerName
      Returns:
      repoOwnerName
    • setRepoOwnerName

      public void setRepoOwnerName(@Nullable String repoOwnerName)
    • seconds

      public StopWatch seconds(@Nullable Long seconds)
    • getSeconds

      @Nullable public Long getSeconds()
      Get seconds
      Returns:
      seconds
    • setSeconds

      public void setSeconds(@Nullable Long seconds)
    • 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 StopWatch
    • fromJson

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

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