Class SlackChannelUnarchiveEvent
java.lang.Object
com.hubspot.slack.client.models.events.channel.SlackChannelUnarchiveEvent
- All Implemented Interfaces:
SlackChannelUnarchiveEventIF,SlackConversationEventCore,SlackEvent
@Generated(from="SlackChannelUnarchiveEventIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class SlackChannelUnarchiveEvent
extends Object
implements SlackChannelUnarchiveEventIF
Immutable implementation of
SlackChannelUnarchiveEventIF.
Use the builder to create immutable instances:
SlackChannelUnarchiveEvent.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeSlackChannelUnarchiveEvent. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forSlackChannelUnarchiveEvent.static SlackChannelUnarchiveEventcopyOf(SlackChannelUnarchiveEventIF instance) Creates an immutable copy of aSlackChannelUnarchiveEventIFvalue.booleanThis instance is equal to all instances ofSlackChannelUnarchiveEventthat have equal attribute values.getType()inthashCode()Computes a hash code from attributes:type,channelId,unarchivedByUserId.toString()Prints the immutable valueSlackChannelUnarchiveEventwith attribute values.withChannelId(String value) Copy the current immutable object by setting a value for thechannelIdattribute.withType(SlackEventType value) Copy the current immutable object by setting a value for thetypeattribute.withUnarchivedByUserId(String value) Copy the current immutable object by setting a value for theunarchivedByUserIdattribute.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
-
getUnarchivedByUserId
- Specified by:
getUnarchivedByUserIdin interfaceSlackChannelUnarchiveEventIF- Returns:
- The value of the
unarchivedByUserIdattribute
-
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
-
withUnarchivedByUserId
Copy the current immutable object by setting a value for theunarchivedByUserIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for unarchivedByUserId- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofSlackChannelUnarchiveEventthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:type,channelId,unarchivedByUserId. -
toString
Prints the immutable valueSlackChannelUnarchiveEventwith attribute values. -
copyOf
Creates an immutable copy of aSlackChannelUnarchiveEventIFvalue. 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 SlackChannelUnarchiveEvent instance
-
builder
Creates a builder forSlackChannelUnarchiveEvent.SlackChannelUnarchiveEvent.builder() .setType(com.hubspot.slack.client.models.events.SlackEventType) // requiredtype.setChannelId(String) // requiredchannelId.setUnarchivedByUserId(String) // requiredunarchivedByUserId.build();- Returns:
- A new SlackChannelUnarchiveEvent builder
-