@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","AbstractSlackEventBotMessage"}) @Immutable public final class SlackEventBotMessage extends AbstractSlackEventBotMessage
AbstractSlackEventBotMessage.
Use the builder to create immutable instances:
SlackEventBotMessage.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
SlackEventBotMessage.Builder
Builds instances of type
SlackEventBotMessage. |
| Modifier and Type | Method and Description |
|---|---|
static SlackEventBotMessage.Builder |
builder()
Creates a builder for
SlackEventBotMessage. |
static SlackEventBotMessage |
copyOf(AbstractSlackEventBotMessage instance)
Creates an immutable copy of a
AbstractSlackEventBotMessage value. |
boolean |
equals(Object another)
This instance is equal to all instances of
SlackEventBotMessage that have equal attribute values. |
List<Attachment> |
getAttachments() |
String |
getBotId() |
String |
getChannelId() |
Optional<SlackMessageSubtype> |
getSubtype() |
Optional<String> |
getText() |
String |
getTs() |
SlackEventType |
getType() |
int |
hashCode()
Computes a hash code from attributes:
channelId, text, attachments, botId, subtype, type, ts. |
String |
toString()
Prints the immutable value
SlackEventBotMessage with attribute values. |
SlackEventBotMessage |
withAttachments(Attachment... elements)
Copy the current immutable object with elements that replace the content of
attachments. |
SlackEventBotMessage |
withAttachments(Iterable<? extends Attachment> elements)
Copy the current immutable object with elements that replace the content of
attachments. |
SlackEventBotMessage |
withBotId(String botId)
Copy the current immutable object by setting a value for the
botId attribute. |
SlackEventBotMessage |
withChannelId(String channelId)
Copy the current immutable object by setting a value for the
channelId attribute. |
SlackEventBotMessage |
withSubtype(Optional<SlackMessageSubtype> optional)
Copy the current immutable object by setting an optional value for the
subtype attribute. |
SlackEventBotMessage |
withSubtype(SlackMessageSubtype value)
Copy the current immutable object by setting a present value for the optional
subtype attribute. |
SlackEventBotMessage |
withText(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
text attribute. |
SlackEventBotMessage |
withText(String value)
Copy the current immutable object by setting a present value for the optional
text attribute. |
SlackEventBotMessage |
withTs(String ts)
Copy the current immutable object by setting a value for the
ts attribute. |
SlackEventBotMessage |
withType(SlackEventType type)
Copy the current immutable object by setting a value for the
type attribute. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waittoDetailedEventpublic String getChannelId()
getChannelId in interface HasChannelgetChannelId in class AbstractSlackEventBotMessagechannelId attributepublic Optional<String> getText()
getText in class AbstractSlackEventBotMessagetext attributepublic List<Attachment> getAttachments()
getAttachments in class AbstractSlackEventBotMessageattachments attributepublic String getBotId()
getBotId in class AbstractSlackEventBotMessagebotId attributepublic Optional<SlackMessageSubtype> getSubtype()
getSubtype in class SlackEventMessageBasesubtype attributepublic SlackEventType getType()
type attributepublic String getTs()
ts attributepublic final SlackEventBotMessage 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 SlackEventBotMessage withText(@Nullable String value)
text attribute.value - The value for text, null is accepted as java.util.Optional.empty()this objectpublic final SlackEventBotMessage withText(Optional<String> optional)
text attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for textthis objectpublic final SlackEventBotMessage withAttachments(Attachment... elements)
attachments.elements - The elements to setthis objectpublic final SlackEventBotMessage withAttachments(Iterable<? extends Attachment> elements)
attachments.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of attachments elements to setthis objectpublic final SlackEventBotMessage withBotId(String botId)
botId attribute.
An equals check used to prevent copying of the same value by returning this.botId - A new value for botIdthis objectpublic final SlackEventBotMessage withSubtype(@Nullable SlackMessageSubtype value)
subtype attribute.value - The value for subtype, null is accepted as java.util.Optional.empty()this objectpublic final SlackEventBotMessage 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 SlackEventBotMessage 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 SlackEventBotMessage 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)
SlackEventBotMessage that have equal attribute values.public int hashCode()
channelId, text, attachments, botId, subtype, type, ts.public String toString()
SlackEventBotMessage with attribute values.public static SlackEventBotMessage copyOf(AbstractSlackEventBotMessage instance)
AbstractSlackEventBotMessage 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 SlackEventBotMessage.Builder builder()
SlackEventBotMessage.Copyright © 2019. All rights reserved.