@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","SlackLinkSharedEventIF"}) @Immutable public final class SlackLinkSharedEvent extends Object implements SlackLinkSharedEventIF
SlackLinkSharedEventIF.
Use the builder to create immutable instances:
SlackLinkSharedEvent.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
SlackLinkSharedEvent.Builder
Builds instances of type
SlackLinkSharedEvent. |
| Modifier and Type | Method and Description |
|---|---|
static SlackLinkSharedEvent.Builder |
builder()
Creates a builder for
SlackLinkSharedEvent. |
static SlackLinkSharedEvent |
copyOf(SlackLinkSharedEventIF instance)
Creates an immutable copy of a
SlackLinkSharedEventIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
SlackLinkSharedEvent that have equal attribute values. |
String |
getChannelId() |
List<Link> |
getLinks() |
String |
getMessageTs() |
Optional<String> |
getThreadTs() |
SlackEventType |
getType() |
String |
getUserId() |
int |
hashCode()
Computes a hash code from attributes:
channelId, userId, messageTs, threadTs, links, type. |
String |
toString()
Prints the immutable value
SlackLinkSharedEvent with attribute values. |
SlackLinkSharedEvent |
withChannelId(String channelId)
Copy the current immutable object by setting a value for the
channelId attribute. |
SlackLinkSharedEvent |
withLinks(Iterable<? extends Link> elements)
Copy the current immutable object with elements that replace the content of
links. |
SlackLinkSharedEvent |
withLinks(Link... elements)
Copy the current immutable object with elements that replace the content of
links. |
SlackLinkSharedEvent |
withMessageTs(String messageTs)
Copy the current immutable object by setting a value for the
messageTs attribute. |
SlackLinkSharedEvent |
withThreadTs(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
threadTs attribute. |
SlackLinkSharedEvent |
withThreadTs(String value)
Copy the current immutable object by setting a present value for the optional
threadTs attribute. |
SlackLinkSharedEvent |
withType(SlackEventType type)
Copy the current immutable object by setting a value for the
type attribute. |
SlackLinkSharedEvent |
withUserId(String userId)
Copy the current immutable object by setting a value for the
userId attribute. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetTstoDetailedEventpublic String getChannelId()
getChannelId in interface SlackLinkSharedEventIFchannelId attributepublic String getUserId()
getUserId in interface SlackLinkSharedEventIFuserId attributepublic String getMessageTs()
getMessageTs in interface SlackLinkSharedEventIFmessageTs attributepublic Optional<String> getThreadTs()
getThreadTs in interface SlackLinkSharedEventIFthreadTs attributepublic List<Link> getLinks()
getLinks in interface SlackLinkSharedEventIFlinks attributepublic SlackEventType getType()
getType in interface SlackEventtype attributepublic final SlackLinkSharedEvent 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 SlackLinkSharedEvent 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 SlackLinkSharedEvent withMessageTs(String messageTs)
messageTs attribute.
An equals check used to prevent copying of the same value by returning this.messageTs - A new value for messageTsthis objectpublic final SlackLinkSharedEvent withThreadTs(@Nullable String value)
threadTs attribute.value - The value for threadTs, null is accepted as java.util.Optional.empty()this objectpublic final SlackLinkSharedEvent 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 SlackLinkSharedEvent withLinks(Link... elements)
links.elements - The elements to setthis objectpublic final SlackLinkSharedEvent withLinks(Iterable<? extends Link> elements)
links.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of links elements to setthis objectpublic final SlackLinkSharedEvent 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 boolean equals(@Nullable Object another)
SlackLinkSharedEvent that have equal attribute values.public int hashCode()
channelId, userId, messageTs, threadTs, links, type.public String toString()
SlackLinkSharedEvent with attribute values.public static SlackLinkSharedEvent copyOf(SlackLinkSharedEventIF instance)
SlackLinkSharedEventIF 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 SlackLinkSharedEvent.Builder builder()
SlackLinkSharedEvent.Copyright © 2020. All rights reserved.