Class SlackGroupOpenEvent
java.lang.Object
com.hubspot.slack.client.models.events.group.SlackGroupOpenEvent
- All Implemented Interfaces:
SlackConversationEventCore,SlackGroupOpenEventIF,SlackEvent
@Generated(from="SlackGroupOpenEventIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class SlackGroupOpenEvent
extends Object
implements SlackGroupOpenEventIF
Immutable implementation of
SlackGroupOpenEventIF.
Use the builder to create immutable instances:
SlackGroupOpenEvent.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeSlackGroupOpenEvent. -
Method Summary
Modifier and TypeMethodDescriptionstatic SlackGroupOpenEvent.Builderbuilder()Creates a builder forSlackGroupOpenEvent.static SlackGroupOpenEventcopyOf(SlackGroupOpenEventIF instance) Creates an immutable copy of aSlackGroupOpenEventIFvalue.booleanThis instance is equal to all instances ofSlackGroupOpenEventthat have equal attribute values.getType()inthashCode()Computes a hash code from attributes:type,channelId,userId.toString()Prints the immutable valueSlackGroupOpenEventwith attribute values.final SlackGroupOpenEventwithChannelId(String value) Copy the current immutable object by setting a value for thechannelIdattribute.final SlackGroupOpenEventwithType(SlackEventType value) Copy the current immutable object by setting a value for thetypeattribute.final SlackGroupOpenEventwithUserId(String value) Copy the current immutable object by setting a value for theuserIdattribute.Methods inherited from interface com.hubspot.slack.client.models.events.conversation.SlackConversationEventCore
getTs
-
Method Details
-
getType
- Specified by:
getTypein interfaceSlackEvent- Returns:
- The value of the
typeattribute
-
getChannelId
- Specified by:
getChannelIdin interfaceSlackConversationEventCore- Returns:
- The value of the
channelIdattribute
-
getUserId
- Specified by:
getUserIdin interfaceSlackGroupOpenEventIF- Returns:
- The value of the
userIdattribute
-
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
-
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
-
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
-
equals
This instance is equal to all instances ofSlackGroupOpenEventthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:type,channelId,userId. -
toString
Prints the immutable valueSlackGroupOpenEventwith attribute values. -
copyOf
Creates an immutable copy of aSlackGroupOpenEventIFvalue. 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 SlackGroupOpenEvent instance
-
builder
Creates a builder forSlackGroupOpenEvent.SlackGroupOpenEvent.builder() .setType(com.hubspot.slack.client.models.events.SlackEventType) // requiredtype.setChannelId(String) // requiredchannelId.setUserId(String) // requireduserId.build();- Returns:
- A new SlackGroupOpenEvent builder
-