Class TeammateReference.Builder
- java.lang.Object
-
- com.intercom.api.resources.unstable.types.TeammateReference.Builder
-
- All Implemented Interfaces:
TeammateReference._FinalStage,TeammateReference.IdStage,TeammateReference.NameStage,TeammateReference.TypeStage
- Enclosing class:
- TeammateReference
public static final class TeammateReference.Builder extends java.lang.Object implements TeammateReference.TypeStage, TeammateReference.IdStage, TeammateReference.NameStage, TeammateReference._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TeammateReferencebuild()TeammateReference._FinalStageemail(java.lang.String email)The email address of the teammate (optional for teams/bots)TeammateReference._FinalStageemail(java.util.Optional<java.lang.String> email)The email address of the teammate (optional for teams/bots)TeammateReference.Builderfrom(TeammateReference other)TeammateReference.NameStageid(int id)The unique identifier of the teammateTeammateReference._FinalStagename(java.lang.String name)The display name of the teammateTeammateReference.IdStagetype(TeammateReference.Type type)The type of teammate
-
-
-
Method Detail
-
from
public TeammateReference.Builder from(TeammateReference other)
- Specified by:
fromin interfaceTeammateReference.TypeStage
-
type
public TeammateReference.IdStage type(@NotNull TeammateReference.Type type)
The type of teammate
The type of teammate
- Specified by:
typein interfaceTeammateReference.TypeStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
id
public TeammateReference.NameStage id(int id)
The unique identifier of the teammate
The unique identifier of the teammate
- Specified by:
idin interfaceTeammateReference.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
name
public TeammateReference._FinalStage name(@NotNull java.lang.String name)
The display name of the teammate
The display name of the teammate
- Specified by:
namein interfaceTeammateReference.NameStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
email
public TeammateReference._FinalStage email(java.lang.String email)
The email address of the teammate (optional for teams/bots)
- Specified by:
emailin interfaceTeammateReference._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
email
public TeammateReference._FinalStage email(java.util.Optional<java.lang.String> email)
The email address of the teammate (optional for teams/bots)
- Specified by:
emailin interfaceTeammateReference._FinalStage
-
build
public TeammateReference build()
- Specified by:
buildin interfaceTeammateReference._FinalStage
-
-