Class UpdateContactRequest.Builder
- java.lang.Object
-
- com.intercom.api.resources.contacts.requests.UpdateContactRequest.Builder
-
- All Implemented Interfaces:
UpdateContactRequest._FinalStage,UpdateContactRequest.ContactIdStage
- Enclosing class:
- UpdateContactRequest
public static final class UpdateContactRequest.Builder extends java.lang.Object implements UpdateContactRequest.ContactIdStage, UpdateContactRequest._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateContactRequest._FinalStageavatar(java.lang.String avatar)An image URL containing the avatar of a contactUpdateContactRequest._FinalStageavatar(java.util.Optional<java.lang.String> avatar)An image URL containing the avatar of a contactUpdateContactRequestbuild()UpdateContactRequest._FinalStagecontactId(java.lang.String contactId)idUpdateContactRequest._FinalStagecustomAttributes(java.util.Map<java.lang.String,java.lang.Object> customAttributes)The custom attributes which are set for the contactUpdateContactRequest._FinalStagecustomAttributes(java.util.Optional<java.util.Map<java.lang.String,java.lang.Object>> customAttributes)The custom attributes which are set for the contactUpdateContactRequest._FinalStageemail(java.lang.String email)The contacts emailUpdateContactRequest._FinalStageemail(java.util.Optional<java.lang.String> email)The contacts emailUpdateContactRequest._FinalStageexternalId(java.lang.String externalId)A unique identifier for the contact which is given to IntercomUpdateContactRequest._FinalStageexternalId(java.util.Optional<java.lang.String> externalId)A unique identifier for the contact which is given to IntercomUpdateContactRequest.Builderfrom(UpdateContactRequest other)UpdateContactRequest._FinalStagelastSeenAt(java.lang.Integer lastSeenAt)The time when the contact was last seen (either where the Intercom Messenger was installed or when specified manually)UpdateContactRequest._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)UpdateContactRequest._FinalStagename(java.lang.String name)The contacts nameUpdateContactRequest._FinalStagename(java.util.Optional<java.lang.String> name)The contacts nameUpdateContactRequest._FinalStageownerId(java.lang.Integer ownerId)The id of an admin that has been assigned account ownership of the contactUpdateContactRequest._FinalStageownerId(java.util.Optional<java.lang.Integer> ownerId)The id of an admin that has been assigned account ownership of the contactUpdateContactRequest._FinalStagephone(java.lang.String phone)The contacts phoneUpdateContactRequest._FinalStagephone(java.util.Optional<java.lang.String> phone)The contacts phoneUpdateContactRequest._FinalStagerole(java.lang.String role)The role of the contact.UpdateContactRequest._FinalStagerole(java.util.Optional<java.lang.String> role)The role of the contact.UpdateContactRequest._FinalStagesignedUpAt(java.lang.Integer signedUpAt)The time specified for when a contact signed upUpdateContactRequest._FinalStagesignedUpAt(java.util.Optional<java.lang.Integer> signedUpAt)The time specified for when a contact signed upUpdateContactRequest._FinalStageunsubscribedFromEmails(java.lang.Boolean unsubscribedFromEmails)Whether the contact is unsubscribed from emailsUpdateContactRequest._FinalStageunsubscribedFromEmails(java.util.Optional<java.lang.Boolean> unsubscribedFromEmails)Whether the contact is unsubscribed from emails
-
-
-
Method Detail
-
from
public UpdateContactRequest.Builder from(UpdateContactRequest other)
- Specified by:
fromin interfaceUpdateContactRequest.ContactIdStage
-
contactId
public UpdateContactRequest._FinalStage contactId(@NotNull java.lang.String contactId)
id
id
- Specified by:
contactIdin interfaceUpdateContactRequest.ContactIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
customAttributes
public UpdateContactRequest._FinalStage customAttributes(java.util.Map<java.lang.String,java.lang.Object> customAttributes)
The custom attributes which are set for the contact
- Specified by:
customAttributesin interfaceUpdateContactRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
customAttributes
public UpdateContactRequest._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 interfaceUpdateContactRequest._FinalStage
-
unsubscribedFromEmails
public UpdateContactRequest._FinalStage unsubscribedFromEmails(java.lang.Boolean unsubscribedFromEmails)
Whether the contact is unsubscribed from emails
- Specified by:
unsubscribedFromEmailsin interfaceUpdateContactRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
unsubscribedFromEmails
public UpdateContactRequest._FinalStage unsubscribedFromEmails(java.util.Optional<java.lang.Boolean> unsubscribedFromEmails)
Whether the contact is unsubscribed from emails
- Specified by:
unsubscribedFromEmailsin interfaceUpdateContactRequest._FinalStage
-
ownerId
public UpdateContactRequest._FinalStage ownerId(java.lang.Integer ownerId)
The id of an admin that has been assigned account ownership of the contact
- Specified by:
ownerIdin interfaceUpdateContactRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
ownerId
public UpdateContactRequest._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 interfaceUpdateContactRequest._FinalStage
-
lastSeenAt
public UpdateContactRequest._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 interfaceUpdateContactRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
lastSeenAt
public UpdateContactRequest._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 interfaceUpdateContactRequest._FinalStage
-
signedUpAt
public UpdateContactRequest._FinalStage signedUpAt(java.lang.Integer signedUpAt)
The time specified for when a contact signed up
- Specified by:
signedUpAtin interfaceUpdateContactRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
signedUpAt
public UpdateContactRequest._FinalStage signedUpAt(java.util.Optional<java.lang.Integer> signedUpAt)
The time specified for when a contact signed up
- Specified by:
signedUpAtin interfaceUpdateContactRequest._FinalStage
-
avatar
public UpdateContactRequest._FinalStage avatar(java.lang.String avatar)
An image URL containing the avatar of a contact
- Specified by:
avatarin interfaceUpdateContactRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
avatar
public UpdateContactRequest._FinalStage avatar(java.util.Optional<java.lang.String> avatar)
An image URL containing the avatar of a contact
- Specified by:
avatarin interfaceUpdateContactRequest._FinalStage
-
name
public UpdateContactRequest._FinalStage name(java.lang.String name)
The contacts name
- Specified by:
namein interfaceUpdateContactRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
name
public UpdateContactRequest._FinalStage name(java.util.Optional<java.lang.String> name)
The contacts name
- Specified by:
namein interfaceUpdateContactRequest._FinalStage
-
phone
public UpdateContactRequest._FinalStage phone(java.lang.String phone)
The contacts phone
- Specified by:
phonein interfaceUpdateContactRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
phone
public UpdateContactRequest._FinalStage phone(java.util.Optional<java.lang.String> phone)
The contacts phone
- Specified by:
phonein interfaceUpdateContactRequest._FinalStage
-
email
public UpdateContactRequest._FinalStage email(java.lang.String email)
The contacts email
- Specified by:
emailin interfaceUpdateContactRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
email
public UpdateContactRequest._FinalStage email(java.util.Optional<java.lang.String> email)
The contacts email
- Specified by:
emailin interfaceUpdateContactRequest._FinalStage
-
externalId
public UpdateContactRequest._FinalStage externalId(java.lang.String externalId)
A unique identifier for the contact which is given to Intercom
- Specified by:
externalIdin interfaceUpdateContactRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
externalId
public UpdateContactRequest._FinalStage externalId(java.util.Optional<java.lang.String> externalId)
A unique identifier for the contact which is given to Intercom
- Specified by:
externalIdin interfaceUpdateContactRequest._FinalStage
-
role
public UpdateContactRequest._FinalStage role(java.lang.String role)
The role of the contact.
- Specified by:
rolein interfaceUpdateContactRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
role
public UpdateContactRequest._FinalStage role(java.util.Optional<java.lang.String> role)
The role of the contact.
- Specified by:
rolein interfaceUpdateContactRequest._FinalStage
-
build
public UpdateContactRequest build()
- Specified by:
buildin interfaceUpdateContactRequest._FinalStage
-
-