Class SlackMemberJoinedChannelEvent
java.lang.Object
com.hubspot.slack.client.models.events.user.SlackMemberJoinedChannelEvent
- All Implemented Interfaces:
HasChannel,SlackEvent,SlackMemberJoinedChannelEventIF
@Generated(from="SlackMemberJoinedChannelEventIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class SlackMemberJoinedChannelEvent
extends Object
implements SlackMemberJoinedChannelEventIF
Immutable implementation of
SlackMemberJoinedChannelEventIF.
Use the builder to create immutable instances:
SlackMemberJoinedChannelEvent.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeSlackMemberJoinedChannelEvent. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forSlackMemberJoinedChannelEvent.copyOf(SlackMemberJoinedChannelEventIF instance) Creates an immutable copy of aSlackMemberJoinedChannelEventIFvalue.booleanThis instance is equal to all instances ofSlackMemberJoinedChannelEventthat have equal attribute values.getTeam()getType()inthashCode()Computes a hash code from attributes:type,userId,channelId,channelType,team,inviterId.toString()Prints the immutable valueSlackMemberJoinedChannelEventwith attribute values.withChannelId(String value) Copy the current immutable object by setting a value for thechannelIdattribute.withChannelType(ChannelType value) Copy the current immutable object by setting a value for thechannelTypeattribute.withInviterId(String value) Copy the current immutable object by setting a present value for the optionalinviterIdattribute.withInviterId(Optional<String> optional) Copy the current immutable object by setting an optional value for theinviterIdattribute.Copy the current immutable object by setting a value for theteamattribute.withType(SlackEventType value) Copy the current immutable object by setting a value for thetypeattribute.withUserId(String value) Copy the current immutable object by setting a value for theuserIdattribute.Methods inherited from interface com.hubspot.slack.client.models.events.user.SlackMemberJoinedChannelEventIF
getTs
-
Method Details
-
getType
- Specified by:
getTypein interfaceSlackEvent- Returns:
- The value of the
typeattribute
-
getUserId
- Specified by:
getUserIdin interfaceSlackMemberJoinedChannelEventIF- Returns:
- The value of the
userIdattribute
-
getChannelId
- Specified by:
getChannelIdin interfaceHasChannel- Specified by:
getChannelIdin interfaceSlackMemberJoinedChannelEventIF- Returns:
- The value of the
channelIdattribute
-
getChannelType
- Specified by:
getChannelTypein interfaceSlackMemberJoinedChannelEventIF- Returns:
- The value of the
channelTypeattribute
-
getTeam
- Specified by:
getTeamin interfaceSlackMemberJoinedChannelEventIF- Returns:
- The value of the
teamattribute
-
getInviterId
- Specified by:
getInviterIdin interfaceSlackMemberJoinedChannelEventIF- Returns:
- The value of the
inviterIdattribute
-
withType
Copy the current immutable object by setting a value for thetypeattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for type- Returns:
- A modified copy or the
thisobject
-
withUserId
Copy the current immutable object by setting a value for theuserIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for userId- Returns:
- A modified copy or the
thisobject
-
withChannelId
Copy the current immutable object by setting a value for thechannelIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for channelId- Returns:
- A modified copy or the
thisobject
-
withChannelType
Copy the current immutable object by setting a value for thechannelTypeattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for channelType- Returns:
- A modified copy or the
thisobject
-
withTeam
Copy the current immutable object by setting a value for theteamattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for team- Returns:
- A modified copy or the
thisobject
-
withInviterId
Copy the current immutable object by setting a present value for the optionalinviterIdattribute.- Parameters:
value- The value for inviterId,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withInviterId
Copy the current immutable object by setting an optional value for theinviterIdattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for inviterId- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofSlackMemberJoinedChannelEventthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:type,userId,channelId,channelType,team,inviterId. -
toString
Prints the immutable valueSlackMemberJoinedChannelEventwith attribute values. -
copyOf
Creates an immutable copy of aSlackMemberJoinedChannelEventIFvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable SlackMemberJoinedChannelEvent instance
-
builder
Creates a builder forSlackMemberJoinedChannelEvent.SlackMemberJoinedChannelEvent.builder() .setType(com.hubspot.slack.client.models.events.SlackEventType) // requiredtype.setUserId(String) // requireduserId.setChannelId(String) // requiredchannelId.setChannelType(com.hubspot.slack.client.models.ChannelType) // requiredchannelType.setTeam(String) // requiredteam.setInviterId(Optional<String>) // optionalinviterId.build();- Returns:
- A new SlackMemberJoinedChannelEvent builder
-