Class SlackChannelSharedEvent
java.lang.Object
com.hubspot.slack.client.models.events.channel.SlackChannelSharedEvent
- All Implemented Interfaces:
SlackChannelSharedEventIF,SlackConversationEventCore,SlackEvent
@Generated(from="SlackChannelSharedEventIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class SlackChannelSharedEvent
extends Object
implements SlackChannelSharedEventIF
Immutable implementation of
SlackChannelSharedEventIF.
Use the builder to create immutable instances:
SlackChannelSharedEvent.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeSlackChannelSharedEvent. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forSlackChannelSharedEvent.static SlackChannelSharedEventcopyOf(SlackChannelSharedEventIF instance) Creates an immutable copy of aSlackChannelSharedEventIFvalue.booleanThis instance is equal to all instances ofSlackChannelSharedEventthat have equal attribute values.getType()inthashCode()Computes a hash code from attributes:type,channelId,connectedTeamId.toString()Prints the immutable valueSlackChannelSharedEventwith attribute values.final SlackChannelSharedEventwithChannelId(String value) Copy the current immutable object by setting a value for thechannelIdattribute.final SlackChannelSharedEventwithConnectedTeamId(String value) Copy the current immutable object by setting a value for theconnectedTeamIdattribute.final SlackChannelSharedEventwithType(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
-
getConnectedTeamId
- Specified by:
getConnectedTeamIdin interfaceSlackChannelSharedEventIF- Returns:
- The value of the
connectedTeamIdattribute
-
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
-
withConnectedTeamId
Copy the current immutable object by setting a value for theconnectedTeamIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for connectedTeamId- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofSlackChannelSharedEventthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:type,channelId,connectedTeamId. -
toString
Prints the immutable valueSlackChannelSharedEventwith attribute values. -
builder
Creates a builder forSlackChannelSharedEvent.SlackChannelSharedEvent.builder() .setType(com.hubspot.slack.client.models.events.SlackEventType) // requiredtype.setChannelId(String) // requiredchannelId.setConnectedTeamId(String) // requiredconnectedTeamId.build();- Returns:
- A new SlackChannelSharedEvent builder
-