Class EditLabelOption

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

@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 EditLabelOption extends Object
EditLabelOption options for editing a label
  • Field Details

  • Constructor Details

    • EditLabelOption

      public EditLabelOption()
  • Method Details

    • color

      public EditLabelOption color(@Nullable String color)
    • getColor

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

      public void setColor(@Nullable String color)
    • description

      public EditLabelOption description(@Nullable String description)
    • getDescription

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

      public void setDescription(@Nullable String description)
    • exclusive

      public EditLabelOption exclusive(@Nullable Boolean exclusive)
    • getExclusive

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

      public void setExclusive(@Nullable Boolean exclusive)
    • isArchived

      public EditLabelOption isArchived(@Nullable Boolean isArchived)
    • getIsArchived

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

      public void setIsArchived(@Nullable Boolean isArchived)
    • name

      public EditLabelOption name(@Nullable String name)
    • getName

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

      public void setName(@Nullable String name)
    • 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 EditLabelOption
    • fromJson

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

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