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