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 java.lang.Object implements SubmitResponse.CanvasStage, SubmitResponse._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SubmitResponsebuild()SubmitResponse._FinalStagecanvas(CanvasObject canvas)The canvas object that defines the new UI to be shown.SubmitResponse._FinalStagecardCreationOptions(java.util.Map<java.lang.String,java.lang.Object> cardCreationOptions)Optional.SubmitResponse._FinalStagecardCreationOptions(java.util.Optional<java.util.Map<java.lang.String,java.lang.Object>> cardCreationOptions)Optional.SubmitResponse._FinalStageevent(Event event)Optional.SubmitResponse._FinalStageevent(java.util.Optional<Event> event)Optional.SubmitResponse.Builderfrom(SubmitResponse other)
-
-
-
Method Detail
-
from
public SubmitResponse.Builder from(SubmitResponse other)
- Specified by:
fromin interfaceSubmitResponse.CanvasStage
-
canvas
public SubmitResponse._FinalStage canvas(@NotNull CanvasObject canvas)
The canvas object that defines the new UI to be shown.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
public SubmitResponse._FinalStage event(Event 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
public SubmitResponse._FinalStage event(java.util.Optional<Event> event)
Optional. Indicates if the app has completed its purpose.
- Specified by:
eventin interfaceSubmitResponse._FinalStage
-
cardCreationOptions
public SubmitResponse._FinalStage cardCreationOptions(java.util.Map<java.lang.String,java.lang.Object> 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(java.util.Optional<java.util.Map<java.lang.String,java.lang.Object>> 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
-
build
public SubmitResponse build()
- Specified by:
buildin interfaceSubmitResponse._FinalStage
-
-