Class Conversation.Builder
- java.lang.Object
-
- com.intercom.api.resources.conversations.types.Conversation.Builder
-
- All Implemented Interfaces:
Conversation._FinalStage,Conversation.ContactsStage,Conversation.CreatedAtStage,Conversation.IdStage,Conversation.OpenStage,Conversation.ReadStage,Conversation.SourceStage,Conversation.StateStage,Conversation.TypeStage,Conversation.UpdatedAtStage
- Enclosing class:
- Conversation
public static final class Conversation.Builder extends java.lang.Object implements Conversation.TypeStage, Conversation.IdStage, Conversation.CreatedAtStage, Conversation.UpdatedAtStage, Conversation.OpenStage, Conversation.StateStage, Conversation.ReadStage, Conversation.SourceStage, Conversation.ContactsStage, Conversation._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Conversation._FinalStageadminAssigneeId(java.lang.Integer adminAssigneeId)The id of the admin assigned to the conversation.Conversation._FinalStageadminAssigneeId(java.util.Optional<java.lang.Integer> adminAssigneeId)The id of the admin assigned to the conversation.Conversation._FinalStageaiAgent(AiAgent aiAgent)Conversation._FinalStageaiAgent(java.util.Optional<AiAgent> aiAgent)Conversation._FinalStageaiAgentParticipated(java.lang.Boolean aiAgentParticipated)Indicates whether the AI Agent participated in the conversation.Conversation._FinalStageaiAgentParticipated(java.util.Optional<java.lang.Boolean> aiAgentParticipated)Indicates whether the AI Agent participated in the conversation.Conversationbuild()Conversation._FinalStagecompanyId(java.lang.String companyId)The ID of the company that the conversation is associated with.Conversation._FinalStagecompanyId(java.util.Optional<java.lang.String> companyId)The ID of the company that the conversation is associated with.Conversation._FinalStagecontacts(ConversationContacts contacts)Conversation._FinalStageconversationParts(ConversationParts conversationParts)Conversation._FinalStageconversationParts(java.util.Optional<ConversationParts> conversationParts)Conversation._FinalStageconversationRating(ConversationRating conversationRating)Conversation._FinalStageconversationRating(java.util.Optional<ConversationRating> conversationRating)Conversation.UpdatedAtStagecreatedAt(int createdAt)The time the conversation was created.Conversation._FinalStagecustomAttributes(java.lang.String key, Conversation.CustomAttributesValue value)Conversation._FinalStagecustomAttributes(java.util.Map<java.lang.String,Conversation.CustomAttributesValue> customAttributes)Conversation._FinalStagefirstContactReply(ConversationFirstContactReply firstContactReply)Conversation._FinalStagefirstContactReply(java.util.Optional<ConversationFirstContactReply> firstContactReply)Conversation.Builderfrom(Conversation other)Conversation.CreatedAtStageid(java.lang.String id)The id representing the conversation.Conversation._FinalStagelinkedObjects(LinkedObjectList linkedObjects)Conversation._FinalStagelinkedObjects(java.util.Optional<LinkedObjectList> linkedObjects)Conversation.StateStageopen(boolean open)Indicates whether a conversation is open (true) or closed (false).Conversation._FinalStagepriority(Conversation.Priority priority)If marked as priority, it will return priority or else not_priority.Conversation._FinalStagepriority(java.util.Optional<Conversation.Priority> priority)If marked as priority, it will return priority or else not_priority.Conversation._FinalStageputAllCustomAttributes(java.util.Map<java.lang.String,Conversation.CustomAttributesValue> customAttributes)Conversation.SourceStageread(boolean read)Indicates whether a conversation has been read.Conversation._FinalStageslaApplied(SlaApplied slaApplied)Conversation._FinalStageslaApplied(java.util.Optional<SlaApplied> slaApplied)Conversation._FinalStagesnoozedUntil(java.lang.Integer snoozedUntil)If set this is the time in the future when this conversation will be marked as open.Conversation._FinalStagesnoozedUntil(java.util.Optional<java.lang.Integer> snoozedUntil)If set this is the time in the future when this conversation will be marked as open.Conversation.ContactsStagesource(ConversationSource source)Conversation.ReadStagestate(Conversation.State state)Can be set to "open", "closed" or "snoozed".Conversation._FinalStagestatistics(ConversationStatistics statistics)Conversation._FinalStagestatistics(java.util.Optional<ConversationStatistics> statistics)Conversation._FinalStagetags(Tags tags)Conversation._FinalStagetags(java.util.Optional<Tags> tags)Conversation._FinalStageteamAssigneeId(java.lang.String teamAssigneeId)The id of the team assigned to the conversation.Conversation._FinalStageteamAssigneeId(java.util.Optional<java.lang.String> teamAssigneeId)The id of the team assigned to the conversation.Conversation._FinalStageteammates(ConversationTeammates teammates)Conversation._FinalStageteammates(java.util.Optional<ConversationTeammates> teammates)Conversation._FinalStagetitle(java.lang.String title)The title given to the conversation.Conversation._FinalStagetitle(java.util.Optional<java.lang.String> title)The title given to the conversation.Conversation.IdStagetype(java.lang.String type)Always conversation.Conversation.OpenStageupdatedAt(int updatedAt)The last time the conversation was updated.Conversation._FinalStagewaitingSince(java.lang.Integer waitingSince)The last time a Contact responded to an Admin.Conversation._FinalStagewaitingSince(java.util.Optional<java.lang.Integer> waitingSince)The last time a Contact responded to an Admin.
-
-
-
Method Detail
-
from
public Conversation.Builder from(Conversation other)
- Specified by:
fromin interfaceConversation.TypeStage
-
type
public Conversation.IdStage type(@NotNull java.lang.String type)
Always conversation.
Always conversation.
- Specified by:
typein interfaceConversation.TypeStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
id
public Conversation.CreatedAtStage id(@NotNull java.lang.String id)
The id representing the conversation.
The id representing the conversation.
- Specified by:
idin interfaceConversation.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
createdAt
public Conversation.UpdatedAtStage createdAt(int createdAt)
The time the conversation was created.
The time the conversation was created.
- Specified by:
createdAtin interfaceConversation.CreatedAtStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
updatedAt
public Conversation.OpenStage updatedAt(int updatedAt)
The last time the conversation was updated.
The last time the conversation was updated.
- Specified by:
updatedAtin interfaceConversation.UpdatedAtStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
open
public Conversation.StateStage open(boolean open)
Indicates whether a conversation is open (true) or closed (false).
Indicates whether a conversation is open (true) or closed (false).
- Specified by:
openin interfaceConversation.OpenStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
state
public Conversation.ReadStage state(@NotNull Conversation.State state)
Can be set to "open", "closed" or "snoozed".
Can be set to "open", "closed" or "snoozed".
- Specified by:
statein interfaceConversation.StateStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
read
public Conversation.SourceStage read(boolean read)
Indicates whether a conversation has been read.
Indicates whether a conversation has been read.
- Specified by:
readin interfaceConversation.ReadStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
source
public Conversation.ContactsStage source(@NotNull ConversationSource source)
- Specified by:
sourcein interfaceConversation.SourceStage
-
contacts
public Conversation._FinalStage contacts(@NotNull ConversationContacts contacts)
- Specified by:
contactsin interfaceConversation.ContactsStage
-
aiAgent
public Conversation._FinalStage aiAgent(AiAgent aiAgent)
- Specified by:
aiAgentin interfaceConversation._FinalStage
-
aiAgent
public Conversation._FinalStage aiAgent(java.util.Optional<AiAgent> aiAgent)
- Specified by:
aiAgentin interfaceConversation._FinalStage
-
aiAgentParticipated
public Conversation._FinalStage aiAgentParticipated(java.lang.Boolean aiAgentParticipated)
Indicates whether the AI Agent participated in the conversation.
- Specified by:
aiAgentParticipatedin interfaceConversation._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
aiAgentParticipated
public Conversation._FinalStage aiAgentParticipated(java.util.Optional<java.lang.Boolean> aiAgentParticipated)
Indicates whether the AI Agent participated in the conversation.
- Specified by:
aiAgentParticipatedin interfaceConversation._FinalStage
-
linkedObjects
public Conversation._FinalStage linkedObjects(LinkedObjectList linkedObjects)
- Specified by:
linkedObjectsin interfaceConversation._FinalStage
-
linkedObjects
public Conversation._FinalStage linkedObjects(java.util.Optional<LinkedObjectList> linkedObjects)
- Specified by:
linkedObjectsin interfaceConversation._FinalStage
-
conversationParts
public Conversation._FinalStage conversationParts(ConversationParts conversationParts)
- Specified by:
conversationPartsin interfaceConversation._FinalStage
-
conversationParts
public Conversation._FinalStage conversationParts(java.util.Optional<ConversationParts> conversationParts)
- Specified by:
conversationPartsin interfaceConversation._FinalStage
-
statistics
public Conversation._FinalStage statistics(ConversationStatistics statistics)
- Specified by:
statisticsin interfaceConversation._FinalStage
-
statistics
public Conversation._FinalStage statistics(java.util.Optional<ConversationStatistics> statistics)
- Specified by:
statisticsin interfaceConversation._FinalStage
-
slaApplied
public Conversation._FinalStage slaApplied(SlaApplied slaApplied)
- Specified by:
slaAppliedin interfaceConversation._FinalStage
-
slaApplied
public Conversation._FinalStage slaApplied(java.util.Optional<SlaApplied> slaApplied)
- Specified by:
slaAppliedin interfaceConversation._FinalStage
-
firstContactReply
public Conversation._FinalStage firstContactReply(ConversationFirstContactReply firstContactReply)
- Specified by:
firstContactReplyin interfaceConversation._FinalStage
-
firstContactReply
public Conversation._FinalStage firstContactReply(java.util.Optional<ConversationFirstContactReply> firstContactReply)
- Specified by:
firstContactReplyin interfaceConversation._FinalStage
-
customAttributes
public Conversation._FinalStage customAttributes(java.lang.String key, Conversation.CustomAttributesValue value)
- Specified by:
customAttributesin interfaceConversation._FinalStage
-
putAllCustomAttributes
public Conversation._FinalStage putAllCustomAttributes(java.util.Map<java.lang.String,Conversation.CustomAttributesValue> customAttributes)
- Specified by:
putAllCustomAttributesin interfaceConversation._FinalStage
-
customAttributes
public Conversation._FinalStage customAttributes(java.util.Map<java.lang.String,Conversation.CustomAttributesValue> customAttributes)
- Specified by:
customAttributesin interfaceConversation._FinalStage
-
teammates
public Conversation._FinalStage teammates(ConversationTeammates teammates)
- Specified by:
teammatesin interfaceConversation._FinalStage
-
teammates
public Conversation._FinalStage teammates(java.util.Optional<ConversationTeammates> teammates)
- Specified by:
teammatesin interfaceConversation._FinalStage
-
conversationRating
public Conversation._FinalStage conversationRating(ConversationRating conversationRating)
- Specified by:
conversationRatingin interfaceConversation._FinalStage
-
conversationRating
public Conversation._FinalStage conversationRating(java.util.Optional<ConversationRating> conversationRating)
- Specified by:
conversationRatingin interfaceConversation._FinalStage
-
tags
public Conversation._FinalStage tags(Tags tags)
- Specified by:
tagsin interfaceConversation._FinalStage
-
tags
public Conversation._FinalStage tags(java.util.Optional<Tags> tags)
- Specified by:
tagsin interfaceConversation._FinalStage
-
companyId
public Conversation._FinalStage companyId(java.lang.String companyId)
The ID of the company that the conversation is associated with. The unique identifier for the company which is given by Intercom.
- Specified by:
companyIdin interfaceConversation._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
companyId
public Conversation._FinalStage companyId(java.util.Optional<java.lang.String> companyId)
The ID of the company that the conversation is associated with. The unique identifier for the company which is given by Intercom.
- Specified by:
companyIdin interfaceConversation._FinalStage
-
teamAssigneeId
public Conversation._FinalStage teamAssigneeId(java.lang.String teamAssigneeId)
The id of the team assigned to the conversation. If it's not assigned to a team it will return null.
- Specified by:
teamAssigneeIdin interfaceConversation._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
teamAssigneeId
public Conversation._FinalStage teamAssigneeId(java.util.Optional<java.lang.String> teamAssigneeId)
The id of the team assigned to the conversation. If it's not assigned to a team it will return null.
- Specified by:
teamAssigneeIdin interfaceConversation._FinalStage
-
adminAssigneeId
public Conversation._FinalStage adminAssigneeId(java.lang.Integer adminAssigneeId)
The id of the admin assigned to the conversation. If it's not assigned to an admin it will return null.
- Specified by:
adminAssigneeIdin interfaceConversation._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
adminAssigneeId
public Conversation._FinalStage adminAssigneeId(java.util.Optional<java.lang.Integer> adminAssigneeId)
The id of the admin assigned to the conversation. If it's not assigned to an admin it will return null.
- Specified by:
adminAssigneeIdin interfaceConversation._FinalStage
-
priority
public Conversation._FinalStage priority(Conversation.Priority priority)
If marked as priority, it will return priority or else not_priority.
- Specified by:
priorityin interfaceConversation._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
priority
public Conversation._FinalStage priority(java.util.Optional<Conversation.Priority> priority)
If marked as priority, it will return priority or else not_priority.
- Specified by:
priorityin interfaceConversation._FinalStage
-
snoozedUntil
public Conversation._FinalStage snoozedUntil(java.lang.Integer snoozedUntil)
If set this is the time in the future when this conversation will be marked as open. i.e. it will be in a snoozed state until this time. i.e. it will be in a snoozed state until this time.
- Specified by:
snoozedUntilin interfaceConversation._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
snoozedUntil
public Conversation._FinalStage snoozedUntil(java.util.Optional<java.lang.Integer> snoozedUntil)
If set this is the time in the future when this conversation will be marked as open. i.e. it will be in a snoozed state until this time. i.e. it will be in a snoozed state until this time.
- Specified by:
snoozedUntilin interfaceConversation._FinalStage
-
waitingSince
public Conversation._FinalStage waitingSince(java.lang.Integer waitingSince)
The last time a Contact responded to an Admin. In other words, the time a customer started waiting for a response. Set to null if last reply is from an Admin.
- Specified by:
waitingSincein interfaceConversation._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
waitingSince
public Conversation._FinalStage waitingSince(java.util.Optional<java.lang.Integer> waitingSince)
The last time a Contact responded to an Admin. In other words, the time a customer started waiting for a response. Set to null if last reply is from an Admin.
- Specified by:
waitingSincein interfaceConversation._FinalStage
-
title
public Conversation._FinalStage title(java.lang.String title)
The title given to the conversation.
- Specified by:
titlein interfaceConversation._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
title
public Conversation._FinalStage title(java.util.Optional<java.lang.String> title)
The title given to the conversation.
- Specified by:
titlein interfaceConversation._FinalStage
-
build
public Conversation build()
- Specified by:
buildin interfaceConversation._FinalStage
-
-