Class TimelineComment

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

@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 TimelineComment extends Object
TimelineComment represents a timeline comment (comment of any type) on a commit or issue
  • Field Details

  • Constructor Details

    • TimelineComment

      public TimelineComment()
  • Method Details

    • assignee

      public TimelineComment assignee(@Nullable User assignee)
    • getAssignee

      @Nullable public User getAssignee()
      Get assignee
      Returns:
      assignee
    • setAssignee

      public void setAssignee(@Nullable User assignee)
    • assigneeTeam

      public TimelineComment assigneeTeam(@Nullable Team assigneeTeam)
    • getAssigneeTeam

      @Nullable public Team getAssigneeTeam()
      Get assigneeTeam
      Returns:
      assigneeTeam
    • setAssigneeTeam

      public void setAssigneeTeam(@Nullable Team assigneeTeam)
    • body

      public TimelineComment body(@Nullable String body)
    • getBody

      @Nullable public String getBody()
      Get body
      Returns:
      body
    • setBody

      public void setBody(@Nullable String body)
    • createdAt

      public TimelineComment createdAt(@Nullable OffsetDateTime createdAt)
    • getCreatedAt

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

      public void setCreatedAt(@Nullable OffsetDateTime createdAt)
    • dependentIssue

      public TimelineComment dependentIssue(@Nullable Issue dependentIssue)
    • getDependentIssue

      @Nullable public Issue getDependentIssue()
      Get dependentIssue
      Returns:
      dependentIssue
    • setDependentIssue

      public void setDependentIssue(@Nullable Issue dependentIssue)
    • htmlUrl

      public TimelineComment htmlUrl(@Nullable String htmlUrl)
    • getHtmlUrl

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

      public void setHtmlUrl(@Nullable String htmlUrl)
    • id

      public TimelineComment id(@Nullable Long id)
    • getId

      @Nullable public Long getId()
      Get id
      Returns:
      id
    • setId

      public void setId(@Nullable Long id)
    • issueUrl

      public TimelineComment issueUrl(@Nullable String issueUrl)
    • getIssueUrl

      @Nullable public String getIssueUrl()
      Get issueUrl
      Returns:
      issueUrl
    • setIssueUrl

      public void setIssueUrl(@Nullable String issueUrl)
    • label

      public TimelineComment label(@Nullable Label label)
    • getLabel

      @Nullable public Label getLabel()
      Get label
      Returns:
      label
    • setLabel

      public void setLabel(@Nullable Label label)
    • milestone

      public TimelineComment milestone(@Nullable Milestone milestone)
    • getMilestone

      @Nullable public Milestone getMilestone()
      Get milestone
      Returns:
      milestone
    • setMilestone

      public void setMilestone(@Nullable Milestone milestone)
    • newRef

      public TimelineComment newRef(@Nullable String newRef)
    • getNewRef

      @Nullable public String getNewRef()
      Get newRef
      Returns:
      newRef
    • setNewRef

      public void setNewRef(@Nullable String newRef)
    • newTitle

      public TimelineComment newTitle(@Nullable String newTitle)
    • getNewTitle

      @Nullable public String getNewTitle()
      Get newTitle
      Returns:
      newTitle
    • setNewTitle

      public void setNewTitle(@Nullable String newTitle)
    • oldMilestone

      public TimelineComment oldMilestone(@Nullable Milestone oldMilestone)
    • getOldMilestone

      @Nullable public Milestone getOldMilestone()
      Get oldMilestone
      Returns:
      oldMilestone
    • setOldMilestone

      public void setOldMilestone(@Nullable Milestone oldMilestone)
    • oldProjectId

      public TimelineComment oldProjectId(@Nullable Long oldProjectId)
    • getOldProjectId

      @Nullable public Long getOldProjectId()
      Get oldProjectId
      Returns:
      oldProjectId
    • setOldProjectId

      public void setOldProjectId(@Nullable Long oldProjectId)
    • oldRef

      public TimelineComment oldRef(@Nullable String oldRef)
    • getOldRef

      @Nullable public String getOldRef()
      Get oldRef
      Returns:
      oldRef
    • setOldRef

      public void setOldRef(@Nullable String oldRef)
    • oldTitle

      public TimelineComment oldTitle(@Nullable String oldTitle)
    • getOldTitle

      @Nullable public String getOldTitle()
      Get oldTitle
      Returns:
      oldTitle
    • setOldTitle

      public void setOldTitle(@Nullable String oldTitle)
    • projectId

      public TimelineComment projectId(@Nullable Long projectId)
    • getProjectId

      @Nullable public Long getProjectId()
      Get projectId
      Returns:
      projectId
    • setProjectId

      public void setProjectId(@Nullable Long projectId)
    • pullRequestUrl

      public TimelineComment pullRequestUrl(@Nullable String pullRequestUrl)
    • getPullRequestUrl

      @Nullable public String getPullRequestUrl()
      Get pullRequestUrl
      Returns:
      pullRequestUrl
    • setPullRequestUrl

      public void setPullRequestUrl(@Nullable String pullRequestUrl)
    • refAction

      public TimelineComment refAction(@Nullable String refAction)
    • getRefAction

      @Nullable public String getRefAction()
      Get refAction
      Returns:
      refAction
    • setRefAction

      public void setRefAction(@Nullable String refAction)
    • refComment

      public TimelineComment refComment(@Nullable Comment refComment)
    • getRefComment

      @Nullable public Comment getRefComment()
      Get refComment
      Returns:
      refComment
    • setRefComment

      public void setRefComment(@Nullable Comment refComment)
    • refCommitSha

      public TimelineComment refCommitSha(@Nullable String refCommitSha)
    • getRefCommitSha

      @Nullable public String getRefCommitSha()
      commit SHA where issue/PR was referenced
      Returns:
      refCommitSha
    • setRefCommitSha

      public void setRefCommitSha(@Nullable String refCommitSha)
    • refIssue

      public TimelineComment refIssue(@Nullable Issue refIssue)
    • getRefIssue

      @Nullable public Issue getRefIssue()
      Get refIssue
      Returns:
      refIssue
    • setRefIssue

      public void setRefIssue(@Nullable Issue refIssue)
    • removedAssignee

      public TimelineComment removedAssignee(@Nullable Boolean removedAssignee)
    • getRemovedAssignee

      @Nullable public Boolean getRemovedAssignee()
      whether the assignees were removed or added
      Returns:
      removedAssignee
    • setRemovedAssignee

      public void setRemovedAssignee(@Nullable Boolean removedAssignee)
    • resolveDoer

      public TimelineComment resolveDoer(@Nullable User resolveDoer)
    • getResolveDoer

      @Nullable public User getResolveDoer()
      Get resolveDoer
      Returns:
      resolveDoer
    • setResolveDoer

      public void setResolveDoer(@Nullable User resolveDoer)
    • reviewId

      public TimelineComment reviewId(@Nullable Long reviewId)
    • getReviewId

      @Nullable public Long getReviewId()
      Get reviewId
      Returns:
      reviewId
    • setReviewId

      public void setReviewId(@Nullable Long reviewId)
    • trackedTime

      public TimelineComment trackedTime(@Nullable TrackedTime trackedTime)
    • getTrackedTime

      @Nullable public TrackedTime getTrackedTime()
      Get trackedTime
      Returns:
      trackedTime
    • setTrackedTime

      public void setTrackedTime(@Nullable TrackedTime trackedTime)
    • type

      public TimelineComment type(@Nullable String type)
    • getType

      @Nullable public String getType()
      Get type
      Returns:
      type
    • setType

      public void setType(@Nullable String type)
    • updatedAt

      public TimelineComment updatedAt(@Nullable OffsetDateTime updatedAt)
    • getUpdatedAt

      @Nullable public OffsetDateTime getUpdatedAt()
      Get updatedAt
      Returns:
      updatedAt
    • setUpdatedAt

      public void setUpdatedAt(@Nullable OffsetDateTime updatedAt)
    • user

      public TimelineComment user(@Nullable User user)
    • getUser

      @Nullable public User getUser()
      Get user
      Returns:
      user
    • setUser

      public void setUser(@Nullable User user)
    • 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 TimelineComment
    • fromJson

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

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