Package com.intercom.api.types
Class SubmitRequest.Builder
java.lang.Object
com.intercom.api.types.SubmitRequest.Builder
- All Implemented Interfaces:
SubmitRequest._FinalStage,SubmitRequest.AdminStage,SubmitRequest.ComponentIdStage,SubmitRequest.ContactStage,SubmitRequest.ContextStage,SubmitRequest.ConversationStage,SubmitRequest.CurrentCanvasStage,SubmitRequest.UserStage,SubmitRequest.WorkspaceIdStage,SubmitRequest.WorkspaceRegionStage
- Enclosing class:
SubmitRequest
public static final class SubmitRequest.Builder
extends Object
implements SubmitRequest.WorkspaceIdStage, SubmitRequest.WorkspaceRegionStage, SubmitRequest.AdminStage, SubmitRequest.ComponentIdStage, SubmitRequest.ContextStage, SubmitRequest.ConversationStage, SubmitRequest.CurrentCanvasStage, SubmitRequest.ContactStage, SubmitRequest.UserStage, SubmitRequest._FinalStage
-
Method Summary
Modifier and TypeMethodDescriptionThe Intercom teammate viewing the conversation.build()componentId(String componentId) The id of the component clicked by the teammate to trigger the request.The contact which is currently being viewed by the teammate in the conversation details panel.The context of where the app is added, where the user last visited, and information on the Messenger settings.conversation(Conversation conversation) The conversation where your app is being shown.currentCanvas(CurrentCanvas currentCanvas) The current canvas the teammate can see.from(SubmitRequest other) inputValues(String key, Object value) A list of key/value pairs of data, inputted by the teammate on the current canvas.inputValues(Map<String, Object> inputValues) putAllInputValues(Map<String, Object> inputValues) A list of key/value pairs of data, inputted by the teammate on the current canvas.The user who took the action.workspaceId(String workspaceId) The workspace ID of the teammate.workspaceRegion(String workspaceRegion) The Intercom hosted region that this app is located in.
-
Method Details
-
from
- Specified by:
fromin interfaceSubmitRequest.WorkspaceIdStage
-
workspaceId
The workspace ID of the teammate. Attribute is
app_idfor V1.2 and below.- Specified by:
workspaceIdin interfaceSubmitRequest.WorkspaceIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
workspaceRegion
The Intercom hosted region that this app is located in.
- Specified by:
workspaceRegionin interfaceSubmitRequest.WorkspaceRegionStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
admin
The Intercom teammate viewing the conversation.
- Specified by:
adminin interfaceSubmitRequest.AdminStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
componentId
The id of the component clicked by the teammate to trigger the request.
- Specified by:
componentIdin interfaceSubmitRequest.ComponentIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
context
The context of where the app is added, where the user last visited, and information on the Messenger settings.
- Specified by:
contextin interfaceSubmitRequest.ContextStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
conversation
The conversation where your app is being shown.
- Specified by:
conversationin interfaceSubmitRequest.ConversationStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
currentCanvas
The current canvas the teammate can see.
- Specified by:
currentCanvasin interfaceSubmitRequest.CurrentCanvasStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
contact
The contact which is currently being viewed by the teammate in the conversation details panel.
- Specified by:
contactin interfaceSubmitRequest.ContactStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
user
The user who took the action.
- Specified by:
userin interfaceSubmitRequest.UserStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
inputValues
A list of key/value pairs of data, inputted by the teammate on the current canvas.
- Specified by:
inputValuesin interfaceSubmitRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
putAllInputValues
A list of key/value pairs of data, inputted by the teammate on the current canvas.
- Specified by:
putAllInputValuesin interfaceSubmitRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
inputValues
- Specified by:
inputValuesin interfaceSubmitRequest._FinalStage
-
build
- Specified by:
buildin interfaceSubmitRequest._FinalStage
-