Class CreateLabelOption

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

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

  • Constructor Details

    • CreateLabelOption

      public CreateLabelOption()
  • Method Details

    • color

      public CreateLabelOption color(@Nonnull String color)
    • getColor

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

      public void setColor(@Nonnull String color)
    • description

      public CreateLabelOption description(@Nullable String description)
    • getDescription

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

      public void setDescription(@Nullable String description)
    • exclusive

      public CreateLabelOption exclusive(@Nullable Boolean exclusive)
    • getExclusive

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

      public void setExclusive(@Nullable Boolean exclusive)
    • isArchived

      public CreateLabelOption isArchived(@Nullable Boolean isArchived)
    • getIsArchived

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

      public void setIsArchived(@Nullable Boolean isArchived)
    • name

      public CreateLabelOption name(@Nonnull String name)
    • getName

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

      public void setName(@Nonnull 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 CreateLabelOption
    • fromJson

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

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