Package com.intercom.api.types
Class SubmitResponse.Builder
java.lang.Object
com.intercom.api.types.SubmitResponse.Builder
- All Implemented Interfaces:
SubmitResponse._FinalStage,SubmitResponse.CanvasStage
- Enclosing class:
SubmitResponse
public static final class SubmitResponse.Builder
extends Object
implements SubmitResponse.CanvasStage, SubmitResponse._FinalStage
-
Method Summary
Modifier and TypeMethodDescriptionbuild()canvas(CanvasObject canvas) The canvas object that defines the new UI to be shown.cardCreationOptions(Map<String, Object> cardCreationOptions) Optional.cardCreationOptions(Optional<Map<String, Object>> cardCreationOptions) Optional.from(SubmitResponse other)
-
Method Details
-
from
- Specified by:
fromin interfaceSubmitResponse.CanvasStage
-
canvas
The canvas object that defines the new UI to be shown.
- Specified by:
canvasin interfaceSubmitResponse.CanvasStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
event
Optional. Indicates if the app has completed its purpose.
- Specified by:
eventin interfaceSubmitResponse._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
event
- Specified by:
eventin interfaceSubmitResponse._FinalStage
-
cardCreationOptions
Optional. Key-value pairs that will be sent in the initialize request to insert an app into the conversation reply.
- Specified by:
cardCreationOptionsin interfaceSubmitResponse._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
cardCreationOptions
public SubmitResponse._FinalStage cardCreationOptions(Optional<Map<String, Object>> cardCreationOptions) - Specified by:
cardCreationOptionsin interfaceSubmitResponse._FinalStage
-
build
- Specified by:
buildin interfaceSubmitResponse._FinalStage
-