Class CreateContactResponse.Builder
- java.lang.Object
-
- com.intercom.api.resources.unstable.contacts.types.CreateContactResponse.Builder
-
- Enclosing class:
- CreateContactResponse
public static final class CreateContactResponse.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateContactResponse.BuilderandroidAppName(java.lang.String androidAppName)CreateContactResponse.BuilderandroidAppName(java.util.Optional<java.lang.String> androidAppName)The name of the Android app which the contact is using.CreateContactResponse.BuilderandroidAppVersion(java.lang.String androidAppVersion)CreateContactResponse.BuilderandroidAppVersion(java.util.Optional<java.lang.String> androidAppVersion)The version of the Android app which the contact is using.CreateContactResponse.BuilderandroidDevice(java.lang.String androidDevice)CreateContactResponse.BuilderandroidDevice(java.util.Optional<java.lang.String> androidDevice)The Android device which the contact is using.CreateContactResponse.BuilderandroidLastSeenAt(java.lang.Integer androidLastSeenAt)CreateContactResponse.BuilderandroidLastSeenAt(java.util.Optional<java.lang.Integer> androidLastSeenAt)(UNIX timestamp) The time when the contact was last seen on an Android device.CreateContactResponse.BuilderandroidOsVersion(java.lang.String androidOsVersion)CreateContactResponse.BuilderandroidOsVersion(java.util.Optional<java.lang.String> androidOsVersion)The version of the Android OS which the contact is using.CreateContactResponse.BuilderandroidSdkVersion(java.lang.String androidSdkVersion)CreateContactResponse.BuilderandroidSdkVersion(java.util.Optional<java.lang.String> androidSdkVersion)The version of the Android SDK which the contact is using.CreateContactResponse.Builderavatar(CreateContactResponse.Avatar avatar)CreateContactResponse.Builderavatar(java.util.Optional<CreateContactResponse.Avatar> avatar)CreateContactResponse.Builderbrowser(java.lang.String browser)CreateContactResponse.Builderbrowser(java.util.Optional<java.lang.String> browser)The name of the browser which the contact is using.CreateContactResponse.BuilderbrowserLanguage(java.lang.String browserLanguage)CreateContactResponse.BuilderbrowserLanguage(java.util.Optional<java.lang.String> browserLanguage)The language set by the browser which the contact is using.CreateContactResponse.BuilderbrowserVersion(java.lang.String browserVersion)CreateContactResponse.BuilderbrowserVersion(java.util.Optional<java.lang.String> browserVersion)The version of the browser which the contact is using.CreateContactResponsebuild()CreateContactResponse.Buildercompanies(ContactCompanies companies)CreateContactResponse.Buildercompanies(java.util.Optional<ContactCompanies> companies)CreateContactResponse.BuildercreatedAt(java.lang.Integer createdAt)CreateContactResponse.BuildercreatedAt(java.util.Optional<java.lang.Integer> createdAt)(UNIX timestamp) The time when the contact was created.CreateContactResponse.BuildercustomAttributes(java.util.Map<java.lang.String,java.lang.Object> customAttributes)CreateContactResponse.BuildercustomAttributes(java.util.Optional<java.util.Map<java.lang.String,java.lang.Object>> customAttributes)The custom attributes which are set for the contact.CreateContactResponse.Builderemail(java.lang.String email)CreateContactResponse.Builderemail(java.util.Optional<java.lang.String> email)The contact's email.CreateContactResponse.BuilderemailDomain(java.lang.String emailDomain)CreateContactResponse.BuilderemailDomain(java.util.Optional<java.lang.String> emailDomain)The contact's email domain.CreateContactResponse.BuilderenabledPushMessaging(java.lang.Boolean enabledPushMessaging)CreateContactResponse.BuilderenabledPushMessaging(java.util.Optional<java.lang.Boolean> enabledPushMessaging)If the user has enabled push messaging.CreateContactResponse.BuilderexternalId(java.lang.String externalId)CreateContactResponse.BuilderexternalId(java.util.Optional<java.lang.String> externalId)The unique identifier for the contact which is provided by the Client.CreateContactResponse.BuilderformattedPhone(java.lang.String formattedPhone)CreateContactResponse.BuilderformattedPhone(java.util.Optional<java.lang.String> formattedPhone)The contacts phone number normalized to the E164 formatCreateContactResponse.Builderfrom(CreateContactResponse other)CreateContactResponse.BuilderhasHardBounced(java.lang.Boolean hasHardBounced)CreateContactResponse.BuilderhasHardBounced(java.util.Optional<java.lang.Boolean> hasHardBounced)Whether the contact has had an email sent to them hard bounce.CreateContactResponse.Builderid(java.lang.String id)CreateContactResponse.Builderid(java.util.Optional<java.lang.String> id)The unique identifier for the contact which is given by Intercom.CreateContactResponse.BuilderiosAppName(java.lang.String iosAppName)CreateContactResponse.BuilderiosAppName(java.util.Optional<java.lang.String> iosAppName)The name of the iOS app which the contact is using.CreateContactResponse.BuilderiosAppVersion(java.lang.String iosAppVersion)CreateContactResponse.BuilderiosAppVersion(java.util.Optional<java.lang.String> iosAppVersion)The version of the iOS app which the contact is using.CreateContactResponse.BuilderiosDevice(java.lang.String iosDevice)CreateContactResponse.BuilderiosDevice(java.util.Optional<java.lang.String> iosDevice)The iOS device which the contact is using.CreateContactResponse.BuilderiosLastSeenAt(java.lang.Integer iosLastSeenAt)CreateContactResponse.BuilderiosLastSeenAt(java.util.Optional<java.lang.Integer> iosLastSeenAt)(UNIX timestamp) The last time the contact used the iOS app.CreateContactResponse.BuilderiosOsVersion(java.lang.String iosOsVersion)CreateContactResponse.BuilderiosOsVersion(java.util.Optional<java.lang.String> iosOsVersion)The version of iOS which the contact is using.CreateContactResponse.BuilderiosSdkVersion(java.lang.String iosSdkVersion)CreateContactResponse.BuilderiosSdkVersion(java.util.Optional<java.lang.String> iosSdkVersion)The version of the iOS SDK which the contact is using.CreateContactResponse.BuilderlanguageOverride(java.lang.String languageOverride)CreateContactResponse.BuilderlanguageOverride(java.util.Optional<java.lang.String> languageOverride)A preferred language setting for the contact, used by Intercom as the language of Fin and the Messenger even if their browser has a different setting.CreateContactResponse.BuilderlastContactedAt(java.lang.Integer lastContactedAt)CreateContactResponse.BuilderlastContactedAt(java.util.Optional<java.lang.Integer> lastContactedAt)(UNIX timestamp) The time when the contact was last messaged.CreateContactResponse.BuilderlastEmailClickedAt(java.lang.Integer lastEmailClickedAt)CreateContactResponse.BuilderlastEmailClickedAt(java.util.Optional<java.lang.Integer> lastEmailClickedAt)(UNIX timestamp) The time when the contact last clicked a link in an email.CreateContactResponse.BuilderlastEmailOpenedAt(java.lang.Integer lastEmailOpenedAt)CreateContactResponse.BuilderlastEmailOpenedAt(java.util.Optional<java.lang.Integer> lastEmailOpenedAt)(UNIX timestamp) The time when the contact last opened an email.CreateContactResponse.BuilderlastRepliedAt(java.lang.Integer lastRepliedAt)CreateContactResponse.BuilderlastRepliedAt(java.util.Optional<java.lang.Integer> lastRepliedAt)(UNIX timestamp) The time when the contact last messaged in.CreateContactResponse.BuilderlastSeenAt(java.lang.Integer lastSeenAt)CreateContactResponse.BuilderlastSeenAt(java.util.Optional<java.lang.Integer> lastSeenAt)(UNIX timestamp) The time when the contact was last seen (either where the Intercom Messenger was installed or when specified manually).CreateContactResponse.Builderlocation(ContactLocation location)CreateContactResponse.Builderlocation(java.util.Optional<ContactLocation> location)CreateContactResponse.BuildermarkedEmailAsSpam(java.lang.Boolean markedEmailAsSpam)CreateContactResponse.BuildermarkedEmailAsSpam(java.util.Optional<java.lang.Boolean> markedEmailAsSpam)Whether the contact has marked an email sent to them as spam.CreateContactResponse.Buildername(java.lang.String name)CreateContactResponse.Buildername(java.util.Optional<java.lang.String> name)The contacts name.CreateContactResponse.Buildernotes(ContactNotes notes)CreateContactResponse.Buildernotes(java.util.Optional<ContactNotes> notes)CreateContactResponse.Builderos(java.lang.String os)CreateContactResponse.Builderos(java.util.Optional<java.lang.String> os)The operating system which the contact is using.CreateContactResponse.BuilderownerId(java.lang.Integer ownerId)CreateContactResponse.BuilderownerId(java.util.Optional<java.lang.Integer> ownerId)The id of an admin that has been assigned account ownership of the contact.CreateContactResponse.Builderphone(java.lang.String phone)CreateContactResponse.Builderphone(java.util.Optional<java.lang.String> phone)The contacts phone.CreateContactResponse.Builderrole(java.lang.String role)CreateContactResponse.Builderrole(java.util.Optional<java.lang.String> role)The role of the contact.CreateContactResponse.BuildersignedUpAt(java.lang.Integer signedUpAt)CreateContactResponse.BuildersignedUpAt(java.util.Optional<java.lang.Integer> signedUpAt)(UNIX timestamp) The time specified for when a contact signed up.CreateContactResponse.BuildersocialProfiles(ContactSocialProfiles socialProfiles)CreateContactResponse.BuildersocialProfiles(java.util.Optional<ContactSocialProfiles> socialProfiles)CreateContactResponse.Buildertags(ContactTags tags)CreateContactResponse.Buildertags(java.util.Optional<ContactTags> tags)CreateContactResponse.Buildertype(java.lang.String type)CreateContactResponse.Buildertype(java.util.Optional<java.lang.String> type)The type of object.CreateContactResponse.BuilderunsubscribedFromEmails(java.lang.Boolean unsubscribedFromEmails)CreateContactResponse.BuilderunsubscribedFromEmails(java.util.Optional<java.lang.Boolean> unsubscribedFromEmails)Whether the contact is unsubscribed from emails.CreateContactResponse.BuilderupdatedAt(java.lang.Integer updatedAt)CreateContactResponse.BuilderupdatedAt(java.util.Optional<java.lang.Integer> updatedAt)(UNIX timestamp) The time when the contact was last updated.CreateContactResponse.BuilderworkspaceId(java.lang.String workspaceId)CreateContactResponse.BuilderworkspaceId(java.util.Optional<java.lang.String> workspaceId)The id of the workspace which the contact belongs to.
-
-
-
Method Detail
-
from
public CreateContactResponse.Builder from(CreateContactResponse other)
-
type
public CreateContactResponse.Builder type(java.util.Optional<java.lang.String> type)
The type of object.
-
type
public CreateContactResponse.Builder type(java.lang.String type)
-
id
public CreateContactResponse.Builder id(java.util.Optional<java.lang.String> id)
The unique identifier for the contact which is given by Intercom.
-
id
public CreateContactResponse.Builder id(java.lang.String id)
-
externalId
public CreateContactResponse.Builder externalId(java.util.Optional<java.lang.String> externalId)
The unique identifier for the contact which is provided by the Client.
-
externalId
public CreateContactResponse.Builder externalId(java.lang.String externalId)
-
workspaceId
public CreateContactResponse.Builder workspaceId(java.util.Optional<java.lang.String> workspaceId)
The id of the workspace which the contact belongs to.
-
workspaceId
public CreateContactResponse.Builder workspaceId(java.lang.String workspaceId)
-
role
public CreateContactResponse.Builder role(java.util.Optional<java.lang.String> role)
The role of the contact.
-
role
public CreateContactResponse.Builder role(java.lang.String role)
-
email
public CreateContactResponse.Builder email(java.util.Optional<java.lang.String> email)
The contact's email.
-
email
public CreateContactResponse.Builder email(java.lang.String email)
-
emailDomain
public CreateContactResponse.Builder emailDomain(java.util.Optional<java.lang.String> emailDomain)
The contact's email domain.
-
emailDomain
public CreateContactResponse.Builder emailDomain(java.lang.String emailDomain)
-
phone
public CreateContactResponse.Builder phone(java.util.Optional<java.lang.String> phone)
The contacts phone.
-
phone
public CreateContactResponse.Builder phone(java.lang.String phone)
-
formattedPhone
public CreateContactResponse.Builder formattedPhone(java.util.Optional<java.lang.String> formattedPhone)
The contacts phone number normalized to the E164 format
-
formattedPhone
public CreateContactResponse.Builder formattedPhone(java.lang.String formattedPhone)
-
name
public CreateContactResponse.Builder name(java.util.Optional<java.lang.String> name)
The contacts name.
-
name
public CreateContactResponse.Builder name(java.lang.String name)
-
ownerId
public CreateContactResponse.Builder ownerId(java.util.Optional<java.lang.Integer> ownerId)
The id of an admin that has been assigned account ownership of the contact.
-
ownerId
public CreateContactResponse.Builder ownerId(java.lang.Integer ownerId)
-
hasHardBounced
public CreateContactResponse.Builder hasHardBounced(java.util.Optional<java.lang.Boolean> hasHardBounced)
Whether the contact has had an email sent to them hard bounce.
-
hasHardBounced
public CreateContactResponse.Builder hasHardBounced(java.lang.Boolean hasHardBounced)
-
markedEmailAsSpam
public CreateContactResponse.Builder markedEmailAsSpam(java.util.Optional<java.lang.Boolean> markedEmailAsSpam)
Whether the contact has marked an email sent to them as spam.
-
markedEmailAsSpam
public CreateContactResponse.Builder markedEmailAsSpam(java.lang.Boolean markedEmailAsSpam)
-
unsubscribedFromEmails
public CreateContactResponse.Builder unsubscribedFromEmails(java.util.Optional<java.lang.Boolean> unsubscribedFromEmails)
Whether the contact is unsubscribed from emails.
-
unsubscribedFromEmails
public CreateContactResponse.Builder unsubscribedFromEmails(java.lang.Boolean unsubscribedFromEmails)
-
createdAt
public CreateContactResponse.Builder createdAt(java.util.Optional<java.lang.Integer> createdAt)
(UNIX timestamp) The time when the contact was created.
-
createdAt
public CreateContactResponse.Builder createdAt(java.lang.Integer createdAt)
-
updatedAt
public CreateContactResponse.Builder updatedAt(java.util.Optional<java.lang.Integer> updatedAt)
(UNIX timestamp) The time when the contact was last updated.
-
updatedAt
public CreateContactResponse.Builder updatedAt(java.lang.Integer updatedAt)
-
signedUpAt
public CreateContactResponse.Builder signedUpAt(java.util.Optional<java.lang.Integer> signedUpAt)
(UNIX timestamp) The time specified for when a contact signed up.
-
signedUpAt
public CreateContactResponse.Builder signedUpAt(java.lang.Integer signedUpAt)
-
lastSeenAt
public CreateContactResponse.Builder lastSeenAt(java.util.Optional<java.lang.Integer> lastSeenAt)
(UNIX timestamp) The time when the contact was last seen (either where the Intercom Messenger was installed or when specified manually).
-
lastSeenAt
public CreateContactResponse.Builder lastSeenAt(java.lang.Integer lastSeenAt)
-
lastRepliedAt
public CreateContactResponse.Builder lastRepliedAt(java.util.Optional<java.lang.Integer> lastRepliedAt)
(UNIX timestamp) The time when the contact last messaged in.
-
lastRepliedAt
public CreateContactResponse.Builder lastRepliedAt(java.lang.Integer lastRepliedAt)
-
lastContactedAt
public CreateContactResponse.Builder lastContactedAt(java.util.Optional<java.lang.Integer> lastContactedAt)
(UNIX timestamp) The time when the contact was last messaged.
-
lastContactedAt
public CreateContactResponse.Builder lastContactedAt(java.lang.Integer lastContactedAt)
-
lastEmailOpenedAt
public CreateContactResponse.Builder lastEmailOpenedAt(java.util.Optional<java.lang.Integer> lastEmailOpenedAt)
(UNIX timestamp) The time when the contact last opened an email.
-
lastEmailOpenedAt
public CreateContactResponse.Builder lastEmailOpenedAt(java.lang.Integer lastEmailOpenedAt)
-
lastEmailClickedAt
public CreateContactResponse.Builder lastEmailClickedAt(java.util.Optional<java.lang.Integer> lastEmailClickedAt)
(UNIX timestamp) The time when the contact last clicked a link in an email.
-
lastEmailClickedAt
public CreateContactResponse.Builder lastEmailClickedAt(java.lang.Integer lastEmailClickedAt)
-
languageOverride
public CreateContactResponse.Builder languageOverride(java.util.Optional<java.lang.String> languageOverride)
A preferred language setting for the contact, used by Intercom as the language of Fin and the Messenger even if their browser has a different setting. Supports ISO 639-1 two-letter language codes. If an unsupported code is supplied, the field will be set to null.
-
languageOverride
public CreateContactResponse.Builder languageOverride(java.lang.String languageOverride)
-
browser
public CreateContactResponse.Builder browser(java.util.Optional<java.lang.String> browser)
The name of the browser which the contact is using.
-
browser
public CreateContactResponse.Builder browser(java.lang.String browser)
-
browserVersion
public CreateContactResponse.Builder browserVersion(java.util.Optional<java.lang.String> browserVersion)
The version of the browser which the contact is using.
-
browserVersion
public CreateContactResponse.Builder browserVersion(java.lang.String browserVersion)
-
browserLanguage
public CreateContactResponse.Builder browserLanguage(java.util.Optional<java.lang.String> browserLanguage)
The language set by the browser which the contact is using.
-
browserLanguage
public CreateContactResponse.Builder browserLanguage(java.lang.String browserLanguage)
-
os
public CreateContactResponse.Builder os(java.util.Optional<java.lang.String> os)
The operating system which the contact is using.
-
os
public CreateContactResponse.Builder os(java.lang.String os)
-
androidAppName
public CreateContactResponse.Builder androidAppName(java.util.Optional<java.lang.String> androidAppName)
The name of the Android app which the contact is using.
-
androidAppName
public CreateContactResponse.Builder androidAppName(java.lang.String androidAppName)
-
androidAppVersion
public CreateContactResponse.Builder androidAppVersion(java.util.Optional<java.lang.String> androidAppVersion)
The version of the Android app which the contact is using.
-
androidAppVersion
public CreateContactResponse.Builder androidAppVersion(java.lang.String androidAppVersion)
-
androidDevice
public CreateContactResponse.Builder androidDevice(java.util.Optional<java.lang.String> androidDevice)
The Android device which the contact is using.
-
androidDevice
public CreateContactResponse.Builder androidDevice(java.lang.String androidDevice)
-
androidOsVersion
public CreateContactResponse.Builder androidOsVersion(java.util.Optional<java.lang.String> androidOsVersion)
The version of the Android OS which the contact is using.
-
androidOsVersion
public CreateContactResponse.Builder androidOsVersion(java.lang.String androidOsVersion)
-
androidSdkVersion
public CreateContactResponse.Builder androidSdkVersion(java.util.Optional<java.lang.String> androidSdkVersion)
The version of the Android SDK which the contact is using.
-
androidSdkVersion
public CreateContactResponse.Builder androidSdkVersion(java.lang.String androidSdkVersion)
-
androidLastSeenAt
public CreateContactResponse.Builder androidLastSeenAt(java.util.Optional<java.lang.Integer> androidLastSeenAt)
(UNIX timestamp) The time when the contact was last seen on an Android device.
-
androidLastSeenAt
public CreateContactResponse.Builder androidLastSeenAt(java.lang.Integer androidLastSeenAt)
-
iosAppName
public CreateContactResponse.Builder iosAppName(java.util.Optional<java.lang.String> iosAppName)
The name of the iOS app which the contact is using.
-
iosAppName
public CreateContactResponse.Builder iosAppName(java.lang.String iosAppName)
-
iosAppVersion
public CreateContactResponse.Builder iosAppVersion(java.util.Optional<java.lang.String> iosAppVersion)
The version of the iOS app which the contact is using.
-
iosAppVersion
public CreateContactResponse.Builder iosAppVersion(java.lang.String iosAppVersion)
-
iosDevice
public CreateContactResponse.Builder iosDevice(java.util.Optional<java.lang.String> iosDevice)
The iOS device which the contact is using.
-
iosDevice
public CreateContactResponse.Builder iosDevice(java.lang.String iosDevice)
-
iosOsVersion
public CreateContactResponse.Builder iosOsVersion(java.util.Optional<java.lang.String> iosOsVersion)
The version of iOS which the contact is using.
-
iosOsVersion
public CreateContactResponse.Builder iosOsVersion(java.lang.String iosOsVersion)
-
iosSdkVersion
public CreateContactResponse.Builder iosSdkVersion(java.util.Optional<java.lang.String> iosSdkVersion)
The version of the iOS SDK which the contact is using.
-
iosSdkVersion
public CreateContactResponse.Builder iosSdkVersion(java.lang.String iosSdkVersion)
-
iosLastSeenAt
public CreateContactResponse.Builder iosLastSeenAt(java.util.Optional<java.lang.Integer> iosLastSeenAt)
(UNIX timestamp) The last time the contact used the iOS app.
-
iosLastSeenAt
public CreateContactResponse.Builder iosLastSeenAt(java.lang.Integer iosLastSeenAt)
-
customAttributes
public CreateContactResponse.Builder customAttributes(java.util.Optional<java.util.Map<java.lang.String,java.lang.Object>> customAttributes)
The custom attributes which are set for the contact.
-
customAttributes
public CreateContactResponse.Builder customAttributes(java.util.Map<java.lang.String,java.lang.Object> customAttributes)
-
avatar
public CreateContactResponse.Builder avatar(java.util.Optional<CreateContactResponse.Avatar> avatar)
-
avatar
public CreateContactResponse.Builder avatar(CreateContactResponse.Avatar avatar)
-
tags
public CreateContactResponse.Builder tags(java.util.Optional<ContactTags> tags)
-
tags
public CreateContactResponse.Builder tags(ContactTags tags)
-
notes
public CreateContactResponse.Builder notes(java.util.Optional<ContactNotes> notes)
-
notes
public CreateContactResponse.Builder notes(ContactNotes notes)
-
companies
public CreateContactResponse.Builder companies(java.util.Optional<ContactCompanies> companies)
-
companies
public CreateContactResponse.Builder companies(ContactCompanies companies)
-
location
public CreateContactResponse.Builder location(java.util.Optional<ContactLocation> location)
-
location
public CreateContactResponse.Builder location(ContactLocation location)
-
socialProfiles
public CreateContactResponse.Builder socialProfiles(java.util.Optional<ContactSocialProfiles> socialProfiles)
-
socialProfiles
public CreateContactResponse.Builder socialProfiles(ContactSocialProfiles socialProfiles)
-
enabledPushMessaging
public CreateContactResponse.Builder enabledPushMessaging(java.util.Optional<java.lang.Boolean> enabledPushMessaging)
If the user has enabled push messaging.
-
enabledPushMessaging
public CreateContactResponse.Builder enabledPushMessaging(java.lang.Boolean enabledPushMessaging)
-
build
public CreateContactResponse build()
-
-