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