Class SlackAppHomeOpenedEvent
java.lang.Object
com.hubspot.slack.client.models.events.bot.SlackAppHomeOpenedEvent
- All Implemented Interfaces:
HasUser,SlackAppHomeOpenedEventIF,SlackEvent
@Generated(from="SlackAppHomeOpenedEventIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class SlackAppHomeOpenedEvent
extends Object
implements SlackAppHomeOpenedEventIF
Immutable implementation of
SlackAppHomeOpenedEventIF.
Use the builder to create immutable instances:
SlackAppHomeOpenedEvent.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeSlackAppHomeOpenedEvent. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forSlackAppHomeOpenedEvent.static SlackAppHomeOpenedEventcopyOf(SlackAppHomeOpenedEventIF instance) Creates an immutable copy of aSlackAppHomeOpenedEventIFvalue.booleanThis instance is equal to all instances ofSlackAppHomeOpenedEventthat have equal attribute values.getTab()getType()getView()inthashCode()Computes a hash code from attributes:type,tab,view,userId,channelId.toString()Prints the immutable valueSlackAppHomeOpenedEventwith attribute values.final SlackAppHomeOpenedEventwithChannelId(String value) Copy the current immutable object by setting a value for thechannelIdattribute.final SlackAppHomeOpenedEventCopy the current immutable object by setting a present value for the optionaltabattribute.final SlackAppHomeOpenedEventCopy the current immutable object by setting an optional value for thetabattribute.final SlackAppHomeOpenedEventwithType(SlackEventType value) Copy the current immutable object by setting a value for thetypeattribute.final SlackAppHomeOpenedEventwithUserId(String value) Copy the current immutable object by setting a value for theuserIdattribute.final SlackAppHomeOpenedEventwithView(HomeTabViewResponse value) Copy the current immutable object by setting a present value for the optionalviewattribute.final SlackAppHomeOpenedEventwithView(Optional<? extends HomeTabViewResponse> optional) Copy the current immutable object by setting an optional value for theviewattribute.Methods inherited from interface com.hubspot.slack.client.models.events.bot.SlackAppHomeOpenedEventIF
getTs
-
Method Details
-
getType
- Specified by:
getTypein interfaceSlackEvent- Returns:
- The value of the
typeattribute
-
getTab
- Specified by:
getTabin interfaceSlackAppHomeOpenedEventIF- Returns:
- The value of the
tabattribute
-
getView
- Specified by:
getViewin interfaceSlackAppHomeOpenedEventIF- Returns:
- The value of the
viewattribute
-
getUserId
- Specified by:
getUserIdin interfaceHasUser- Specified by:
getUserIdin interfaceSlackAppHomeOpenedEventIF- Returns:
- The value of the
userIdattribute
-
getChannelId
- Specified by:
getChannelIdin interfaceSlackAppHomeOpenedEventIF- 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
-
withTab
Copy the current immutable object by setting a present value for the optionaltabattribute.- Parameters:
value- The value for tab,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withTab
Copy the current immutable object by setting an optional value for thetabattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for tab- Returns:
- A modified copy or
thisif not changed
-
withView
Copy the current immutable object by setting a present value for the optionalviewattribute.- Parameters:
value- The value for view,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withView
Copy the current immutable object by setting an optional value for theviewattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for view- Returns:
- A modified copy or
thisif not changed
-
withUserId
Copy the current immutable object by setting a value for theuserIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for userId- 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 ofSlackAppHomeOpenedEventthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:type,tab,view,userId,channelId. -
toString
Prints the immutable valueSlackAppHomeOpenedEventwith attribute values. -
copyOf
Creates an immutable copy of aSlackAppHomeOpenedEventIFvalue. 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 SlackAppHomeOpenedEvent instance
-
builder
Creates a builder forSlackAppHomeOpenedEvent.SlackAppHomeOpenedEvent.builder() .setType(com.hubspot.slack.client.models.events.SlackEventType) // requiredtype.setTab(Optional<String>) // optionaltab.setView(Optional<com.hubspot.slack.client.models.response.views.HomeTabViewResponse>) // optionalview.setUserId(String) // requireduserId.setChannelId(String) // requiredchannelId.build();- Returns:
- A new SlackAppHomeOpenedEvent builder
-