Class Visitor.Builder
- java.lang.Object
-
- com.intercom.api.types.Visitor.Builder
-
- All Implemented Interfaces:
Visitor._FinalStage,Visitor.IdStage,Visitor.UserIdStage
- Enclosing class:
- Visitor
public static final class Visitor.Builder extends java.lang.Object implements Visitor.IdStage, Visitor.UserIdStage, Visitor._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Visitor._FinalStageanonymous(java.lang.Boolean anonymous)Identifies if this visitor is anonymous.Visitor._FinalStageanonymous(java.util.Optional<java.lang.Boolean> anonymous)Identifies if this visitor is anonymous.Visitor._FinalStageappId(java.lang.String appId)The id of the app the visitor is associated with.Visitor._FinalStageappId(java.util.Optional<java.lang.String> appId)The id of the app the visitor is associated with.Visitor._FinalStageavatar(Visitor.Avatar avatar)Visitor._FinalStageavatar(java.util.Optional<Visitor.Avatar> avatar)Visitorbuild()Visitor._FinalStagecompanies(Visitor.Companies companies)Visitor._FinalStagecompanies(java.util.Optional<Visitor.Companies> companies)Visitor._FinalStagecreatedAt(java.lang.Integer createdAt)The time the Visitor was added to Intercom.Visitor._FinalStagecreatedAt(java.util.Optional<java.lang.Integer> createdAt)The time the Visitor was added to Intercom.Visitor._FinalStagecustomAttributes(java.util.Map<java.lang.String,java.lang.Object> customAttributes)The custom attributes you have set on the Visitor.Visitor._FinalStagecustomAttributes(java.util.Optional<java.util.Map<java.lang.String,java.lang.Object>> customAttributes)The custom attributes you have set on the Visitor.Visitor._FinalStagedoNotTrack(java.lang.Boolean doNotTrack)Identifies if this visitor has do not track enabled.Visitor._FinalStagedoNotTrack(java.util.Optional<java.lang.Boolean> doNotTrack)Identifies if this visitor has do not track enabled.Visitor._FinalStageemail(java.lang.String email)The email of the visitor.Visitor._FinalStageemail(java.util.Optional<java.lang.String> email)The email of the visitor.Visitor.Builderfrom(Visitor other)Visitor._FinalStagehasHardBounced(java.lang.Boolean hasHardBounced)Identifies if this visitor has had a hard bounce.Visitor._FinalStagehasHardBounced(java.util.Optional<java.lang.Boolean> hasHardBounced)Identifies if this visitor has had a hard bounce.Visitor.UserIdStageid(java.lang.String id)The Intercom defined id representing the Visitor.Visitor._FinalStagelasRequestAt(java.lang.Integer lasRequestAt)The time the Lead last recorded making a request.Visitor._FinalStagelasRequestAt(java.util.Optional<java.lang.Integer> lasRequestAt)The time the Lead last recorded making a request.Visitor._FinalStagelocationData(Visitor.LocationData locationData)Visitor._FinalStagelocationData(java.util.Optional<Visitor.LocationData> locationData)Visitor._FinalStagemarkedEmailAsSpam(java.lang.Boolean markedEmailAsSpam)Identifies if this visitor has marked an email as spam.Visitor._FinalStagemarkedEmailAsSpam(java.util.Optional<java.lang.Boolean> markedEmailAsSpam)Identifies if this visitor has marked an email as spam.Visitor._FinalStagename(java.lang.String name)The name of the visitor.Visitor._FinalStagename(java.util.Optional<java.lang.String> name)The name of the visitor.Visitor._FinalStageownerId(java.lang.String ownerId)The id of the admin that owns the Visitor.Visitor._FinalStageownerId(java.util.Optional<java.lang.String> ownerId)The id of the admin that owns the Visitor.Visitor._FinalStagephone(java.lang.String phone)The phone number of the visitor.Visitor._FinalStagephone(java.util.Optional<java.lang.String> phone)The phone number of the visitor.Visitor._FinalStagepseudonym(java.lang.String pseudonym)The pseudonym of the visitor.Visitor._FinalStagepseudonym(java.util.Optional<java.lang.String> pseudonym)The pseudonym of the visitor.Visitor._FinalStagereferrer(java.lang.String referrer)The referer of the visitor.Visitor._FinalStagereferrer(java.util.Optional<java.lang.String> referrer)The referer of the visitor.Visitor._FinalStageremoteCreatedAt(java.lang.Integer remoteCreatedAt)The time the Visitor was added to Intercom.Visitor._FinalStageremoteCreatedAt(java.util.Optional<java.lang.Integer> remoteCreatedAt)The time the Visitor was added to Intercom.Visitor._FinalStagesegments(Visitor.Segments segments)Visitor._FinalStagesegments(java.util.Optional<Visitor.Segments> segments)Visitor._FinalStagesessionCount(java.lang.Integer sessionCount)The number of sessions the Visitor has had.Visitor._FinalStagesessionCount(java.util.Optional<java.lang.Integer> sessionCount)The number of sessions the Visitor has had.Visitor._FinalStagesignedUpAt(java.lang.Integer signedUpAt)The time the Visitor signed up for your product.Visitor._FinalStagesignedUpAt(java.util.Optional<java.lang.Integer> signedUpAt)The time the Visitor signed up for your product.Visitor._FinalStagesocialProfiles(Visitor.SocialProfiles socialProfiles)Visitor._FinalStagesocialProfiles(java.util.Optional<Visitor.SocialProfiles> socialProfiles)Visitor._FinalStagetags(Visitor.Tags tags)Visitor._FinalStagetags(java.util.Optional<Visitor.Tags> tags)Visitor._FinalStageunsubscribedFromEmails(java.lang.Boolean unsubscribedFromEmails)Whether the Visitor is unsubscribed from emails.Visitor._FinalStageunsubscribedFromEmails(java.util.Optional<java.lang.Boolean> unsubscribedFromEmails)Whether the Visitor is unsubscribed from emails.Visitor._FinalStageupdatedAt(java.lang.Integer updatedAt)The last time the Visitor was updated.Visitor._FinalStageupdatedAt(java.util.Optional<java.lang.Integer> updatedAt)The last time the Visitor was updated.Visitor._FinalStageuserId(java.lang.String userId)Automatically generated identifier for the Visitor.Visitor._FinalStageutmCampaign(java.lang.String utmCampaign)The utm_campaign of the visitor.Visitor._FinalStageutmCampaign(java.util.Optional<java.lang.String> utmCampaign)The utm_campaign of the visitor.Visitor._FinalStageutmContent(java.lang.String utmContent)The utm_content of the visitor.Visitor._FinalStageutmContent(java.util.Optional<java.lang.String> utmContent)The utm_content of the visitor.Visitor._FinalStageutmMedium(java.lang.String utmMedium)The utm_medium of the visitor.Visitor._FinalStageutmMedium(java.util.Optional<java.lang.String> utmMedium)The utm_medium of the visitor.Visitor._FinalStageutmSource(java.lang.String utmSource)The utm_source of the visitor.Visitor._FinalStageutmSource(java.util.Optional<java.lang.String> utmSource)The utm_source of the visitor.Visitor._FinalStageutmTerm(java.lang.String utmTerm)The utm_term of the visitor.Visitor._FinalStageutmTerm(java.util.Optional<java.lang.String> utmTerm)The utm_term of the visitor.
-
-
-
Method Detail
-
from
public Visitor.Builder from(Visitor other)
- Specified by:
fromin interfaceVisitor.IdStage
-
id
public Visitor.UserIdStage id(@NotNull java.lang.String id)
The Intercom defined id representing the Visitor.
The Intercom defined id representing the Visitor.
- Specified by:
idin interfaceVisitor.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
userId
public Visitor._FinalStage userId(@NotNull java.lang.String userId)
Automatically generated identifier for the Visitor.
Automatically generated identifier for the Visitor.
- Specified by:
userIdin interfaceVisitor.UserIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
doNotTrack
public Visitor._FinalStage doNotTrack(java.lang.Boolean doNotTrack)
Identifies if this visitor has do not track enabled.
- Specified by:
doNotTrackin interfaceVisitor._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
doNotTrack
public Visitor._FinalStage doNotTrack(java.util.Optional<java.lang.Boolean> doNotTrack)
Identifies if this visitor has do not track enabled.
- Specified by:
doNotTrackin interfaceVisitor._FinalStage
-
utmTerm
public Visitor._FinalStage utmTerm(java.lang.String utmTerm)
The utm_term of the visitor.
- Specified by:
utmTermin interfaceVisitor._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
utmTerm
public Visitor._FinalStage utmTerm(java.util.Optional<java.lang.String> utmTerm)
The utm_term of the visitor.
- Specified by:
utmTermin interfaceVisitor._FinalStage
-
utmSource
public Visitor._FinalStage utmSource(java.lang.String utmSource)
The utm_source of the visitor.
- Specified by:
utmSourcein interfaceVisitor._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
utmSource
public Visitor._FinalStage utmSource(java.util.Optional<java.lang.String> utmSource)
The utm_source of the visitor.
- Specified by:
utmSourcein interfaceVisitor._FinalStage
-
utmMedium
public Visitor._FinalStage utmMedium(java.lang.String utmMedium)
The utm_medium of the visitor.
- Specified by:
utmMediumin interfaceVisitor._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
utmMedium
public Visitor._FinalStage utmMedium(java.util.Optional<java.lang.String> utmMedium)
The utm_medium of the visitor.
- Specified by:
utmMediumin interfaceVisitor._FinalStage
-
utmContent
public Visitor._FinalStage utmContent(java.lang.String utmContent)
The utm_content of the visitor.
- Specified by:
utmContentin interfaceVisitor._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
utmContent
public Visitor._FinalStage utmContent(java.util.Optional<java.lang.String> utmContent)
The utm_content of the visitor.
- Specified by:
utmContentin interfaceVisitor._FinalStage
-
utmCampaign
public Visitor._FinalStage utmCampaign(java.lang.String utmCampaign)
The utm_campaign of the visitor.
- Specified by:
utmCampaignin interfaceVisitor._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
utmCampaign
public Visitor._FinalStage utmCampaign(java.util.Optional<java.lang.String> utmCampaign)
The utm_campaign of the visitor.
- Specified by:
utmCampaignin interfaceVisitor._FinalStage
-
referrer
public Visitor._FinalStage referrer(java.lang.String referrer)
The referer of the visitor.
- Specified by:
referrerin interfaceVisitor._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
referrer
public Visitor._FinalStage referrer(java.util.Optional<java.lang.String> referrer)
The referer of the visitor.
- Specified by:
referrerin interfaceVisitor._FinalStage
-
customAttributes
public Visitor._FinalStage customAttributes(java.util.Map<java.lang.String,java.lang.Object> customAttributes)
The custom attributes you have set on the Visitor.
- Specified by:
customAttributesin interfaceVisitor._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
customAttributes
public Visitor._FinalStage customAttributes(java.util.Optional<java.util.Map<java.lang.String,java.lang.Object>> customAttributes)
The custom attributes you have set on the Visitor.
- Specified by:
customAttributesin interfaceVisitor._FinalStage
-
segments
public Visitor._FinalStage segments(Visitor.Segments segments)
- Specified by:
segmentsin interfaceVisitor._FinalStage
-
segments
public Visitor._FinalStage segments(java.util.Optional<Visitor.Segments> segments)
- Specified by:
segmentsin interfaceVisitor._FinalStage
-
tags
public Visitor._FinalStage tags(Visitor.Tags tags)
- Specified by:
tagsin interfaceVisitor._FinalStage
-
tags
public Visitor._FinalStage tags(java.util.Optional<Visitor.Tags> tags)
- Specified by:
tagsin interfaceVisitor._FinalStage
-
hasHardBounced
public Visitor._FinalStage hasHardBounced(java.lang.Boolean hasHardBounced)
Identifies if this visitor has had a hard bounce.
- Specified by:
hasHardBouncedin interfaceVisitor._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
hasHardBounced
public Visitor._FinalStage hasHardBounced(java.util.Optional<java.lang.Boolean> hasHardBounced)
Identifies if this visitor has had a hard bounce.
- Specified by:
hasHardBouncedin interfaceVisitor._FinalStage
-
markedEmailAsSpam
public Visitor._FinalStage markedEmailAsSpam(java.lang.Boolean markedEmailAsSpam)
Identifies if this visitor has marked an email as spam.
- Specified by:
markedEmailAsSpamin interfaceVisitor._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
markedEmailAsSpam
public Visitor._FinalStage markedEmailAsSpam(java.util.Optional<java.lang.Boolean> markedEmailAsSpam)
Identifies if this visitor has marked an email as spam.
- Specified by:
markedEmailAsSpamin interfaceVisitor._FinalStage
-
unsubscribedFromEmails
public Visitor._FinalStage unsubscribedFromEmails(java.lang.Boolean unsubscribedFromEmails)
Whether the Visitor is unsubscribed from emails.
- Specified by:
unsubscribedFromEmailsin interfaceVisitor._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
unsubscribedFromEmails
public Visitor._FinalStage unsubscribedFromEmails(java.util.Optional<java.lang.Boolean> unsubscribedFromEmails)
Whether the Visitor is unsubscribed from emails.
- Specified by:
unsubscribedFromEmailsin interfaceVisitor._FinalStage
-
ownerId
public Visitor._FinalStage ownerId(java.lang.String ownerId)
The id of the admin that owns the Visitor.
- Specified by:
ownerIdin interfaceVisitor._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
ownerId
public Visitor._FinalStage ownerId(java.util.Optional<java.lang.String> ownerId)
The id of the admin that owns the Visitor.
- Specified by:
ownerIdin interfaceVisitor._FinalStage
-
socialProfiles
public Visitor._FinalStage socialProfiles(Visitor.SocialProfiles socialProfiles)
- Specified by:
socialProfilesin interfaceVisitor._FinalStage
-
socialProfiles
public Visitor._FinalStage socialProfiles(java.util.Optional<Visitor.SocialProfiles> socialProfiles)
- Specified by:
socialProfilesin interfaceVisitor._FinalStage
-
sessionCount
public Visitor._FinalStage sessionCount(java.lang.Integer sessionCount)
The number of sessions the Visitor has had.
- Specified by:
sessionCountin interfaceVisitor._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
sessionCount
public Visitor._FinalStage sessionCount(java.util.Optional<java.lang.Integer> sessionCount)
The number of sessions the Visitor has had.
- Specified by:
sessionCountin interfaceVisitor._FinalStage
-
updatedAt
public Visitor._FinalStage updatedAt(java.lang.Integer updatedAt)
The last time the Visitor was updated.
- Specified by:
updatedAtin interfaceVisitor._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
updatedAt
public Visitor._FinalStage updatedAt(java.util.Optional<java.lang.Integer> updatedAt)
The last time the Visitor was updated.
- Specified by:
updatedAtin interfaceVisitor._FinalStage
-
signedUpAt
public Visitor._FinalStage signedUpAt(java.lang.Integer signedUpAt)
The time the Visitor signed up for your product.
- Specified by:
signedUpAtin interfaceVisitor._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
signedUpAt
public Visitor._FinalStage signedUpAt(java.util.Optional<java.lang.Integer> signedUpAt)
The time the Visitor signed up for your product.
- Specified by:
signedUpAtin interfaceVisitor._FinalStage
-
remoteCreatedAt
public Visitor._FinalStage remoteCreatedAt(java.lang.Integer remoteCreatedAt)
The time the Visitor was added to Intercom.
- Specified by:
remoteCreatedAtin interfaceVisitor._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
remoteCreatedAt
public Visitor._FinalStage remoteCreatedAt(java.util.Optional<java.lang.Integer> remoteCreatedAt)
The time the Visitor was added to Intercom.
- Specified by:
remoteCreatedAtin interfaceVisitor._FinalStage
-
createdAt
public Visitor._FinalStage createdAt(java.lang.Integer createdAt)
The time the Visitor was added to Intercom.
- Specified by:
createdAtin interfaceVisitor._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
createdAt
public Visitor._FinalStage createdAt(java.util.Optional<java.lang.Integer> createdAt)
The time the Visitor was added to Intercom.
- Specified by:
createdAtin interfaceVisitor._FinalStage
-
lasRequestAt
public Visitor._FinalStage lasRequestAt(java.lang.Integer lasRequestAt)
The time the Lead last recorded making a request.
- Specified by:
lasRequestAtin interfaceVisitor._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
lasRequestAt
public Visitor._FinalStage lasRequestAt(java.util.Optional<java.lang.Integer> lasRequestAt)
The time the Lead last recorded making a request.
- Specified by:
lasRequestAtin interfaceVisitor._FinalStage
-
locationData
public Visitor._FinalStage locationData(Visitor.LocationData locationData)
- Specified by:
locationDatain interfaceVisitor._FinalStage
-
locationData
public Visitor._FinalStage locationData(java.util.Optional<Visitor.LocationData> locationData)
- Specified by:
locationDatain interfaceVisitor._FinalStage
-
companies
public Visitor._FinalStage companies(Visitor.Companies companies)
- Specified by:
companiesin interfaceVisitor._FinalStage
-
companies
public Visitor._FinalStage companies(java.util.Optional<Visitor.Companies> companies)
- Specified by:
companiesin interfaceVisitor._FinalStage
-
appId
public Visitor._FinalStage appId(java.lang.String appId)
The id of the app the visitor is associated with.
- Specified by:
appIdin interfaceVisitor._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
appId
public Visitor._FinalStage appId(java.util.Optional<java.lang.String> appId)
The id of the app the visitor is associated with.
- Specified by:
appIdin interfaceVisitor._FinalStage
-
avatar
public Visitor._FinalStage avatar(Visitor.Avatar avatar)
- Specified by:
avatarin interfaceVisitor._FinalStage
-
avatar
public Visitor._FinalStage avatar(java.util.Optional<Visitor.Avatar> avatar)
- Specified by:
avatarin interfaceVisitor._FinalStage
-
pseudonym
public Visitor._FinalStage pseudonym(java.lang.String pseudonym)
The pseudonym of the visitor.
- Specified by:
pseudonymin interfaceVisitor._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
pseudonym
public Visitor._FinalStage pseudonym(java.util.Optional<java.lang.String> pseudonym)
The pseudonym of the visitor.
- Specified by:
pseudonymin interfaceVisitor._FinalStage
-
name
public Visitor._FinalStage name(java.lang.String name)
The name of the visitor.
- Specified by:
namein interfaceVisitor._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
name
public Visitor._FinalStage name(java.util.Optional<java.lang.String> name)
The name of the visitor.
- Specified by:
namein interfaceVisitor._FinalStage
-
phone
public Visitor._FinalStage phone(java.lang.String phone)
The phone number of the visitor.
- Specified by:
phonein interfaceVisitor._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
phone
public Visitor._FinalStage phone(java.util.Optional<java.lang.String> phone)
The phone number of the visitor.
- Specified by:
phonein interfaceVisitor._FinalStage
-
email
public Visitor._FinalStage email(java.lang.String email)
The email of the visitor.
- Specified by:
emailin interfaceVisitor._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
email
public Visitor._FinalStage email(java.util.Optional<java.lang.String> email)
The email of the visitor.
- Specified by:
emailin interfaceVisitor._FinalStage
-
anonymous
public Visitor._FinalStage anonymous(java.lang.Boolean anonymous)
Identifies if this visitor is anonymous.
- Specified by:
anonymousin interfaceVisitor._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
anonymous
public Visitor._FinalStage anonymous(java.util.Optional<java.lang.Boolean> anonymous)
Identifies if this visitor is anonymous.
- Specified by:
anonymousin interfaceVisitor._FinalStage
-
build
public Visitor build()
- Specified by:
buildin interfaceVisitor._FinalStage
-
-