Class SlackMemberLeftChannelEvent
java.lang.Object
com.hubspot.slack.client.models.events.user.SlackMemberLeftChannelEvent
- All Implemented Interfaces:
HasChannel,SlackEvent,SlackMemberLeftChannelEventIF
@Generated(from="SlackMemberLeftChannelEventIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class SlackMemberLeftChannelEvent
extends Object
implements SlackMemberLeftChannelEventIF
Immutable implementation of
SlackMemberLeftChannelEventIF.
Use the builder to create immutable instances:
SlackMemberLeftChannelEvent.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeSlackMemberLeftChannelEvent. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forSlackMemberLeftChannelEvent.static SlackMemberLeftChannelEventcopyOf(SlackMemberLeftChannelEventIF instance) Creates an immutable copy of aSlackMemberLeftChannelEventIFvalue.booleanThis instance is equal to all instances ofSlackMemberLeftChannelEventthat have equal attribute values.getTeam()getType()inthashCode()Computes a hash code from attributes:type,userId,channelId,channelType,team.toString()Prints the immutable valueSlackMemberLeftChannelEventwith 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.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.SlackMemberLeftChannelEventIF
getTs
-
Method Details
-
getType
- Specified by:
getTypein interfaceSlackEvent- Returns:
- The value of the
typeattribute
-
getUserId
- Specified by:
getUserIdin interfaceSlackMemberLeftChannelEventIF- Returns:
- The value of the
userIdattribute
-
getChannelId
- Specified by:
getChannelIdin interfaceHasChannel- Specified by:
getChannelIdin interfaceSlackMemberLeftChannelEventIF- Returns:
- The value of the
channelIdattribute
-
getChannelType
- Specified by:
getChannelTypein interfaceSlackMemberLeftChannelEventIF- Returns:
- The value of the
channelTypeattribute
-
getTeam
- Specified by:
getTeamin interfaceSlackMemberLeftChannelEventIF- Returns:
- The value of the
teamattribute
-
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
-
equals
This instance is equal to all instances ofSlackMemberLeftChannelEventthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:type,userId,channelId,channelType,team. -
toString
Prints the immutable valueSlackMemberLeftChannelEventwith attribute values. -
copyOf
Creates an immutable copy of aSlackMemberLeftChannelEventIFvalue. 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 SlackMemberLeftChannelEvent instance
-
builder
Creates a builder forSlackMemberLeftChannelEvent.SlackMemberLeftChannelEvent.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.build();- Returns:
- A new SlackMemberLeftChannelEvent builder
-