Class CreateContactRequest.WithEmail.Builder
- java.lang.Object
-
- com.intercom.api.types.CreateContactRequest.WithEmail.Builder
-
- All Implemented Interfaces:
CreateContactRequest.WithEmail._FinalStage,CreateContactRequest.WithEmail.EmailStage
- Enclosing class:
- CreateContactRequest.WithEmail
public static final class CreateContactRequest.WithEmail.Builder extends java.lang.Object implements CreateContactRequest.WithEmail.EmailStage, CreateContactRequest.WithEmail._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateContactRequest.WithEmail._FinalStageavatar(java.lang.String avatar)An image URL containing the avatar of a contactCreateContactRequest.WithEmail._FinalStageavatar(java.util.Optional<java.lang.String> avatar)An image URL containing the avatar of a contactCreateContactRequest.WithEmailbuild()CreateContactRequest.WithEmail._FinalStagecustomAttributes(java.util.Map<java.lang.String,java.lang.Object> customAttributes)The custom attributes which are set for the contactCreateContactRequest.WithEmail._FinalStagecustomAttributes(java.util.Optional<java.util.Map<java.lang.String,java.lang.Object>> customAttributes)The custom attributes which are set for the contactCreateContactRequest.WithEmail._FinalStageemail(java.lang.String email)The contacts emailCreateContactRequest.WithEmail.Builderfrom(CreateContactRequest.WithEmail other)CreateContactRequest.WithEmail._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.WithEmail._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.WithEmail._FinalStagename(java.lang.String name)The contacts nameCreateContactRequest.WithEmail._FinalStagename(java.util.Optional<java.lang.String> name)The contacts nameCreateContactRequest.WithEmail._FinalStageownerId(java.lang.Integer ownerId)The id of an admin that has been assigned account ownership of the contactCreateContactRequest.WithEmail._FinalStageownerId(java.util.Optional<java.lang.Integer> ownerId)The id of an admin that has been assigned account ownership of the contactCreateContactRequest.WithEmail._FinalStagephone(java.lang.String phone)The contacts phoneCreateContactRequest.WithEmail._FinalStagephone(java.util.Optional<java.lang.String> phone)The contacts phoneCreateContactRequest.WithEmail._FinalStagesignedUpAt(java.lang.Integer signedUpAt)The time specified for when a contact signed upCreateContactRequest.WithEmail._FinalStagesignedUpAt(java.util.Optional<java.lang.Integer> signedUpAt)The time specified for when a contact signed upCreateContactRequest.WithEmail._FinalStageunsubscribedFromEmails(java.lang.Boolean unsubscribedFromEmails)Whether the contact is unsubscribed from emailsCreateContactRequest.WithEmail._FinalStageunsubscribedFromEmails(java.util.Optional<java.lang.Boolean> unsubscribedFromEmails)Whether the contact is unsubscribed from emails
-
-
-
Method Detail
-
from
public CreateContactRequest.WithEmail.Builder from(CreateContactRequest.WithEmail other)
- Specified by:
fromin interfaceCreateContactRequest.WithEmail.EmailStage
-
email
public CreateContactRequest.WithEmail._FinalStage email(@NotNull java.lang.String email)
The contacts email
The contacts email
- Specified by:
emailin interfaceCreateContactRequest.WithEmail.EmailStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
customAttributes
public CreateContactRequest.WithEmail._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.WithEmail._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
customAttributes
public CreateContactRequest.WithEmail._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.WithEmail._FinalStage
-
unsubscribedFromEmails
public CreateContactRequest.WithEmail._FinalStage unsubscribedFromEmails(java.lang.Boolean unsubscribedFromEmails)
Whether the contact is unsubscribed from emails
- Specified by:
unsubscribedFromEmailsin interfaceCreateContactRequest.WithEmail._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
unsubscribedFromEmails
public CreateContactRequest.WithEmail._FinalStage unsubscribedFromEmails(java.util.Optional<java.lang.Boolean> unsubscribedFromEmails)
Whether the contact is unsubscribed from emails
- Specified by:
unsubscribedFromEmailsin interfaceCreateContactRequest.WithEmail._FinalStage
-
ownerId
public CreateContactRequest.WithEmail._FinalStage ownerId(java.lang.Integer ownerId)
The id of an admin that has been assigned account ownership of the contact
- Specified by:
ownerIdin interfaceCreateContactRequest.WithEmail._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
ownerId
public CreateContactRequest.WithEmail._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.WithEmail._FinalStage
-
lastSeenAt
public CreateContactRequest.WithEmail._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.WithEmail._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
lastSeenAt
public CreateContactRequest.WithEmail._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.WithEmail._FinalStage
-
signedUpAt
public CreateContactRequest.WithEmail._FinalStage signedUpAt(java.lang.Integer signedUpAt)
The time specified for when a contact signed up
- Specified by:
signedUpAtin interfaceCreateContactRequest.WithEmail._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
signedUpAt
public CreateContactRequest.WithEmail._FinalStage signedUpAt(java.util.Optional<java.lang.Integer> signedUpAt)
The time specified for when a contact signed up
- Specified by:
signedUpAtin interfaceCreateContactRequest.WithEmail._FinalStage
-
avatar
public CreateContactRequest.WithEmail._FinalStage avatar(java.lang.String avatar)
An image URL containing the avatar of a contact
- Specified by:
avatarin interfaceCreateContactRequest.WithEmail._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
avatar
public CreateContactRequest.WithEmail._FinalStage avatar(java.util.Optional<java.lang.String> avatar)
An image URL containing the avatar of a contact
- Specified by:
avatarin interfaceCreateContactRequest.WithEmail._FinalStage
-
name
public CreateContactRequest.WithEmail._FinalStage name(java.lang.String name)
The contacts name
- Specified by:
namein interfaceCreateContactRequest.WithEmail._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
name
public CreateContactRequest.WithEmail._FinalStage name(java.util.Optional<java.lang.String> name)
The contacts name
- Specified by:
namein interfaceCreateContactRequest.WithEmail._FinalStage
-
phone
public CreateContactRequest.WithEmail._FinalStage phone(java.lang.String phone)
The contacts phone
- Specified by:
phonein interfaceCreateContactRequest.WithEmail._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
phone
public CreateContactRequest.WithEmail._FinalStage phone(java.util.Optional<java.lang.String> phone)
The contacts phone
- Specified by:
phonein interfaceCreateContactRequest.WithEmail._FinalStage
-
build
public CreateContactRequest.WithEmail build()
- Specified by:
buildin interfaceCreateContactRequest.WithEmail._FinalStage
-
-