Package com.linecorp.bot.model.event
Class JoinEvent.JoinEventBuilder
- java.lang.Object
-
- com.linecorp.bot.model.event.JoinEvent.JoinEventBuilder
-
- Enclosing class:
- JoinEvent
public static class JoinEvent.JoinEventBuilder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JoinEvent
build()
JoinEvent.JoinEventBuilder
mode(EventMode mode)
Channel state.JoinEvent.JoinEventBuilder
replyToken(java.lang.String replyToken)
Token for replying to this event.JoinEvent.JoinEventBuilder
source(Source source)
JSON object which contains the source of the event.JoinEvent.JoinEventBuilder
timestamp(java.time.Instant timestamp)
Time of the event.java.lang.String
toString()
-
-
-
Method Detail
-
replyToken
public JoinEvent.JoinEventBuilder replyToken(java.lang.String replyToken)
Token for replying to this event.- Returns:
this
.
-
source
public JoinEvent.JoinEventBuilder source(Source source)
JSON object which contains the source of the event.- Returns:
this
.
-
timestamp
public JoinEvent.JoinEventBuilder timestamp(java.time.Instant timestamp)
Time of the event.- Returns:
this
.
-
mode
public JoinEvent.JoinEventBuilder 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 JoinEvent build()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-