@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","AbstractSlackReplyMessage"}) @Immutable public final class SlackReplyMessage extends AbstractSlackReplyMessage
AbstractSlackReplyMessage.
Use the builder to create immutable instances:
SlackReplyMessage.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
SlackReplyMessage.Builder
Builds instances of type
SlackReplyMessage. |
| Modifier and Type | Method and Description |
|---|---|
static SlackReplyMessage.Builder |
builder()
Creates a builder for
SlackReplyMessage. |
static SlackReplyMessage |
copyOf(AbstractSlackReplyMessage instance)
Creates an immutable copy of a
AbstractSlackReplyMessage value. |
boolean |
equals(Object another)
This instance is equal to all instances of
SlackReplyMessage that have equal attribute values. |
String |
getChannelId() |
Optional<String> |
getLatestReplyTimestamp() |
List<Reply> |
getReplies()
Deprecated.
use
getReplyUserIds() or getLatestReplyTimestamp()
These can be used to find the user ids and the last reply timestamp.
Used to return a list of `Reply` |
int |
getReplyCount() |
Optional<List<String>> |
getReplyUserIds() |
Optional<Integer> |
getReplyUsersCount() |
Optional<SlackMessageSubtype> |
getSubtype() |
String |
getThreadTs() |
String |
getTs() |
SlackEventType |
getType() |
String |
getUserId() |
int |
hashCode()
Computes a hash code from attributes:
threadTs, userId, channelId, replyCount, replyUserIds, replyUsersCount, latestReplyTimestamp, replies, subtype, type, ts. |
String |
toString()
Prints the immutable value
SlackReplyMessage with attribute values. |
SlackReplyMessage |
withChannelId(String channelId)
Copy the current immutable object by setting a value for the
channelId attribute. |
SlackReplyMessage |
withLatestReplyTimestamp(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
latestReplyTimestamp attribute. |
SlackReplyMessage |
withLatestReplyTimestamp(String value)
Copy the current immutable object by setting a present value for the optional
latestReplyTimestamp attribute. |
SlackReplyMessage |
withReplies(Iterable<? extends Reply> elements)
Deprecated.
|
SlackReplyMessage |
withReplies(Reply... elements)
Deprecated.
|
SlackReplyMessage |
withReplyCount(int replyCount)
Copy the current immutable object by setting a value for the
replyCount attribute. |
SlackReplyMessage |
withReplyUserIds(List<String> value)
Copy the current immutable object by setting a present value for the optional
replyUserIds attribute. |
SlackReplyMessage |
withReplyUserIds(Optional<List<String>> optional)
Copy the current immutable object by setting an optional value for the
replyUserIds attribute. |
SlackReplyMessage |
withReplyUsersCount(Integer value)
Copy the current immutable object by setting a present value for the optional
replyUsersCount attribute. |
SlackReplyMessage |
withReplyUsersCount(Optional<Integer> optional)
Copy the current immutable object by setting an optional value for the
replyUsersCount attribute. |
SlackReplyMessage |
withSubtype(Optional<SlackMessageSubtype> optional)
Copy the current immutable object by setting an optional value for the
subtype attribute. |
SlackReplyMessage |
withSubtype(SlackMessageSubtype value)
Copy the current immutable object by setting a present value for the optional
subtype attribute. |
SlackReplyMessage |
withThreadTs(String threadTs)
Copy the current immutable object by setting a value for the
threadTs attribute. |
SlackReplyMessage |
withTs(String ts)
Copy the current immutable object by setting a value for the
ts attribute. |
SlackReplyMessage |
withType(SlackEventType type)
Copy the current immutable object by setting a value for the
type attribute. |
SlackReplyMessage |
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 getThreadTs()
getThreadTs in class AbstractSlackReplyMessagethreadTs attributepublic String getUserId()
getUserId in interface HasUsergetUserId in class AbstractSlackReplyMessageuserId attributepublic String getChannelId()
getChannelId in interface HasChannelgetChannelId in class AbstractSlackReplyMessagechannelId attributepublic int getReplyCount()
getReplyCount in class AbstractSlackReplyMessagereplyCount attributepublic Optional<List<String>> getReplyUserIds()
getReplyUserIds in class AbstractSlackReplyMessagereplyUserIds attributepublic Optional<Integer> getReplyUsersCount()
getReplyUsersCount in class AbstractSlackReplyMessagereplyUsersCount attributepublic Optional<String> getLatestReplyTimestamp()
getLatestReplyTimestamp in class AbstractSlackReplyMessagelatestReplyTimestamp attribute@Deprecated public List<Reply> getReplies()
getReplyUserIds() or getLatestReplyTimestamp()
These can be used to find the user ids and the last reply timestamp.
Used to return a list of `Reply`getReplies in class AbstractSlackReplyMessagepublic Optional<SlackMessageSubtype> getSubtype()
getSubtype in class SlackEventMessageBasesubtype attributepublic SlackEventType getType()
type attributepublic String getTs()
ts attributepublic final SlackReplyMessage withThreadTs(String threadTs)
threadTs attribute.
An equals check used to prevent copying of the same value by returning this.threadTs - A new value for threadTsthis objectpublic final SlackReplyMessage 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 SlackReplyMessage 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 SlackReplyMessage withReplyCount(int replyCount)
replyCount attribute.
A value equality check is used to prevent copying of the same value by returning this.replyCount - A new value for replyCountthis objectpublic final SlackReplyMessage withReplyUserIds(@Nullable List<String> value)
replyUserIds attribute.value - The value for replyUserIds, null is accepted as java.util.Optional.empty()this objectpublic final SlackReplyMessage withReplyUserIds(Optional<List<String>> optional)
replyUserIds attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.optional - A value for replyUserIdsthis objectpublic final SlackReplyMessage withReplyUsersCount(@Nullable Integer value)
replyUsersCount attribute.value - The value for replyUsersCount, null is accepted as java.util.Optional.empty()this objectpublic final SlackReplyMessage withReplyUsersCount(Optional<Integer> optional)
replyUsersCount attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for replyUsersCountthis objectpublic final SlackReplyMessage withLatestReplyTimestamp(@Nullable String value)
latestReplyTimestamp attribute.value - The value for latestReplyTimestamp, null is accepted as java.util.Optional.empty()this objectpublic final SlackReplyMessage withLatestReplyTimestamp(Optional<String> optional)
latestReplyTimestamp attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for latestReplyTimestampthis object@Deprecated public final SlackReplyMessage withReplies(Reply... elements)
replies.elements - The elements to setthis object@Deprecated public final SlackReplyMessage withReplies(Iterable<? extends Reply> elements)
replies.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of replies elements to setthis objectpublic final SlackReplyMessage withSubtype(@Nullable SlackMessageSubtype value)
subtype attribute.value - The value for subtype, null is accepted as java.util.Optional.empty()this objectpublic final SlackReplyMessage 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 SlackReplyMessage 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 SlackReplyMessage 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)
SlackReplyMessage that have equal attribute values.public int hashCode()
threadTs, userId, channelId, replyCount, replyUserIds, replyUsersCount, latestReplyTimestamp, replies, subtype, type, ts.public String toString()
SlackReplyMessage with attribute values.public static SlackReplyMessage copyOf(AbstractSlackReplyMessage instance)
AbstractSlackReplyMessage 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 SlackReplyMessage.Builder builder()
SlackReplyMessage.Copyright © 2019. All rights reserved.