Class SlackChannelCreatedEvent
java.lang.Object
com.hubspot.slack.client.models.events.channel.SlackChannelCreatedEvent
- All Implemented Interfaces:
SlackChannelCreatedEventIF,SlackConversationEventCore,SlackConversationEventWithChannel,SlackEvent
@Generated(from="SlackChannelCreatedEventIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class SlackChannelCreatedEvent
extends Object
implements SlackChannelCreatedEventIF
Immutable implementation of
SlackChannelCreatedEventIF.
Use the builder to create immutable instances:
SlackChannelCreatedEvent.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeSlackChannelCreatedEvent. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forSlackChannelCreatedEvent.static SlackChannelCreatedEventcopyOf(SlackChannelCreatedEventIF instance) Creates an immutable copy of aSlackChannelCreatedEventIFvalue.booleanThis instance is equal to all instances ofSlackChannelCreatedEventthat have equal attribute values.getType()inthashCode()Computes a hash code from attributes:type,channel,channelId.toString()Prints the immutable valueSlackChannelCreatedEventwith attribute values.final SlackChannelCreatedEventwithChannel(SlackChannel value) Copy the current immutable object by setting a value for thechannelattribute.final SlackChannelCreatedEventwithType(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 ofSlackChannelCreatedEventthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:type,channel,channelId. -
toString
Prints the immutable valueSlackChannelCreatedEventwith attribute values. -
copyOf
Creates an immutable copy of aSlackChannelCreatedEventIFvalue. 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 SlackChannelCreatedEvent instance
-
builder
Creates a builder forSlackChannelCreatedEvent.SlackChannelCreatedEvent.builder() .setType(com.hubspot.slack.client.models.events.SlackEventType) // requiredtype.setChannel(com.hubspot.slack.client.models.SlackChannel) // requiredchannel.build();- Returns:
- A new SlackChannelCreatedEvent builder
-