Class SlackGroupDeletedEvent
java.lang.Object
com.hubspot.slack.client.models.events.group.SlackGroupDeletedEvent
- All Implemented Interfaces:
SlackConversationEventCore,SlackGroupDeletedEventIF,SlackEvent
@Generated(from="SlackGroupDeletedEventIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class SlackGroupDeletedEvent
extends Object
implements SlackGroupDeletedEventIF
Immutable implementation of
SlackGroupDeletedEventIF.
Use the builder to create immutable instances:
SlackGroupDeletedEvent.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeSlackGroupDeletedEvent. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forSlackGroupDeletedEvent.static SlackGroupDeletedEventcopyOf(SlackGroupDeletedEventIF instance) Creates an immutable copy of aSlackGroupDeletedEventIFvalue.booleanThis instance is equal to all instances ofSlackGroupDeletedEventthat have equal attribute values.getType()inthashCode()Computes a hash code from attributes:type,channelId.toString()Prints the immutable valueSlackGroupDeletedEventwith attribute values.final SlackGroupDeletedEventwithChannelId(String value) Copy the current immutable object by setting a value for thechannelIdattribute.final SlackGroupDeletedEventwithType(SlackEventType value) Copy the current immutable object by setting a value for thetypeattribute.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
-
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
-
equals
This instance is equal to all instances ofSlackGroupDeletedEventthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:type,channelId. -
toString
Prints the immutable valueSlackGroupDeletedEventwith attribute values. -
copyOf
Creates an immutable copy of aSlackGroupDeletedEventIFvalue. 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 SlackGroupDeletedEvent instance
-
builder
Creates a builder forSlackGroupDeletedEvent.SlackGroupDeletedEvent.builder() .setType(com.hubspot.slack.client.models.events.SlackEventType) // requiredtype.setChannelId(String) // requiredchannelId.build();- Returns:
- A new SlackGroupDeletedEvent builder
-