Class CustomChannelContact.Builder
- java.lang.Object
-
- com.intercom.api.resources.unstable.types.CustomChannelContact.Builder
-
- All Implemented Interfaces:
CustomChannelContact._FinalStage,CustomChannelContact.EmailStage,CustomChannelContact.ExternalIdStage,CustomChannelContact.NameStage,CustomChannelContact.TypeStage
- Enclosing class:
- CustomChannelContact
public static final class CustomChannelContact.Builder extends java.lang.Object implements CustomChannelContact.TypeStage, CustomChannelContact.ExternalIdStage, CustomChannelContact.NameStage, CustomChannelContact.EmailStage, CustomChannelContact._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CustomChannelContactbuild()CustomChannelContact._FinalStageemail(java.lang.String email)Email address of the contact.CustomChannelContact.NameStageexternalId(java.lang.String externalId)External identifier for the contact.CustomChannelContact.Builderfrom(CustomChannelContact other)CustomChannelContact.EmailStagename(java.lang.String name)Name of the contact.CustomChannelContact.ExternalIdStagetype(CustomChannelContact.Type type)Type of contact, must be "user" or "lead".
-
-
-
Method Detail
-
from
public CustomChannelContact.Builder from(CustomChannelContact other)
- Specified by:
fromin interfaceCustomChannelContact.TypeStage
-
type
public CustomChannelContact.ExternalIdStage type(@NotNull CustomChannelContact.Type type)
Type of contact, must be "user" or "lead".Type of contact, must be "user" or "lead".
- Specified by:
typein interfaceCustomChannelContact.TypeStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
externalId
public CustomChannelContact.NameStage externalId(@NotNull java.lang.String externalId)
External identifier for the contact. Intercom will take care of the mapping of your external_id with our internal ones so you don't have to worry about it.External identifier for the contact. Intercom will take care of the mapping of your external_id with our internal ones so you don't have to worry about it.
- Specified by:
externalIdin interfaceCustomChannelContact.ExternalIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
name
public CustomChannelContact.EmailStage name(@NotNull java.lang.String name)
Name of the contact.Name of the contact.
- Specified by:
namein interfaceCustomChannelContact.NameStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
email
public CustomChannelContact._FinalStage email(@NotNull java.lang.String email)
Email address of the contact.Email address of the contact.
- Specified by:
emailin interfaceCustomChannelContact.EmailStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
build
public CustomChannelContact build()
- Specified by:
buildin interfaceCustomChannelContact._FinalStage
-
-