Class Admin.Builder
- java.lang.Object
-
- com.intercom.api.resources.admins.types.Admin.Builder
-
- All Implemented Interfaces:
Admin._FinalStage,Admin.AwayModeEnabledStage,Admin.AwayModeReassignStage,Admin.EmailStage,Admin.HasInboxSeatStage,Admin.IdStage,Admin.NameStage
- Enclosing class:
- Admin
public static final class Admin.Builder extends java.lang.Object implements Admin.IdStage, Admin.NameStage, Admin.EmailStage, Admin.AwayModeEnabledStage, Admin.AwayModeReassignStage, Admin.HasInboxSeatStage, Admin._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Admin._FinalStageaddAllTeamIds(java.util.List<java.lang.Integer> teamIds)This object represents the avatar associated with the admin.Admin._FinalStageaddTeamIds(java.lang.Integer teamIds)This object represents the avatar associated with the admin.Admin._FinalStageavatar(Admin.Avatar avatar)The avatar object associated with the adminAdmin._FinalStageavatar(java.util.Optional<Admin.Avatar> avatar)The avatar object associated with the adminAdmin.AwayModeReassignStageawayModeEnabled(boolean awayModeEnabled)Identifies if this admin is currently set in away mode.Admin.HasInboxSeatStageawayModeReassign(boolean awayModeReassign)Identifies if this admin is set to automatically reassign new conversations to the apps default inbox.Admin._FinalStageawayStatusReasonId(java.lang.Integer awayStatusReasonId)The unique identifier of the away status reasonAdmin._FinalStageawayStatusReasonId(java.util.Optional<java.lang.Integer> awayStatusReasonId)The unique identifier of the away status reasonAdminbuild()Admin.AwayModeEnabledStageemail(java.lang.String email)The email of the admin.Admin.Builderfrom(Admin other)Admin._FinalStagehasInboxSeat(boolean hasInboxSeat)Identifies if this admin has a paid inbox seat to restrict/allow features that require them.Admin.NameStageid(java.lang.String id)The id representing the admin.Admin._FinalStagejobTitle(java.lang.String jobTitle)The job title of the admin.Admin._FinalStagejobTitle(java.util.Optional<java.lang.String> jobTitle)The job title of the admin.Admin.EmailStagename(java.lang.String name)The name of the admin.Admin._FinalStageteamIds(java.util.List<java.lang.Integer> teamIds)This object represents the avatar associated with the admin.Admin._FinalStageteamPriorityLevel(TeamPriorityLevel teamPriorityLevel)Admin._FinalStageteamPriorityLevel(java.util.Optional<TeamPriorityLevel> teamPriorityLevel)Admin._FinalStagetype(java.lang.String type)String representing the object's type.Admin._FinalStagetype(java.util.Optional<java.lang.String> type)String representing the object's type.
-
-
-
Method Detail
-
from
public Admin.Builder from(Admin other)
- Specified by:
fromin interfaceAdmin.IdStage
-
id
public Admin.NameStage id(@NotNull java.lang.String id)
The id representing the admin.
The id representing the admin.
- Specified by:
idin interfaceAdmin.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
name
public Admin.EmailStage name(@NotNull java.lang.String name)
The name of the admin.
The name of the admin.
- Specified by:
namein interfaceAdmin.NameStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
email
public Admin.AwayModeEnabledStage email(@NotNull java.lang.String email)
The email of the admin.
The email of the admin.
- Specified by:
emailin interfaceAdmin.EmailStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
awayModeEnabled
public Admin.AwayModeReassignStage awayModeEnabled(boolean awayModeEnabled)
Identifies if this admin is currently set in away mode.
Identifies if this admin is currently set in away mode.
- Specified by:
awayModeEnabledin interfaceAdmin.AwayModeEnabledStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
awayModeReassign
public Admin.HasInboxSeatStage awayModeReassign(boolean awayModeReassign)
Identifies if this admin is set to automatically reassign new conversations to the apps default inbox.
Identifies if this admin is set to automatically reassign new conversations to the apps default inbox.
- Specified by:
awayModeReassignin interfaceAdmin.AwayModeReassignStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
hasInboxSeat
public Admin._FinalStage hasInboxSeat(boolean hasInboxSeat)
Identifies if this admin has a paid inbox seat to restrict/allow features that require them.
Identifies if this admin has a paid inbox seat to restrict/allow features that require them.
- Specified by:
hasInboxSeatin interfaceAdmin.HasInboxSeatStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
teamPriorityLevel
public Admin._FinalStage teamPriorityLevel(TeamPriorityLevel teamPriorityLevel)
- Specified by:
teamPriorityLevelin interfaceAdmin._FinalStage
-
teamPriorityLevel
public Admin._FinalStage teamPriorityLevel(java.util.Optional<TeamPriorityLevel> teamPriorityLevel)
- Specified by:
teamPriorityLevelin interfaceAdmin._FinalStage
-
avatar
public Admin._FinalStage avatar(Admin.Avatar avatar)
The avatar object associated with the admin
- Specified by:
avatarin interfaceAdmin._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
avatar
public Admin._FinalStage avatar(java.util.Optional<Admin.Avatar> avatar)
The avatar object associated with the admin
- Specified by:
avatarin interfaceAdmin._FinalStage
-
addAllTeamIds
public Admin._FinalStage addAllTeamIds(java.util.List<java.lang.Integer> teamIds)
This object represents the avatar associated with the admin.
- Specified by:
addAllTeamIdsin interfaceAdmin._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
addTeamIds
public Admin._FinalStage addTeamIds(java.lang.Integer teamIds)
This object represents the avatar associated with the admin.
- Specified by:
addTeamIdsin interfaceAdmin._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
teamIds
public Admin._FinalStage teamIds(java.util.List<java.lang.Integer> teamIds)
This object represents the avatar associated with the admin.
- Specified by:
teamIdsin interfaceAdmin._FinalStage
-
awayStatusReasonId
public Admin._FinalStage awayStatusReasonId(java.lang.Integer awayStatusReasonId)
The unique identifier of the away status reason
- Specified by:
awayStatusReasonIdin interfaceAdmin._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
awayStatusReasonId
public Admin._FinalStage awayStatusReasonId(java.util.Optional<java.lang.Integer> awayStatusReasonId)
The unique identifier of the away status reason
- Specified by:
awayStatusReasonIdin interfaceAdmin._FinalStage
-
jobTitle
public Admin._FinalStage jobTitle(java.lang.String jobTitle)
The job title of the admin.
- Specified by:
jobTitlein interfaceAdmin._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
jobTitle
public Admin._FinalStage jobTitle(java.util.Optional<java.lang.String> jobTitle)
The job title of the admin.
- Specified by:
jobTitlein interfaceAdmin._FinalStage
-
type
public Admin._FinalStage type(java.lang.String type)
String representing the object's type. Always has the value
admin.- Specified by:
typein interfaceAdmin._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
type
public Admin._FinalStage type(java.util.Optional<java.lang.String> type)
String representing the object's type. Always has the value
admin.- Specified by:
typein interfaceAdmin._FinalStage
-
build
public Admin build()
- Specified by:
buildin interfaceAdmin._FinalStage
-
-