Class Team.Builder
- java.lang.Object
-
- com.intercom.api.resources.teams.types.Team.Builder
-
- All Implemented Interfaces:
Team._FinalStage,Team.IdStage,Team.NameStage,Team.TypeStage
- Enclosing class:
- Team
public static final class Team.Builder extends java.lang.Object implements Team.TypeStage, 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)Team._FinalStageassignmentLimit(java.lang.Integer assignmentLimit)The assignment limit for the team.Team._FinalStageassignmentLimit(java.util.Optional<java.lang.Integer> assignmentLimit)The assignment limit for the team.Teambuild()Team._FinalStagedistributionMethod(java.lang.String distributionMethod)Describes how assignments are distributed among the team membersTeam._FinalStagedistributionMethod(java.util.Optional<java.lang.String> distributionMethod)Describes how assignments are distributed among the team membersTeam.Builderfrom(Team other)Team.NameStageid(java.lang.String id)The id of the teamTeam._FinalStagename(java.lang.String name)The name of the teamTeam.IdStagetype(java.lang.String type)Value is always "team"
-
-
-
Method Detail
-
from
public Team.Builder from(Team other)
- Specified by:
fromin interfaceTeam.TypeStage
-
type
public Team.IdStage type(@NotNull java.lang.String type)
Value is always "team"
Value is always "team"
- Specified by:
typein interfaceTeam.TypeStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
id
public Team.NameStage id(@NotNull java.lang.String id)
The id of the team
The 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 team
The name of the team
- Specified by:
namein interfaceTeam.NameStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
distributionMethod
public Team._FinalStage distributionMethod(java.lang.String distributionMethod)
Describes how assignments are distributed among the team members
- Specified by:
distributionMethodin interfaceTeam._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
distributionMethod
public Team._FinalStage distributionMethod(java.util.Optional<java.lang.String> distributionMethod)
Describes how assignments are distributed among the team members
- Specified by:
distributionMethodin interfaceTeam._FinalStage
-
assignmentLimit
public Team._FinalStage assignmentLimit(java.lang.Integer assignmentLimit)
The assignment limit for the team. This field is only present when the team's distribution type is load balanced.
- Specified by:
assignmentLimitin interfaceTeam._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
assignmentLimit
public Team._FinalStage assignmentLimit(java.util.Optional<java.lang.Integer> assignmentLimit)
The assignment limit for the team. This field is only present when the team's distribution type is load balanced.
- Specified by:
assignmentLimitin interfaceTeam._FinalStage
-
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
-
-