Package com.linecorp.bot.model.event
Class PostbackEvent.PostbackEventBuilder
- java.lang.Object
-
- com.linecorp.bot.model.event.PostbackEvent.PostbackEventBuilder
-
- Enclosing class:
- PostbackEvent
public static class PostbackEvent.PostbackEventBuilder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PostbackEventbuild()PostbackEvent.PostbackEventBuildermode(EventMode mode)Channel state.PostbackEvent.PostbackEventBuilderpostbackContent(PostbackContent postbackContent)Content of the postback event.PostbackEvent.PostbackEventBuilderreplyToken(java.lang.String replyToken)Token for replying to this event.PostbackEvent.PostbackEventBuildersource(Source source)JSON object which contains the source of the event.PostbackEvent.PostbackEventBuildertimestamp(java.time.Instant timestamp)Time of the event.java.lang.StringtoString()
-
-
-
Method Detail
-
replyToken
public PostbackEvent.PostbackEventBuilder replyToken(java.lang.String replyToken)
Token for replying to this event.- Returns:
this.
-
source
public PostbackEvent.PostbackEventBuilder source(Source source)
JSON object which contains the source of the event.- Returns:
this.
-
postbackContent
public PostbackEvent.PostbackEventBuilder postbackContent(PostbackContent postbackContent)
Content of the postback event.- Returns:
this.
-
timestamp
public PostbackEvent.PostbackEventBuilder timestamp(java.time.Instant timestamp)
Time of the event.- Returns:
this.
-
mode
public PostbackEvent.PostbackEventBuilder mode(EventMode mode)
Channel state.- active
- The channel is active. You can send a reply message or push message from the bot server that received this webhook event.
- standby (under development)
- The channel is waiting. The bot server that received this webhook event shouldn't send any messages.
- Returns:
this.
-
build
public PostbackEvent build()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-