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