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