@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","AbstractSlackEventMessageIm"}) @Immutable public final class SlackEventMessageIm extends AbstractSlackEventMessageIm
AbstractSlackEventMessageIm.
Use the builder to create immutable instances:
SlackEventMessageIm.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
SlackEventMessageIm.Builder
Builds instances of type
SlackEventMessageIm. |
| Modifier and Type | Method and Description |
|---|---|
static SlackEventMessageIm.Builder |
builder()
Creates a builder for
SlackEventMessageIm. |
static SlackEventMessageIm |
copyOf(AbstractSlackEventMessageIm instance)
Creates an immutable copy of a
AbstractSlackEventMessageIm value. |
boolean |
equals(Object another)
This instance is equal to all instances of
SlackEventMessageIm that have equal attribute values. |
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, text, userId, subtype, type, ts. |
String |
toString()
Prints the immutable value
SlackEventMessageIm with attribute values. |
SlackEventMessageIm |
withChannelId(String channelId)
Copy the current immutable object by setting a value for the
channelId attribute. |
SlackEventMessageIm |
withSubtype(Optional<SlackMessageSubtype> optional)
Copy the current immutable object by setting an optional value for the
subtype attribute. |
SlackEventMessageIm |
withSubtype(SlackMessageSubtype value)
Copy the current immutable object by setting a present value for the optional
subtype attribute. |
SlackEventMessageIm |
withText(String text)
Copy the current immutable object by setting a value for the
text attribute. |
SlackEventMessageIm |
withThreadTs(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
threadTs attribute. |
SlackEventMessageIm |
withThreadTs(String value)
Copy the current immutable object by setting a present value for the optional
threadTs attribute. |
SlackEventMessageIm |
withTs(String ts)
Copy the current immutable object by setting a value for the
ts attribute. |
SlackEventMessageIm |
withType(SlackEventType type)
Copy the current immutable object by setting a value for the
type attribute. |
SlackEventMessageIm |
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 AbstractSlackEventMessageImchannelId attributepublic Optional<String> getThreadTs()
getThreadTs in class AbstractSlackEventMessageImthreadTs attributepublic String getText()
getText in class AbstractSlackEventMessageImtext attributepublic String getUserId()
getUserId in interface HasUsergetUserId in class AbstractSlackEventMessageImuserId attributepublic Optional<SlackMessageSubtype> getSubtype()
getSubtype in class SlackEventMessageBasesubtype attributepublic SlackEventType getType()
type attributepublic String getTs()
ts attributepublic final SlackEventMessageIm 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 SlackEventMessageIm withThreadTs(@Nullable String value)
threadTs attribute.value - The value for threadTs, null is accepted as java.util.Optional.empty()this objectpublic final SlackEventMessageIm 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 SlackEventMessageIm 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 SlackEventMessageIm 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 SlackEventMessageIm withSubtype(@Nullable SlackMessageSubtype value)
subtype attribute.value - The value for subtype, null is accepted as java.util.Optional.empty()this objectpublic final SlackEventMessageIm 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 SlackEventMessageIm 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 SlackEventMessageIm 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)
SlackEventMessageIm that have equal attribute values.public int hashCode()
channelId, threadTs, text, userId, subtype, type, ts.public String toString()
SlackEventMessageIm with attribute values.public static SlackEventMessageIm copyOf(AbstractSlackEventMessageIm instance)
AbstractSlackEventMessageIm 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 SlackEventMessageIm.Builder builder()
SlackEventMessageIm.Copyright © 2019. All rights reserved.