@Loggable(value=1) public static final class Repos.RepoCreate extends Object implements JsonReadable
Constructor and Description |
---|
RepoCreate(String nme,
boolean prvt)
Public ctor.
|
Modifier and Type | Method and Description |
---|---|
com.google.common.base.Optional<Boolean> |
autoInit()
Auto-init the new repo?
If absent, the GitHub default will be used.
|
String |
description()
Description of the new repo.
|
String |
homepage()
Homepage of the new repo.
|
boolean |
isPrivate()
Will the new repo be private? If not, then it will be public.
|
javax.json.JsonObject |
json()
Describe it in a JSON object.
|
String |
name()
Name of the new repo.
|
Repos.RepoCreate |
withAutoInit(boolean auto)
Returns a RepoCreate with the given auto-init enabledness.
|
Repos.RepoCreate |
withAutoInit(com.google.common.base.Optional<Boolean> auto)
Returns a RepoCreate with the given auto-init enabledness.
|
Repos.RepoCreate |
withDescription(String desc)
Returns a RepoCreate with the given description.
|
Repos.RepoCreate |
withHomepage(String page)
Returns a RepoCreate with the given homepage.
|
Repos.RepoCreate |
withName(String nme)
Returns a RepoCreate with the given name.
|
Repos.RepoCreate |
withPrivacy(boolean privacy)
Returns a RepoCreate with the given privacy.
|
public RepoCreate(String nme, boolean prvt)
nme
- Name of the new repository. Cannot be empty.prvt
- Will the new repo be private?
If not, then it will be public.public String name()
public boolean isPrivate()
public String description()
public String homepage()
public com.google.common.base.Optional<Boolean> autoInit()
public Repos.RepoCreate withName(String nme)
nme
- Name of the new repopublic Repos.RepoCreate withPrivacy(boolean privacy)
privacy
- Privateness of the new repopublic Repos.RepoCreate withDescription(String desc)
desc
- Descriptionpublic Repos.RepoCreate withHomepage(String page)
page
- Homepage URLpublic Repos.RepoCreate withAutoInit(com.google.common.base.Optional<Boolean> auto)
auto
- Auto-init the new repo?public Repos.RepoCreate withAutoInit(boolean auto)
auto
- Auto-init the new repo?public javax.json.JsonObject json()
JsonReadable
json
in interface JsonReadable
Copyright © 2012–2018 jcabi.com. All rights reserved.