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