Class NotificationSubject

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

@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 NotificationSubject extends Object
NotificationSubject contains the notification subject (Issue/Pull/Commit)
  • Field Details

  • Constructor Details

    • NotificationSubject

      public NotificationSubject()
  • Method Details

    • htmlUrl

      public NotificationSubject htmlUrl(@Nullable String htmlUrl)
    • getHtmlUrl

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

      public void setHtmlUrl(@Nullable String htmlUrl)
    • latestCommentHtmlUrl

      public NotificationSubject latestCommentHtmlUrl(@Nullable String latestCommentHtmlUrl)
    • getLatestCommentHtmlUrl

      @Nullable public String getLatestCommentHtmlUrl()
      Get latestCommentHtmlUrl
      Returns:
      latestCommentHtmlUrl
    • setLatestCommentHtmlUrl

      public void setLatestCommentHtmlUrl(@Nullable String latestCommentHtmlUrl)
    • latestCommentUrl

      public NotificationSubject latestCommentUrl(@Nullable String latestCommentUrl)
    • getLatestCommentUrl

      @Nullable public String getLatestCommentUrl()
      Get latestCommentUrl
      Returns:
      latestCommentUrl
    • setLatestCommentUrl

      public void setLatestCommentUrl(@Nullable String latestCommentUrl)
    • state

      public NotificationSubject state(@Nullable String state)
    • getState

      @Nullable public String getState()
      StateType issue state type
      Returns:
      state
    • setState

      public void setState(@Nullable String state)
    • title

      public NotificationSubject title(@Nullable String title)
    • getTitle

      @Nullable public String getTitle()
      Get title
      Returns:
      title
    • setTitle

      public void setTitle(@Nullable String title)
    • type

      public NotificationSubject type(@Nullable String type)
    • getType

      @Nullable public String getType()
      NotifySubjectType represent type of notification subject
      Returns:
      type
    • setType

      public void setType(@Nullable String type)
    • url

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

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

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