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