Class WatchInfo

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

@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 WatchInfo extends Object
WatchInfo represents an API watch status of one repository
  • Field Details

  • Constructor Details

    • WatchInfo

      public WatchInfo()
  • Method Details

    • createdAt

      public WatchInfo createdAt(@Nullable OffsetDateTime createdAt)
    • getCreatedAt

      @Nullable public OffsetDateTime getCreatedAt()
      Get createdAt
      Returns:
      createdAt
    • setCreatedAt

      public void setCreatedAt(@Nullable OffsetDateTime createdAt)
    • ignored

      public WatchInfo ignored(@Nullable Boolean ignored)
    • getIgnored

      @Nullable public Boolean getIgnored()
      Get ignored
      Returns:
      ignored
    • setIgnored

      public void setIgnored(@Nullable Boolean ignored)
    • reason

      public WatchInfo reason(@Nullable Object reason)
    • getReason

      @Nullable public Object getReason()
      Get reason
      Returns:
      reason
    • setReason

      public void setReason(@Nullable Object reason)
    • repositoryUrl

      public WatchInfo repositoryUrl(@Nullable String repositoryUrl)
    • getRepositoryUrl

      @Nullable public String getRepositoryUrl()
      Get repositoryUrl
      Returns:
      repositoryUrl
    • setRepositoryUrl

      public void setRepositoryUrl(@Nullable String repositoryUrl)
    • subscribed

      public WatchInfo subscribed(@Nullable Boolean subscribed)
    • getSubscribed

      @Nullable public Boolean getSubscribed()
      Get subscribed
      Returns:
      subscribed
    • setSubscribed

      public void setSubscribed(@Nullable Boolean subscribed)
    • url

      public WatchInfo 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 WatchInfo
    • fromJson

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

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