Class InitializeRequest.Builder
- java.lang.Object
-
- com.intercom.api.types.InitializeRequest.Builder
-
- All Implemented Interfaces:
InitializeRequest._FinalStage,InitializeRequest.AdminStage,InitializeRequest.ContactStage,InitializeRequest.ContextStage,InitializeRequest.ConversationStage,InitializeRequest.WorkspaceIdStage,InitializeRequest.WorkspaceRegionStage
- Enclosing class:
- InitializeRequest
public static final class InitializeRequest.Builder extends java.lang.Object implements InitializeRequest.WorkspaceIdStage, InitializeRequest.WorkspaceRegionStage, InitializeRequest.AdminStage, InitializeRequest.ContextStage, InitializeRequest.ConversationStage, InitializeRequest.ContactStage, InitializeRequest._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InitializeRequest.ContextStageadmin(Admin admin)The Intercom teammate viewing the conversation.InitializeRequestbuild()InitializeRequest._FinalStagecardCreationOptions(java.lang.String key, java.lang.Object value)Key-value pairs which were given as results in response to the Configure request.InitializeRequest._FinalStagecardCreationOptions(java.util.Map<java.lang.String,java.lang.Object> cardCreationOptions)Key-value pairs which were given as results in response to the Configure request.InitializeRequest._FinalStagecontact(Contact contact)The contact which is currently being viewed by the teammate in the conversation details panel.InitializeRequest.ConversationStagecontext(Context context)The context of where the app is added, where the user last visited, and information on the Messenger settings.InitializeRequest.ContactStageconversation(Conversation conversation)The conversation your app is being shown for.InitializeRequest.Builderfrom(InitializeRequest other)InitializeRequest._FinalStageputAllCardCreationOptions(java.util.Map<java.lang.String,java.lang.Object> cardCreationOptions)Key-value pairs which were given as results in response to the Configure request.InitializeRequest.WorkspaceRegionStageworkspaceId(java.lang.String workspaceId)The workspace ID of the teammate.InitializeRequest.AdminStageworkspaceRegion(java.lang.String workspaceRegion)The Intercom hosted region that this app is located in.
-
-
-
Method Detail
-
from
public InitializeRequest.Builder from(InitializeRequest other)
- Specified by:
fromin interfaceInitializeRequest.WorkspaceIdStage
-
workspaceId
public InitializeRequest.WorkspaceRegionStage workspaceId(@NotNull java.lang.String workspaceId)
The workspace ID of the teammate. Attribute is `app_id` for V1.2 and below.The workspace ID of the teammate. Attribute is
app_idfor V1.2 and below.- Specified by:
workspaceIdin interfaceInitializeRequest.WorkspaceIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
workspaceRegion
public InitializeRequest.AdminStage workspaceRegion(@NotNull java.lang.String workspaceRegion)
The Intercom hosted region that this app is located in.The Intercom hosted region that this app is located in.
- Specified by:
workspaceRegionin interfaceInitializeRequest.WorkspaceRegionStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
admin
public InitializeRequest.ContextStage admin(@NotNull Admin admin)
The Intercom teammate viewing the conversation.The Intercom teammate viewing the conversation.
- Specified by:
adminin interfaceInitializeRequest.AdminStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
context
public InitializeRequest.ConversationStage context(@NotNull Context context)
The context of where the app is added, where the user last visited, and information on the Messenger settings.The context of where the app is added, where the user last visited, and information on the Messenger settings.
- Specified by:
contextin interfaceInitializeRequest.ContextStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
conversation
public InitializeRequest.ContactStage conversation(@NotNull Conversation conversation)
The conversation your app is being shown for.The conversation your app is being shown for.
- Specified by:
conversationin interfaceInitializeRequest.ConversationStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
contact
public InitializeRequest._FinalStage contact(@NotNull Contact contact)
The contact which is currently being viewed by the teammate in the conversation details panel. We send an individual initialize request for each customer when it's a group conversation.The contact which is currently being viewed by the teammate in the conversation details panel. We send an individual initialize request for each customer when it's a group conversation.
- Specified by:
contactin interfaceInitializeRequest.ContactStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
cardCreationOptions
public InitializeRequest._FinalStage cardCreationOptions(java.lang.String key, java.lang.Object value)
Key-value pairs which were given as results in response to the Configure request.
- Specified by:
cardCreationOptionsin interfaceInitializeRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
putAllCardCreationOptions
public InitializeRequest._FinalStage putAllCardCreationOptions(java.util.Map<java.lang.String,java.lang.Object> cardCreationOptions)
Key-value pairs which were given as results in response to the Configure request.
- Specified by:
putAllCardCreationOptionsin interfaceInitializeRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
cardCreationOptions
public InitializeRequest._FinalStage cardCreationOptions(java.util.Map<java.lang.String,java.lang.Object> cardCreationOptions)
Key-value pairs which were given as results in response to the Configure request.
- Specified by:
cardCreationOptionsin interfaceInitializeRequest._FinalStage
-
build
public InitializeRequest build()
- Specified by:
buildin interfaceInitializeRequest._FinalStage
-
-