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