Class EditPullRequestOption

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

@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 EditPullRequestOption extends Object
EditPullRequestOption options when modify pull request
  • Field Details

  • Constructor Details

    • EditPullRequestOption

      public EditPullRequestOption()
  • Method Details

    • allowMaintainerEdit

      public EditPullRequestOption allowMaintainerEdit(@Nullable Boolean allowMaintainerEdit)
    • getAllowMaintainerEdit

      @Nullable public Boolean getAllowMaintainerEdit()
      Get allowMaintainerEdit
      Returns:
      allowMaintainerEdit
    • setAllowMaintainerEdit

      public void setAllowMaintainerEdit(@Nullable Boolean allowMaintainerEdit)
    • assignee

      public EditPullRequestOption assignee(@Nullable String assignee)
    • getAssignee

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

      public void setAssignee(@Nullable String assignee)
    • assignees

      public EditPullRequestOption assignees(@Nullable List<String> assignees)
    • addAssigneesItem

      public EditPullRequestOption addAssigneesItem(String assigneesItem)
    • getAssignees

      @Nullable public List<String> getAssignees()
      Get assignees
      Returns:
      assignees
    • setAssignees

      public void setAssignees(@Nullable List<String> assignees)
    • base

      public EditPullRequestOption base(@Nullable String base)
    • getBase

      @Nullable public String getBase()
      Get base
      Returns:
      base
    • setBase

      public void setBase(@Nullable String base)
    • body

      public EditPullRequestOption body(@Nullable String body)
    • getBody

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

      public void setBody(@Nullable String body)
    • dueDate

      public EditPullRequestOption dueDate(@Nullable OffsetDateTime dueDate)
    • getDueDate

      @Nullable public OffsetDateTime getDueDate()
      Get dueDate
      Returns:
      dueDate
    • setDueDate

      public void setDueDate(@Nullable OffsetDateTime dueDate)
    • labels

      public EditPullRequestOption labels(@Nullable List<Long> labels)
    • addLabelsItem

      public EditPullRequestOption addLabelsItem(Long labelsItem)
    • getLabels

      @Nullable public List<Long> getLabels()
      Get labels
      Returns:
      labels
    • setLabels

      public void setLabels(@Nullable List<Long> labels)
    • milestone

      public EditPullRequestOption milestone(@Nullable Long milestone)
    • getMilestone

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

      public void setMilestone(@Nullable Long milestone)
    • state

      public EditPullRequestOption state(@Nullable String state)
    • getState

      @Nullable public String getState()
      Get state
      Returns:
      state
    • setState

      public void setState(@Nullable String state)
    • title

      public EditPullRequestOption title(@Nullable String title)
    • getTitle

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

      public void setTitle(@Nullable String title)
    • unsetDueDate

      public EditPullRequestOption unsetDueDate(@Nullable Boolean unsetDueDate)
    • getUnsetDueDate

      @Nullable public Boolean getUnsetDueDate()
      Get unsetDueDate
      Returns:
      unsetDueDate
    • setUnsetDueDate

      public void setUnsetDueDate(@Nullable Boolean unsetDueDate)
    • 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 EditPullRequestOption
    • fromJson

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

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