public class GHTeamBuilder extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.kohsuke.github.Requester |
builder |
| Constructor and Description |
|---|
GHTeamBuilder(GitHub root,
String orgName,
String name) |
| Modifier and Type | Method and Description |
|---|---|
GHTeam |
create()
Creates a team with all the parameters.
|
GHTeamBuilder |
description(String description)
Description for this team.
|
GHTeamBuilder |
maintainers(String... maintainers)
Maintainers for this team.
|
GHTeamBuilder |
parentTeamId(int parentTeamId)
Parent team id for this team
|
GHTeamBuilder |
privacy(GHTeam.Privacy privacy)
Description for this team
|
GHTeamBuilder |
repositories(String... repoNames)
Repository names to add this team to.
|
public GHTeamBuilder description(String description)
description - description of teampublic GHTeamBuilder maintainers(String... maintainers)
maintainers - maintainers of teampublic GHTeamBuilder repositories(String... repoNames)
repoNames - repoNames to add team topublic GHTeamBuilder privacy(GHTeam.Privacy privacy)
privacy - privacy of teampublic GHTeamBuilder parentTeamId(int parentTeamId)
parentTeamId - parentTeamId of teampublic GHTeam create() throws IOException
IOException - if team cannot be createdCopyright © 2020. All rights reserved.