Class CreateContactRequest.WithExternalId.Builder
- java.lang.Object
-
- com.intercom.api.types.CreateContactRequest.WithExternalId.Builder
-
- All Implemented Interfaces:
CreateContactRequest.WithExternalId._FinalStage,CreateContactRequest.WithExternalId.ExternalIdStage
- Enclosing class:
- CreateContactRequest.WithExternalId
public static final class CreateContactRequest.WithExternalId.Builder extends java.lang.Object implements CreateContactRequest.WithExternalId.ExternalIdStage, CreateContactRequest.WithExternalId._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateContactRequest.WithExternalId._FinalStageavatar(java.lang.String avatar)An image URL containing the avatar of a contactCreateContactRequest.WithExternalId._FinalStageavatar(java.util.Optional<java.lang.String> avatar)An image URL containing the avatar of a contactCreateContactRequest.WithExternalIdbuild()CreateContactRequest.WithExternalId._FinalStagecustomAttributes(java.util.Map<java.lang.String,java.lang.Object> customAttributes)The custom attributes which are set for the contactCreateContactRequest.WithExternalId._FinalStagecustomAttributes(java.util.Optional<java.util.Map<java.lang.String,java.lang.Object>> customAttributes)The custom attributes which are set for the contactCreateContactRequest.WithExternalId._FinalStageexternalId(java.lang.String externalId)A unique identifier for the contact which is given to IntercomCreateContactRequest.WithExternalId.Builderfrom(CreateContactRequest.WithExternalId other)CreateContactRequest.WithExternalId._FinalStagelastSeenAt(java.lang.Integer lastSeenAt)The time when the contact was last seen (either where the Intercom Messenger was installed or when specified manually)CreateContactRequest.WithExternalId._FinalStagelastSeenAt(java.util.Optional<java.lang.Integer> lastSeenAt)The time when the contact was last seen (either where the Intercom Messenger was installed or when specified manually)CreateContactRequest.WithExternalId._FinalStagename(java.lang.String name)The contacts nameCreateContactRequest.WithExternalId._FinalStagename(java.util.Optional<java.lang.String> name)The contacts nameCreateContactRequest.WithExternalId._FinalStageownerId(java.lang.Integer ownerId)The id of an admin that has been assigned account ownership of the contactCreateContactRequest.WithExternalId._FinalStageownerId(java.util.Optional<java.lang.Integer> ownerId)The id of an admin that has been assigned account ownership of the contactCreateContactRequest.WithExternalId._FinalStagephone(java.lang.String phone)The contacts phoneCreateContactRequest.WithExternalId._FinalStagephone(java.util.Optional<java.lang.String> phone)The contacts phoneCreateContactRequest.WithExternalId._FinalStagesignedUpAt(java.lang.Integer signedUpAt)The time specified for when a contact signed upCreateContactRequest.WithExternalId._FinalStagesignedUpAt(java.util.Optional<java.lang.Integer> signedUpAt)The time specified for when a contact signed upCreateContactRequest.WithExternalId._FinalStageunsubscribedFromEmails(java.lang.Boolean unsubscribedFromEmails)Whether the contact is unsubscribed from emailsCreateContactRequest.WithExternalId._FinalStageunsubscribedFromEmails(java.util.Optional<java.lang.Boolean> unsubscribedFromEmails)Whether the contact is unsubscribed from emails
-
-
-
Method Detail
-
from
public CreateContactRequest.WithExternalId.Builder from(CreateContactRequest.WithExternalId other)
- Specified by:
fromin interfaceCreateContactRequest.WithExternalId.ExternalIdStage
-
externalId
public CreateContactRequest.WithExternalId._FinalStage externalId(@NotNull java.lang.String externalId)
A unique identifier for the contact which is given to Intercom
A unique identifier for the contact which is given to Intercom
- Specified by:
externalIdin interfaceCreateContactRequest.WithExternalId.ExternalIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
customAttributes
public CreateContactRequest.WithExternalId._FinalStage customAttributes(java.util.Map<java.lang.String,java.lang.Object> customAttributes)
The custom attributes which are set for the contact
- Specified by:
customAttributesin interfaceCreateContactRequest.WithExternalId._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
customAttributes
public CreateContactRequest.WithExternalId._FinalStage customAttributes(java.util.Optional<java.util.Map<java.lang.String,java.lang.Object>> customAttributes)
The custom attributes which are set for the contact
- Specified by:
customAttributesin interfaceCreateContactRequest.WithExternalId._FinalStage
-
unsubscribedFromEmails
public CreateContactRequest.WithExternalId._FinalStage unsubscribedFromEmails(java.lang.Boolean unsubscribedFromEmails)
Whether the contact is unsubscribed from emails
- Specified by:
unsubscribedFromEmailsin interfaceCreateContactRequest.WithExternalId._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
unsubscribedFromEmails
public CreateContactRequest.WithExternalId._FinalStage unsubscribedFromEmails(java.util.Optional<java.lang.Boolean> unsubscribedFromEmails)
Whether the contact is unsubscribed from emails
- Specified by:
unsubscribedFromEmailsin interfaceCreateContactRequest.WithExternalId._FinalStage
-
ownerId
public CreateContactRequest.WithExternalId._FinalStage ownerId(java.lang.Integer ownerId)
The id of an admin that has been assigned account ownership of the contact
- Specified by:
ownerIdin interfaceCreateContactRequest.WithExternalId._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
ownerId
public CreateContactRequest.WithExternalId._FinalStage ownerId(java.util.Optional<java.lang.Integer> ownerId)
The id of an admin that has been assigned account ownership of the contact
- Specified by:
ownerIdin interfaceCreateContactRequest.WithExternalId._FinalStage
-
lastSeenAt
public CreateContactRequest.WithExternalId._FinalStage lastSeenAt(java.lang.Integer lastSeenAt)
The time when the contact was last seen (either where the Intercom Messenger was installed or when specified manually)
- Specified by:
lastSeenAtin interfaceCreateContactRequest.WithExternalId._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
lastSeenAt
public CreateContactRequest.WithExternalId._FinalStage lastSeenAt(java.util.Optional<java.lang.Integer> lastSeenAt)
The time when the contact was last seen (either where the Intercom Messenger was installed or when specified manually)
- Specified by:
lastSeenAtin interfaceCreateContactRequest.WithExternalId._FinalStage
-
signedUpAt
public CreateContactRequest.WithExternalId._FinalStage signedUpAt(java.lang.Integer signedUpAt)
The time specified for when a contact signed up
- Specified by:
signedUpAtin interfaceCreateContactRequest.WithExternalId._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
signedUpAt
public CreateContactRequest.WithExternalId._FinalStage signedUpAt(java.util.Optional<java.lang.Integer> signedUpAt)
The time specified for when a contact signed up
- Specified by:
signedUpAtin interfaceCreateContactRequest.WithExternalId._FinalStage
-
avatar
public CreateContactRequest.WithExternalId._FinalStage avatar(java.lang.String avatar)
An image URL containing the avatar of a contact
- Specified by:
avatarin interfaceCreateContactRequest.WithExternalId._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
avatar
public CreateContactRequest.WithExternalId._FinalStage avatar(java.util.Optional<java.lang.String> avatar)
An image URL containing the avatar of a contact
- Specified by:
avatarin interfaceCreateContactRequest.WithExternalId._FinalStage
-
name
public CreateContactRequest.WithExternalId._FinalStage name(java.lang.String name)
The contacts name
- Specified by:
namein interfaceCreateContactRequest.WithExternalId._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
name
public CreateContactRequest.WithExternalId._FinalStage name(java.util.Optional<java.lang.String> name)
The contacts name
- Specified by:
namein interfaceCreateContactRequest.WithExternalId._FinalStage
-
phone
public CreateContactRequest.WithExternalId._FinalStage phone(java.lang.String phone)
The contacts phone
- Specified by:
phonein interfaceCreateContactRequest.WithExternalId._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
phone
public CreateContactRequest.WithExternalId._FinalStage phone(java.util.Optional<java.lang.String> phone)
The contacts phone
- Specified by:
phonein interfaceCreateContactRequest.WithExternalId._FinalStage
-
build
public CreateContactRequest.WithExternalId build()
- Specified by:
buildin interfaceCreateContactRequest.WithExternalId._FinalStage
-
-