Class SlackChannelArchiveEvent
java.lang.Object
com.hubspot.slack.client.models.events.channel.SlackChannelArchiveEvent
- All Implemented Interfaces:
SlackChannelArchiveEventIF,SlackConversationEventCore,SlackEvent
@Generated(from="SlackChannelArchiveEventIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class SlackChannelArchiveEvent
extends Object
implements SlackChannelArchiveEventIF
Immutable implementation of
SlackChannelArchiveEventIF.
Use the builder to create immutable instances:
SlackChannelArchiveEvent.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeSlackChannelArchiveEvent. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forSlackChannelArchiveEvent.static SlackChannelArchiveEventcopyOf(SlackChannelArchiveEventIF instance) Creates an immutable copy of aSlackChannelArchiveEventIFvalue.booleanThis instance is equal to all instances ofSlackChannelArchiveEventthat have equal attribute values.getType()inthashCode()Computes a hash code from attributes:type,channelId,userId.toString()Prints the immutable valueSlackChannelArchiveEventwith attribute values.final SlackChannelArchiveEventwithChannelId(String value) Copy the current immutable object by setting a value for thechannelIdattribute.final SlackChannelArchiveEventwithType(SlackEventType value) Copy the current immutable object by setting a value for thetypeattribute.final SlackChannelArchiveEventwithUserId(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 interfaceSlackChannelArchiveEventIF- 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 ofSlackChannelArchiveEventthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:type,channelId,userId. -
toString
Prints the immutable valueSlackChannelArchiveEventwith attribute values. -
copyOf
Creates an immutable copy of aSlackChannelArchiveEventIFvalue. 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 SlackChannelArchiveEvent instance
-
builder
Creates a builder forSlackChannelArchiveEvent.SlackChannelArchiveEvent.builder() .setType(com.hubspot.slack.client.models.events.SlackEventType) // requiredtype.setChannelId(String) // requiredchannelId.setUserId(String) // requireduserId.build();- Returns:
- A new SlackChannelArchiveEvent builder
-