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