Class CustomChannelContact.Builder
- java.lang.Object
-
- com.intercom.api.resources.unstable.types.CustomChannelContact.Builder
-
- All Implemented Interfaces:
CustomChannelContact._FinalStage,CustomChannelContact.ExternalIdStage,CustomChannelContact.TypeStage
- Enclosing class:
- CustomChannelContact
public static final class CustomChannelContact.Builder extends java.lang.Object implements CustomChannelContact.TypeStage, CustomChannelContact.ExternalIdStage, 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._FinalStageemail(java.util.Optional<java.lang.String> email)Email address of the contact.CustomChannelContact._FinalStageexternalId(java.lang.String externalId)External identifier for the contact.CustomChannelContact.Builderfrom(CustomChannelContact other)CustomChannelContact._FinalStagename(java.lang.String name)Name of the contact.CustomChannelContact._FinalStagename(java.util.Optional<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._FinalStage 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.
-
email
public CustomChannelContact._FinalStage email(java.lang.String email)
Email address of the contact. Required for user type.
- Specified by:
emailin interfaceCustomChannelContact._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
email
public CustomChannelContact._FinalStage email(java.util.Optional<java.lang.String> email)
Email address of the contact. Required for user type.
- Specified by:
emailin interfaceCustomChannelContact._FinalStage
-
name
public CustomChannelContact._FinalStage name(java.lang.String name)
Name of the contact. Required for user type.
- Specified by:
namein interfaceCustomChannelContact._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
name
public CustomChannelContact._FinalStage name(java.util.Optional<java.lang.String> name)
Name of the contact. Required for user type.
- Specified by:
namein interfaceCustomChannelContact._FinalStage
-
build
public CustomChannelContact build()
- Specified by:
buildin interfaceCustomChannelContact._FinalStage
-
-