Class SlackGroupRenameEvent
java.lang.Object
com.hubspot.slack.client.models.events.group.SlackGroupRenameEvent
- All Implemented Interfaces:
SlackConversationEventCore,SlackConversationEventWithChannel,SlackGroupRenameEventIF,SlackEvent
@Generated(from="SlackGroupRenameEventIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class SlackGroupRenameEvent
extends Object
implements SlackGroupRenameEventIF
Immutable implementation of
SlackGroupRenameEventIF.
Use the builder to create immutable instances:
SlackGroupRenameEvent.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeSlackGroupRenameEvent. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forSlackGroupRenameEvent.static SlackGroupRenameEventcopyOf(SlackGroupRenameEventIF instance) Creates an immutable copy of aSlackGroupRenameEventIFvalue.booleanThis instance is equal to all instances ofSlackGroupRenameEventthat have equal attribute values.getType()inthashCode()Computes a hash code from attributes:type,channel,channelId.toString()Prints the immutable valueSlackGroupRenameEventwith attribute values.final SlackGroupRenameEventwithChannel(SlackChannel value) Copy the current immutable object by setting a value for thechannelattribute.final SlackGroupRenameEventwithType(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
-
getChannel
- Specified by:
getChannelin interfaceSlackConversationEventWithChannel- Returns:
- The value of the
channelattribute
-
getChannelId
- Specified by:
getChannelIdin interfaceSlackConversationEventCore- Specified by:
getChannelIdin interfaceSlackConversationEventWithChannel- Returns:
- The computed-at-construction 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
-
withChannel
Copy the current immutable object by setting a value for thechannelattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for channel- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofSlackGroupRenameEventthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:type,channel,channelId. -
toString
Prints the immutable valueSlackGroupRenameEventwith attribute values. -
copyOf
Creates an immutable copy of aSlackGroupRenameEventIFvalue. 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 SlackGroupRenameEvent instance
-
builder
Creates a builder forSlackGroupRenameEvent.SlackGroupRenameEvent.builder() .setType(com.hubspot.slack.client.models.events.SlackEventType) // requiredtype.setChannel(com.hubspot.slack.client.models.SlackChannel) // requiredchannel.build();- Returns:
- A new SlackGroupRenameEvent builder
-