Class GenerateRepoOption

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

@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 GenerateRepoOption extends Object
GenerateRepoOption options when creating repository using a template
  • Field Details

  • Constructor Details

    • GenerateRepoOption

      public GenerateRepoOption()
  • Method Details

    • avatar

      public GenerateRepoOption avatar(@Nullable Boolean avatar)
    • getAvatar

      @Nullable public Boolean getAvatar()
      include avatar of the template repo
      Returns:
      avatar
    • setAvatar

      public void setAvatar(@Nullable Boolean avatar)
    • defaultBranch

      public GenerateRepoOption defaultBranch(@Nullable String defaultBranch)
    • getDefaultBranch

      @Nullable public String getDefaultBranch()
      Default branch of the new repository
      Returns:
      defaultBranch
    • setDefaultBranch

      public void setDefaultBranch(@Nullable String defaultBranch)
    • description

      public GenerateRepoOption description(@Nullable String description)
    • getDescription

      @Nullable public String getDescription()
      Description of the repository to create
      Returns:
      description
    • setDescription

      public void setDescription(@Nullable String description)
    • gitContent

      public GenerateRepoOption gitContent(@Nullable Boolean gitContent)
    • getGitContent

      @Nullable public Boolean getGitContent()
      include git content of default branch in template repo
      Returns:
      gitContent
    • setGitContent

      public void setGitContent(@Nullable Boolean gitContent)
    • gitHooks

      public GenerateRepoOption gitHooks(@Nullable Boolean gitHooks)
    • getGitHooks

      @Nullable public Boolean getGitHooks()
      include git hooks in template repo
      Returns:
      gitHooks
    • setGitHooks

      public void setGitHooks(@Nullable Boolean gitHooks)
    • labels

      public GenerateRepoOption labels(@Nullable Boolean labels)
    • getLabels

      @Nullable public Boolean getLabels()
      include labels in template repo
      Returns:
      labels
    • setLabels

      public void setLabels(@Nullable Boolean labels)
    • name

      public GenerateRepoOption name(@Nonnull String name)
    • getName

      @Nonnull public String getName()
      Name of the repository to create
      Returns:
      name
    • setName

      public void setName(@Nonnull String name)
    • owner

      public GenerateRepoOption owner(@Nonnull String owner)
    • getOwner

      @Nonnull public String getOwner()
      The organization or person who will own the new repository
      Returns:
      owner
    • setOwner

      public void setOwner(@Nonnull String owner)
    • _private

      public GenerateRepoOption _private(@Nullable Boolean _private)
    • getPrivate

      @Nullable public Boolean getPrivate()
      Whether the repository is private
      Returns:
      _private
    • setPrivate

      public void setPrivate(@Nullable Boolean _private)
    • protectedBranch

      public GenerateRepoOption protectedBranch(@Nullable Boolean protectedBranch)
    • getProtectedBranch

      @Nullable public Boolean getProtectedBranch()
      include protected branches in template repo
      Returns:
      protectedBranch
    • setProtectedBranch

      public void setProtectedBranch(@Nullable Boolean protectedBranch)
    • topics

      public GenerateRepoOption topics(@Nullable Boolean topics)
    • getTopics

      @Nullable public Boolean getTopics()
      include topics in template repo
      Returns:
      topics
    • setTopics

      public void setTopics(@Nullable Boolean topics)
    • webhooks

      public GenerateRepoOption webhooks(@Nullable Boolean webhooks)
    • getWebhooks

      @Nullable public Boolean getWebhooks()
      include webhooks in template repo
      Returns:
      webhooks
    • setWebhooks

      public void setWebhooks(@Nullable Boolean webhooks)
    • 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 GenerateRepoOption
    • fromJson

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

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