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