Class CreatePullReviewComment

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

@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 CreatePullReviewComment extends Object
CreatePullReviewComment represent a review comment for creation api
  • Field Details

  • Constructor Details

    • CreatePullReviewComment

      public CreatePullReviewComment()
  • Method Details

    • body

      public CreatePullReviewComment body(@Nullable String body)
    • getBody

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

      public void setBody(@Nullable String body)
    • newPosition

      public CreatePullReviewComment newPosition(@Nullable Long newPosition)
    • getNewPosition

      @Nullable public Long getNewPosition()
      if comment to new file line or 0
      Returns:
      newPosition
    • setNewPosition

      public void setNewPosition(@Nullable Long newPosition)
    • oldPosition

      public CreatePullReviewComment oldPosition(@Nullable Long oldPosition)
    • getOldPosition

      @Nullable public Long getOldPosition()
      if comment to old file line or 0
      Returns:
      oldPosition
    • setOldPosition

      public void setOldPosition(@Nullable Long oldPosition)
    • path

      public CreatePullReviewComment path(@Nullable String path)
    • getPath

      @Nullable public String getPath()
      the tree path
      Returns:
      path
    • setPath

      public void setPath(@Nullable String path)
    • 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 CreatePullReviewComment
    • fromJson

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

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