Package io.gitea.model
Class CreateRepoOption
- java.lang.Object
-
- io.gitea.model.CreateRepoOption
-
public class CreateRepoOption extends java.lang.ObjectCreateRepoOption options when creating repository
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCreateRepoOption.TrustModelEnumTrustModel of the repository
-
Constructor Summary
Constructors Constructor Description CreateRepoOption()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateRepoOption_private(java.lang.Boolean _private)CreateRepoOptionautoInit(java.lang.Boolean autoInit)CreateRepoOptiondefaultBranch(java.lang.String defaultBranch)CreateRepoOptiondescription(java.lang.String description)booleanequals(java.lang.Object o)java.lang.StringgetDefaultBranch()DefaultBranch of the repository (used when initializes and in template)java.lang.StringgetDescription()Description of the repository to createjava.lang.StringgetGitignores()Gitignores to usejava.lang.StringgetIssueLabels()Label-Set to usejava.lang.StringgetLicense()License to usejava.lang.StringgetName()Name of the repository to createjava.lang.StringgetReadme()Readme of the repository to createCreateRepoOption.TrustModelEnumgetTrustModel()TrustModel of the repositoryCreateRepoOptiongitignores(java.lang.String gitignores)inthashCode()java.lang.BooleanisAutoInit()Whether the repository should be auto-initialized?java.lang.BooleanisPrivate()Whether the repository is privateCreateRepoOptionissueLabels(java.lang.String issueLabels)java.lang.BooleanisTemplate()Whether the repository is templateCreateRepoOptionlicense(java.lang.String license)CreateRepoOptionname(java.lang.String name)CreateRepoOptionreadme(java.lang.String readme)voidsetAutoInit(java.lang.Boolean autoInit)voidsetDefaultBranch(java.lang.String defaultBranch)voidsetDescription(java.lang.String description)voidsetGitignores(java.lang.String gitignores)voidsetIssueLabels(java.lang.String issueLabels)voidsetLicense(java.lang.String license)voidsetName(java.lang.String name)voidsetPrivate(java.lang.Boolean _private)voidsetReadme(java.lang.String readme)voidsetTemplate(java.lang.Boolean template)voidsetTrustModel(CreateRepoOption.TrustModelEnum trustModel)CreateRepoOptiontemplate(java.lang.Boolean template)java.lang.StringtoString()CreateRepoOptiontrustModel(CreateRepoOption.TrustModelEnum trustModel)
-
-
-
Method Detail
-
autoInit
public CreateRepoOption autoInit(java.lang.Boolean autoInit)
-
isAutoInit
public java.lang.Boolean isAutoInit()
Whether the repository should be auto-initialized?- Returns:
- autoInit
-
setAutoInit
public void setAutoInit(java.lang.Boolean autoInit)
-
defaultBranch
public CreateRepoOption defaultBranch(java.lang.String defaultBranch)
-
getDefaultBranch
public java.lang.String getDefaultBranch()
DefaultBranch of the repository (used when initializes and in template)- Returns:
- defaultBranch
-
setDefaultBranch
public void setDefaultBranch(java.lang.String defaultBranch)
-
description
public CreateRepoOption description(java.lang.String description)
-
getDescription
public java.lang.String getDescription()
Description of the repository to create- Returns:
- description
-
setDescription
public void setDescription(java.lang.String description)
-
gitignores
public CreateRepoOption gitignores(java.lang.String gitignores)
-
getGitignores
public java.lang.String getGitignores()
Gitignores to use- Returns:
- gitignores
-
setGitignores
public void setGitignores(java.lang.String gitignores)
-
issueLabels
public CreateRepoOption issueLabels(java.lang.String issueLabels)
-
getIssueLabels
public java.lang.String getIssueLabels()
Label-Set to use- Returns:
- issueLabels
-
setIssueLabels
public void setIssueLabels(java.lang.String issueLabels)
-
license
public CreateRepoOption license(java.lang.String license)
-
getLicense
public java.lang.String getLicense()
License to use- Returns:
- license
-
setLicense
public void setLicense(java.lang.String license)
-
name
public CreateRepoOption name(java.lang.String name)
-
getName
public java.lang.String getName()
Name of the repository to create- Returns:
- name
-
setName
public void setName(java.lang.String name)
-
_private
public CreateRepoOption _private(java.lang.Boolean _private)
-
isPrivate
public java.lang.Boolean isPrivate()
Whether the repository is private- Returns:
- _private
-
setPrivate
public void setPrivate(java.lang.Boolean _private)
-
readme
public CreateRepoOption readme(java.lang.String readme)
-
getReadme
public java.lang.String getReadme()
Readme of the repository to create- Returns:
- readme
-
setReadme
public void setReadme(java.lang.String readme)
-
template
public CreateRepoOption template(java.lang.Boolean template)
-
isTemplate
public java.lang.Boolean isTemplate()
Whether the repository is template- Returns:
- template
-
setTemplate
public void setTemplate(java.lang.Boolean template)
-
trustModel
public CreateRepoOption trustModel(CreateRepoOption.TrustModelEnum trustModel)
-
getTrustModel
public CreateRepoOption.TrustModelEnum getTrustModel()
TrustModel of the repository- Returns:
- trustModel
-
setTrustModel
public void setTrustModel(CreateRepoOption.TrustModelEnum trustModel)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-