@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","SlackAppHomeOpenedEventIF"}) @Immutable public final class SlackAppHomeOpenedEvent extends Object implements SlackAppHomeOpenedEventIF
SlackAppHomeOpenedEventIF.
Use the builder to create immutable instances:
SlackAppHomeOpenedEvent.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
SlackAppHomeOpenedEvent.Builder
Builds instances of type
SlackAppHomeOpenedEvent. |
| Modifier and Type | Method and Description |
|---|---|
static SlackAppHomeOpenedEvent.Builder |
builder()
Creates a builder for
SlackAppHomeOpenedEvent. |
static SlackAppHomeOpenedEvent |
copyOf(SlackAppHomeOpenedEventIF instance)
Creates an immutable copy of a
SlackAppHomeOpenedEventIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
SlackAppHomeOpenedEvent that have equal attribute values. |
String |
getChannelId() |
Optional<String> |
getTab() |
SlackEventType |
getType() |
String |
getUserId() |
Optional<HomeTabViewResponse> |
getView() |
int |
hashCode()
Computes a hash code from attributes:
tab, view, userId, channelId, type. |
String |
toString()
Prints the immutable value
SlackAppHomeOpenedEvent with attribute values. |
SlackAppHomeOpenedEvent |
withChannelId(String channelId)
Copy the current immutable object by setting a value for the
channelId attribute. |
SlackAppHomeOpenedEvent |
withTab(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
tab attribute. |
SlackAppHomeOpenedEvent |
withTab(String value)
Copy the current immutable object by setting a present value for the optional
tab attribute. |
SlackAppHomeOpenedEvent |
withType(SlackEventType type)
Copy the current immutable object by setting a value for the
type attribute. |
SlackAppHomeOpenedEvent |
withUserId(String userId)
Copy the current immutable object by setting a value for the
userId attribute. |
SlackAppHomeOpenedEvent |
withView(HomeTabViewResponse value)
Copy the current immutable object by setting a present value for the optional
view attribute. |
SlackAppHomeOpenedEvent |
withView(Optional<HomeTabViewResponse> optional)
Copy the current immutable object by setting an optional value for the
view attribute. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetTstoDetailedEventpublic Optional<String> getTab()
getTab in interface SlackAppHomeOpenedEventIFtab attributepublic Optional<HomeTabViewResponse> getView()
getView in interface SlackAppHomeOpenedEventIFview attributepublic String getUserId()
getUserId in interface HasUsergetUserId in interface SlackAppHomeOpenedEventIFuserId attributepublic String getChannelId()
getChannelId in interface SlackAppHomeOpenedEventIFchannelId attributepublic SlackEventType getType()
getType in interface SlackEventtype attributepublic final SlackAppHomeOpenedEvent withTab(@Nullable String value)
tab attribute.value - The value for tab, null is accepted as java.util.Optional.empty()this objectpublic final SlackAppHomeOpenedEvent withTab(Optional<String> optional)
tab attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for tabthis objectpublic final SlackAppHomeOpenedEvent withView(@Nullable HomeTabViewResponse value)
view attribute.value - The value for view, null is accepted as java.util.Optional.empty()this objectpublic final SlackAppHomeOpenedEvent withView(Optional<HomeTabViewResponse> optional)
view 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 viewthis objectpublic final SlackAppHomeOpenedEvent 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 SlackAppHomeOpenedEvent 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 SlackAppHomeOpenedEvent 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)
SlackAppHomeOpenedEvent that have equal attribute values.public int hashCode()
tab, view, userId, channelId, type.public String toString()
SlackAppHomeOpenedEvent with attribute values.public static SlackAppHomeOpenedEvent copyOf(SlackAppHomeOpenedEventIF instance)
SlackAppHomeOpenedEventIF 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 SlackAppHomeOpenedEvent.Builder builder()
SlackAppHomeOpenedEvent.Copyright © 2020. All rights reserved.