Class NewIssuePinsAllowed

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

@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 NewIssuePinsAllowed extends Object
NewIssuePinsAllowed represents an API response that says if new Issue Pins are allowed
  • Field Details

  • Constructor Details

    • NewIssuePinsAllowed

      public NewIssuePinsAllowed()
  • Method Details

    • issues

      public NewIssuePinsAllowed issues(@Nullable Boolean issues)
    • getIssues

      @Nullable public Boolean getIssues()
      Get issues
      Returns:
      issues
    • setIssues

      public void setIssues(@Nullable Boolean issues)
    • pullRequests

      public NewIssuePinsAllowed pullRequests(@Nullable Boolean pullRequests)
    • getPullRequests

      @Nullable public Boolean getPullRequests()
      Get pullRequests
      Returns:
      pullRequests
    • setPullRequests

      public void setPullRequests(@Nullable Boolean pullRequests)
    • 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 NewIssuePinsAllowed
    • fromJson

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

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