Class GHTeamBuilder

java.lang.Object
io.github.coho04.githubapi.bases.GHBase
io.github.coho04.githubapi.builders.GHTeamBuilder
All Implemented Interfaces:
HttpRequestInterface, JSONHelper

public class GHTeamBuilder extends GHBase
This class is used to build a new GitHub team. It extends GHBase and provides methods for setting the team's properties, and for building the team.
  • Constructor Details

    • GHTeamBuilder

      public GHTeamBuilder(Github github, String url)
      Constructs a new GHTeamBuilder instance with the provided GitHub instance and URL.
      Parameters:
      github - the GitHub instance
      url - the URL
  • Method Details

    • toJSONObject

      public org.json.JSONObject toJSONObject()
      Converts the GHTeamBuilder instance to a JSONObject.
      Overrides:
      toJSONObject in class GHBase
      Returns:
      the JSONObject
    • setName

      public GHTeamBuilder setName(String name)
      Sets the name of the team.
      Parameters:
      name - the name of the team
      Returns:
      the GHTeamBuilder instance
    • setDescription

      public GHTeamBuilder setDescription(String description)
      Sets the description of the team.
      Parameters:
      description - the description of the team
      Returns:
      the GHTeamBuilder instance
    • setMaintainers

      public GHTeamBuilder setMaintainers(List<String> maintainers)
      Sets the maintainers of the team.
      Parameters:
      maintainers - the maintainers of the team
      Returns:
      the GHTeamBuilder instance
    • setNotificationSetting

      public GHTeamBuilder setNotificationSetting(String notificationSetting)
      Sets the notification setting of the team.
      Parameters:
      notificationSetting - the notification setting of the team
      Returns:
      the GHTeamBuilder instance
    • setParentTeamId

      public GHTeamBuilder setParentTeamId(int parentTeamId)
      Sets the parent team id of the team.
      Parameters:
      parentTeamId - the parent team id of the team
      Returns:
      the GHTeamBuilder instance
    • setPermission

      public GHTeamBuilder setPermission(String permission)
      Sets the permission of the team.
      Parameters:
      permission - the permission of the team
      Returns:
      the GHTeamBuilder instance
    • setPrivacy

      public GHTeamBuilder setPrivacy(String privacy)
      Sets the privacy of the team.
      Parameters:
      privacy - the privacy of the team
      Returns:
      the GHTeamBuilder instance
    • setRepoNames

      public GHTeamBuilder setRepoNames(List<String> repoNames)
      Sets the repo names of the team.
      Parameters:
      repoNames - the repo names of the team
      Returns:
      the GHTeamBuilder instance
    • build

      public GHTeam build()
      Builds the team and returns a new GHTeam instance.
      Returns:
      the GHTeam instance
    • getGithub

      public Github getGithub()
      Returns the GitHub instance.
      Returns:
      the GitHub instance
    • getName

      public String getName()
      Returns the name of the team.
      Returns:
      the name of the team
    • getDescription

      public String getDescription()
      Returns the description of the team.
      Returns:
      the description of the team
    • getPrivacy

      public String getPrivacy()
      Returns the privacy of the team.
      Returns:
      the privacy of the team
    • getMaintainers

      public List<String> getMaintainers()
      Returns the maintainers of the team.
      Returns:
      the maintainers of the team
    • getRepoNames

      public List<String> getRepoNames()
      Returns the repo names of the team.
      Returns:
      the repo names of the team
    • getPermission

      public String getPermission()
      Returns the permission of the team.
      Returns:
      the permission of the team
    • getUrl

      public String getUrl()
      Returns the URL.
      Returns:
      the URL
    • getParentTeamId

      public int getParentTeamId()
      Returns the parent team id of the team.
      Returns:
      the parent team id of the team
    • getNotificationSetting

      public String getNotificationSetting()
      Returns the notification setting of the team.
      Returns:
      the notification setting of the team