@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","AbstractSlackEventMessageReplied"}) @Immutable public final class SlackEventMessageReplied extends AbstractSlackEventMessageReplied
AbstractSlackEventMessageReplied.
Use the builder to create immutable instances:
SlackEventMessageReplied.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
SlackEventMessageReplied.Builder
Builds instances of type
SlackEventMessageReplied. |
| Modifier and Type | Method and Description |
|---|---|
static SlackEventMessageReplied.Builder |
builder()
Creates a builder for
SlackEventMessageReplied. |
static SlackEventMessageReplied |
copyOf(AbstractSlackEventMessageReplied instance)
Creates an immutable copy of a
AbstractSlackEventMessageReplied value. |
boolean |
equals(Object another)
This instance is equal to all instances of
SlackEventMessageReplied that have equal attribute values. |
String |
getChannelId() |
SlackReplyMessage |
getMessage() |
Optional<SlackMessageSubtype> |
getSubtype() |
String |
getTs() |
SlackEventType |
getType() |
int |
hashCode()
Computes a hash code from attributes:
channelId, message, subtype, type, ts. |
String |
toString()
Prints the immutable value
SlackEventMessageReplied with attribute values. |
SlackEventMessageReplied |
withChannelId(String channelId)
Copy the current immutable object by setting a value for the
channelId attribute. |
SlackEventMessageReplied |
withMessage(SlackReplyMessage message)
Copy the current immutable object by setting a value for the
message attribute. |
SlackEventMessageReplied |
withSubtype(Optional<SlackMessageSubtype> optional)
Copy the current immutable object by setting an optional value for the
subtype attribute. |
SlackEventMessageReplied |
withSubtype(SlackMessageSubtype value)
Copy the current immutable object by setting a present value for the optional
subtype attribute. |
SlackEventMessageReplied |
withTs(String ts)
Copy the current immutable object by setting a value for the
ts attribute. |
SlackEventMessageReplied |
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 AbstractSlackEventMessageRepliedchannelId attributepublic SlackReplyMessage getMessage()
getMessage in class AbstractSlackEventMessageRepliedmessage attributepublic Optional<SlackMessageSubtype> getSubtype()
getSubtype in class SlackEventMessageBasesubtype attributepublic SlackEventType getType()
type attributepublic String getTs()
ts attributepublic final SlackEventMessageReplied 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 SlackEventMessageReplied withMessage(SlackReplyMessage message)
message attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.message - A new value for messagethis objectpublic final SlackEventMessageReplied withSubtype(@Nullable SlackMessageSubtype value)
subtype attribute.value - The value for subtype, null is accepted as java.util.Optional.empty()this objectpublic final SlackEventMessageReplied 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 SlackEventMessageReplied 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 SlackEventMessageReplied 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)
SlackEventMessageReplied that have equal attribute values.public int hashCode()
channelId, message, subtype, type, ts.public String toString()
SlackEventMessageReplied with attribute values.public static SlackEventMessageReplied copyOf(AbstractSlackEventMessageReplied instance)
AbstractSlackEventMessageReplied 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 SlackEventMessageReplied.Builder builder()
SlackEventMessageReplied.Copyright © 2019. All rights reserved.