Package com.linecorp.bot.model.event
Class AccountLinkEvent.AccountLinkEventBuilder
- java.lang.Object
-
- com.linecorp.bot.model.event.AccountLinkEvent.AccountLinkEventBuilder
-
- Enclosing class:
- AccountLinkEvent
public static class AccountLinkEvent.AccountLinkEventBuilder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccountLinkEventbuild()AccountLinkEvent.AccountLinkEventBuilderlink(LinkContent link)Content of the account link event.AccountLinkEvent.AccountLinkEventBuildermode(EventMode mode)Channel state.AccountLinkEvent.AccountLinkEventBuilderreplyToken(java.lang.String replyToken)Token for replying to this event.AccountLinkEvent.AccountLinkEventBuildersource(Source source)JSON object which contains the source of the event.AccountLinkEvent.AccountLinkEventBuildertimestamp(java.time.Instant timestamp)Time of the event.java.lang.StringtoString()
-
-
-
Method Detail
-
replyToken
public AccountLinkEvent.AccountLinkEventBuilder replyToken(java.lang.String replyToken)
Token for replying to this event.- Returns:
this.
-
source
public AccountLinkEvent.AccountLinkEventBuilder source(Source source)
JSON object which contains the source of the event.- Returns:
this.
-
timestamp
public AccountLinkEvent.AccountLinkEventBuilder timestamp(java.time.Instant timestamp)
Time of the event.- Returns:
this.
-
link
public AccountLinkEvent.AccountLinkEventBuilder link(LinkContent link)
Content of the account link event.- Returns:
this.
-
mode
public AccountLinkEvent.AccountLinkEventBuilder 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 AccountLinkEvent build()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-