Class Label

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

@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 Label extends Object
Label a label to an issue or a pr
  • Field Details

  • Constructor Details

    • Label

      public Label()
  • Method Details

    • color

      public Label color(@Nullable String color)
    • getColor

      @Nullable public String getColor()
      Get color
      Returns:
      color
    • setColor

      public void setColor(@Nullable String color)
    • description

      public Label description(@Nullable String description)
    • getDescription

      @Nullable public String getDescription()
      Get description
      Returns:
      description
    • setDescription

      public void setDescription(@Nullable String description)
    • exclusive

      public Label exclusive(@Nullable Boolean exclusive)
    • getExclusive

      @Nullable public Boolean getExclusive()
      Get exclusive
      Returns:
      exclusive
    • setExclusive

      public void setExclusive(@Nullable Boolean exclusive)
    • id

      public Label id(@Nullable Long id)
    • getId

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

      public void setId(@Nullable Long id)
    • isArchived

      public Label isArchived(@Nullable Boolean isArchived)
    • getIsArchived

      @Nullable public Boolean getIsArchived()
      Get isArchived
      Returns:
      isArchived
    • setIsArchived

      public void setIsArchived(@Nullable Boolean isArchived)
    • name

      public Label name(@Nullable String name)
    • getName

      @Nullable public String getName()
      Get name
      Returns:
      name
    • setName

      public void setName(@Nullable String name)
    • url

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

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

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