@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","SlackMemberJoinedChannelEventIF"}) @Immutable public final class SlackMemberJoinedChannelEvent extends Object implements SlackMemberJoinedChannelEventIF
SlackMemberJoinedChannelEventIF.
Use the builder to create immutable instances:
SlackMemberJoinedChannelEvent.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
SlackMemberJoinedChannelEvent.Builder
Builds instances of type
SlackMemberJoinedChannelEvent. |
| Modifier and Type | Method and Description |
|---|---|
static SlackMemberJoinedChannelEvent.Builder |
builder()
Creates a builder for
SlackMemberJoinedChannelEvent. |
static SlackMemberJoinedChannelEvent |
copyOf(SlackMemberJoinedChannelEventIF instance)
Creates an immutable copy of a
SlackMemberJoinedChannelEventIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
SlackMemberJoinedChannelEvent that have equal attribute values. |
String |
getChannelId() |
ChannelType |
getChannelType() |
Optional<String> |
getInviterId() |
String |
getTeam() |
SlackEventType |
getType() |
String |
getUserId() |
int |
hashCode()
Computes a hash code from attributes:
userId, channelId, channelType, team, inviterId, type. |
String |
toString()
Prints the immutable value
SlackMemberJoinedChannelEvent with attribute values. |
SlackMemberJoinedChannelEvent |
withChannelId(String channelId)
Copy the current immutable object by setting a value for the
channelId attribute. |
SlackMemberJoinedChannelEvent |
withChannelType(ChannelType channelType)
Copy the current immutable object by setting a value for the
channelType attribute. |
SlackMemberJoinedChannelEvent |
withInviterId(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
inviterId attribute. |
SlackMemberJoinedChannelEvent |
withInviterId(String value)
Copy the current immutable object by setting a present value for the optional
inviterId attribute. |
SlackMemberJoinedChannelEvent |
withTeam(String team)
Copy the current immutable object by setting a value for the
team attribute. |
SlackMemberJoinedChannelEvent |
withType(SlackEventType type)
Copy the current immutable object by setting a value for the
type attribute. |
SlackMemberJoinedChannelEvent |
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 getUserId()
getUserId in interface SlackMemberJoinedChannelEventIFuserId attributepublic String getChannelId()
getChannelId in interface SlackMemberJoinedChannelEventIFchannelId attributepublic ChannelType getChannelType()
getChannelType in interface SlackMemberJoinedChannelEventIFchannelType attributepublic String getTeam()
getTeam in interface SlackMemberJoinedChannelEventIFteam attributepublic Optional<String> getInviterId()
getInviterId in interface SlackMemberJoinedChannelEventIFinviterId attributepublic SlackEventType getType()
getType in interface SlackEventtype attributepublic final SlackMemberJoinedChannelEvent 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 SlackMemberJoinedChannelEvent 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 SlackMemberJoinedChannelEvent withChannelType(ChannelType channelType)
channelType attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.channelType - A new value for channelTypethis objectpublic final SlackMemberJoinedChannelEvent withTeam(String team)
team attribute.
An equals check used to prevent copying of the same value by returning this.team - A new value for teamthis objectpublic final SlackMemberJoinedChannelEvent withInviterId(@Nullable String value)
inviterId attribute.value - The value for inviterId, null is accepted as java.util.Optional.empty()this objectpublic final SlackMemberJoinedChannelEvent withInviterId(Optional<String> optional)
inviterId attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for inviterIdthis objectpublic final SlackMemberJoinedChannelEvent 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)
SlackMemberJoinedChannelEvent that have equal attribute values.public int hashCode()
userId, channelId, channelType, team, inviterId, type.public String toString()
SlackMemberJoinedChannelEvent with attribute values.public static SlackMemberJoinedChannelEvent copyOf(SlackMemberJoinedChannelEventIF instance)
SlackMemberJoinedChannelEventIF 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 SlackMemberJoinedChannelEvent.Builder builder()
SlackMemberJoinedChannelEvent.Copyright © 2019. All rights reserved.