Package com.linecorp.bot.model.event
Class LeaveEvent.LeaveEventBuilder
- java.lang.Object
-
- com.linecorp.bot.model.event.LeaveEvent.LeaveEventBuilder
-
- Enclosing class:
- LeaveEvent
public static class LeaveEvent.LeaveEventBuilder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LeaveEventbuild()LeaveEvent.LeaveEventBuildermode(EventMode mode)Channel state.LeaveEvent.LeaveEventBuildersource(Source source)JSON object which contains the source of the event.LeaveEvent.LeaveEventBuildertimestamp(java.time.Instant timestamp)Time of the event.java.lang.StringtoString()
-
-
-
Method Detail
-
source
public LeaveEvent.LeaveEventBuilder source(Source source)
JSON object which contains the source of the event.- Returns:
this.
-
timestamp
public LeaveEvent.LeaveEventBuilder timestamp(java.time.Instant timestamp)
Time of the event.- Returns:
this.
-
mode
public LeaveEvent.LeaveEventBuilder 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 LeaveEvent build()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-