@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","AbstractSlackEventMessage"}) @Immutable public final class SlackEventMessage extends AbstractSlackEventMessage
AbstractSlackEventMessage.
Use the builder to create immutable instances:
SlackEventMessage.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
SlackEventMessage.Builder
Builds instances of type
SlackEventMessage. |
| Modifier and Type | Method and Description |
|---|---|
static SlackEventMessage.Builder |
builder()
Creates a builder for
SlackEventMessage. |
static SlackEventMessage |
copyOf(AbstractSlackEventMessage instance)
Creates an immutable copy of a
AbstractSlackEventMessage value. |
boolean |
equals(Object another)
This instance is equal to all instances of
SlackEventMessage that have equal attribute values. |
Optional<String> |
getBotId() |
String |
getChannelId() |
Optional<SlackMessageSubtype> |
getSubtype() |
String |
getText() |
Optional<String> |
getThreadTs() |
String |
getTs() |
SlackEventType |
getType() |
String |
getUserId() |
int |
hashCode()
Computes a hash code from attributes:
channelId, threadTs, botId, userId, text, subtype, type, ts. |
String |
toString()
Prints the immutable value
SlackEventMessage with attribute values. |
SlackEventMessage |
withBotId(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
botId attribute. |
SlackEventMessage |
withBotId(String value)
Copy the current immutable object by setting a present value for the optional
botId attribute. |
SlackEventMessage |
withChannelId(String channelId)
Copy the current immutable object by setting a value for the
channelId attribute. |
SlackEventMessage |
withSubtype(Optional<SlackMessageSubtype> optional)
Copy the current immutable object by setting an optional value for the
subtype attribute. |
SlackEventMessage |
withSubtype(SlackMessageSubtype value)
Copy the current immutable object by setting a present value for the optional
subtype attribute. |
SlackEventMessage |
withText(String text)
Copy the current immutable object by setting a value for the
text attribute. |
SlackEventMessage |
withThreadTs(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
threadTs attribute. |
SlackEventMessage |
withThreadTs(String value)
Copy the current immutable object by setting a present value for the optional
threadTs attribute. |
SlackEventMessage |
withTs(String ts)
Copy the current immutable object by setting a value for the
ts attribute. |
SlackEventMessage |
withType(SlackEventType type)
Copy the current immutable object by setting a value for the
type attribute. |
SlackEventMessage |
withUserId(String userId)
Copy the current immutable object by setting a value for the
userId attribute. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waittoDetailedEventpublic String getChannelId()
getChannelId in interface HasChannelgetChannelId in class AbstractSlackEventMessagechannelId attributepublic Optional<String> getThreadTs()
getThreadTs in class AbstractSlackEventMessagethreadTs attributepublic Optional<String> getBotId()
getBotId in class AbstractSlackEventMessagebotId attributepublic String getUserId()
getUserId in interface HasUsergetUserId in class AbstractSlackEventMessageuserId attributepublic String getText()
getText in class AbstractSlackEventMessagetext attributepublic Optional<SlackMessageSubtype> getSubtype()
getSubtype in class SlackEventMessageBasesubtype attributepublic SlackEventType getType()
type attributepublic String getTs()
ts attributepublic final SlackEventMessage withChannelId(String channelId)
channelId attribute.
An equals check used to prevent copying of the same value by returning this.channelId - A new value for channelIdthis objectpublic final SlackEventMessage withThreadTs(@Nullable String value)
threadTs attribute.value - The value for threadTs, null is accepted as java.util.Optional.empty()this objectpublic final SlackEventMessage withThreadTs(Optional<String> optional)
threadTs attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for threadTsthis objectpublic final SlackEventMessage withBotId(@Nullable String value)
botId attribute.value - The value for botId, null is accepted as java.util.Optional.empty()this objectpublic final SlackEventMessage withBotId(Optional<String> optional)
botId attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for botIdthis objectpublic final SlackEventMessage withUserId(String userId)
userId attribute.
An equals check used to prevent copying of the same value by returning this.userId - A new value for userIdthis objectpublic final SlackEventMessage withText(String text)
text attribute.
An equals check used to prevent copying of the same value by returning this.text - A new value for textthis objectpublic final SlackEventMessage withSubtype(@Nullable SlackMessageSubtype value)
subtype attribute.value - The value for subtype, null is accepted as java.util.Optional.empty()this objectpublic final SlackEventMessage withSubtype(Optional<SlackMessageSubtype> optional)
subtype attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for subtypethis objectpublic final SlackEventMessage withType(SlackEventType type)
type attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.type - A new value for typethis objectpublic final SlackEventMessage withTs(String ts)
ts attribute.
An equals check used to prevent copying of the same value by returning this.ts - A new value for tsthis objectpublic boolean equals(@Nullable Object another)
SlackEventMessage that have equal attribute values.public int hashCode()
channelId, threadTs, botId, userId, text, subtype, type, ts.public String toString()
SlackEventMessage with attribute values.public static SlackEventMessage copyOf(AbstractSlackEventMessage instance)
AbstractSlackEventMessage value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static SlackEventMessage.Builder builder()
SlackEventMessage.Copyright © 2019. All rights reserved.