Class Team.Builder
- java.lang.Object
-
- com.intercom.api.resources.teams.types.Team.Builder
-
- All Implemented Interfaces:
Team._FinalStage,Team.IdStage,Team.NameStage
- Enclosing class:
- Team
public static final class Team.Builder extends java.lang.Object implements Team.IdStage, Team.NameStage, Team._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Team._FinalStageaddAdminIds(java.lang.Integer adminIds)The list of admin IDs that are a part of the team.Team._FinalStageaddAllAdminIds(java.util.List<java.lang.Integer> adminIds)The list of admin IDs that are a part of the team.Team._FinalStageadminIds(java.util.List<java.lang.Integer> adminIds)The list of admin IDs that are a part of the team.Team._FinalStageadminPriorityLevel(AdminPriorityLevel adminPriorityLevel)Team._FinalStageadminPriorityLevel(java.util.Optional<AdminPriorityLevel> adminPriorityLevel)Teambuild()Team.Builderfrom(Team other)Team.NameStageid(java.lang.String id)The id of the teamTeam._FinalStagename(java.lang.String name)The name of the team
-
-
-
Method Detail
-
from
public Team.Builder from(Team other)
- Specified by:
fromin interfaceTeam.IdStage
-
id
public Team.NameStage id(@NotNull java.lang.String id)
The id of the teamThe id of the team
- Specified by:
idin interfaceTeam.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
name
public Team._FinalStage name(@NotNull java.lang.String name)
The name of the teamThe name of the team
- Specified by:
namein interfaceTeam.NameStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
adminPriorityLevel
public Team._FinalStage adminPriorityLevel(AdminPriorityLevel adminPriorityLevel)
- Specified by:
adminPriorityLevelin interfaceTeam._FinalStage
-
adminPriorityLevel
public Team._FinalStage adminPriorityLevel(java.util.Optional<AdminPriorityLevel> adminPriorityLevel)
- Specified by:
adminPriorityLevelin interfaceTeam._FinalStage
-
addAllAdminIds
public Team._FinalStage addAllAdminIds(java.util.List<java.lang.Integer> adminIds)
The list of admin IDs that are a part of the team.
- Specified by:
addAllAdminIdsin interfaceTeam._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
addAdminIds
public Team._FinalStage addAdminIds(java.lang.Integer adminIds)
The list of admin IDs that are a part of the team.
- Specified by:
addAdminIdsin interfaceTeam._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
adminIds
public Team._FinalStage adminIds(java.util.List<java.lang.Integer> adminIds)
The list of admin IDs that are a part of the team.
- Specified by:
adminIdsin interfaceTeam._FinalStage
-
build
public Team build()
- Specified by:
buildin interfaceTeam._FinalStage
-
-