Class CreateRepoOption

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

@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 CreateRepoOption extends Object
CreateRepoOption options when creating repository
  • Field Details

  • Constructor Details

    • CreateRepoOption

      public CreateRepoOption()
  • Method Details

    • autoInit

      public CreateRepoOption autoInit(@Nullable Boolean autoInit)
    • getAutoInit

      @Nullable public Boolean getAutoInit()
      Whether the repository should be auto-initialized?
      Returns:
      autoInit
    • setAutoInit

      public void setAutoInit(@Nullable Boolean autoInit)
    • defaultBranch

      public CreateRepoOption defaultBranch(@Nullable String defaultBranch)
    • getDefaultBranch

      @Nullable public String getDefaultBranch()
      DefaultBranch of the repository (used when initializes and in template)
      Returns:
      defaultBranch
    • setDefaultBranch

      public void setDefaultBranch(@Nullable String defaultBranch)
    • description

      public CreateRepoOption description(@Nullable String description)
    • getDescription

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

      public void setDescription(@Nullable String description)
    • gitignores

      public CreateRepoOption gitignores(@Nullable String gitignores)
    • getGitignores

      @Nullable public String getGitignores()
      Gitignores to use
      Returns:
      gitignores
    • setGitignores

      public void setGitignores(@Nullable String gitignores)
    • issueLabels

      public CreateRepoOption issueLabels(@Nullable String issueLabels)
    • getIssueLabels

      @Nullable public String getIssueLabels()
      Label-Set to use
      Returns:
      issueLabels
    • setIssueLabels

      public void setIssueLabels(@Nullable String issueLabels)
    • license

      public CreateRepoOption license(@Nullable String license)
    • getLicense

      @Nullable public String getLicense()
      License to use
      Returns:
      license
    • setLicense

      public void setLicense(@Nullable String license)
    • name

      public CreateRepoOption name(@Nonnull String name)
    • getName

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

      public void setName(@Nonnull String name)
    • objectFormatName

      public CreateRepoOption objectFormatName(@Nullable CreateRepoOption.ObjectFormatNameEnum objectFormatName)
    • getObjectFormatName

      @Nullable public CreateRepoOption.ObjectFormatNameEnum getObjectFormatName()
      ObjectFormatName of the underlying git repository
      Returns:
      objectFormatName
    • setObjectFormatName

      public void setObjectFormatName(@Nullable CreateRepoOption.ObjectFormatNameEnum objectFormatName)
    • _private

      public CreateRepoOption _private(@Nullable Boolean _private)
    • getPrivate

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

      public void setPrivate(@Nullable Boolean _private)
    • readme

      public CreateRepoOption readme(@Nullable String readme)
    • getReadme

      @Nullable public String getReadme()
      Readme of the repository to create
      Returns:
      readme
    • setReadme

      public void setReadme(@Nullable String readme)
    • template

      public CreateRepoOption template(@Nullable Boolean template)
    • getTemplate

      @Nullable public Boolean getTemplate()
      Whether the repository is template
      Returns:
      template
    • setTemplate

      public void setTemplate(@Nullable Boolean template)
    • trustModel

      public CreateRepoOption trustModel(@Nullable CreateRepoOption.TrustModelEnum trustModel)
    • getTrustModel

      @Nullable public CreateRepoOption.TrustModelEnum getTrustModel()
      TrustModel of the repository
      Returns:
      trustModel
    • setTrustModel

      public void setTrustModel(@Nullable CreateRepoOption.TrustModelEnum trustModel)
    • 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 CreateRepoOption
    • fromJson

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

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