@NotThreadSafe public static final class SlackAppHomeOpenedEvent.Builder extends Object
SlackAppHomeOpenedEvent.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
| Modifier and Type | Method and Description |
|---|---|
SlackAppHomeOpenedEvent |
build()
Builds a new
SlackAppHomeOpenedEvent. |
SlackAppHomeOpenedEvent.Builder |
from(HasUser instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.methods.interceptor.HasUser instance. |
SlackAppHomeOpenedEvent.Builder |
from(SlackAppHomeOpenedEventIF instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.models.events.bot.SlackAppHomeOpenedEventIF instance. |
SlackAppHomeOpenedEvent.Builder |
from(SlackEvent instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.models.events.SlackEvent instance. |
SlackAppHomeOpenedEvent.Builder |
setChannelId(String channelId)
Initializes the value for the
channelId attribute. |
SlackAppHomeOpenedEvent.Builder |
setTab(Optional<String> tab)
Initializes the optional value
tab to tab. |
SlackAppHomeOpenedEvent.Builder |
setTab(String tab)
Initializes the optional value
tab to tab. |
SlackAppHomeOpenedEvent.Builder |
setType(SlackEventType type)
Initializes the value for the
type attribute. |
SlackAppHomeOpenedEvent.Builder |
setUserId(String userId)
Initializes the value for the
userId attribute. |
SlackAppHomeOpenedEvent.Builder |
setView(HomeTabViewResponse view)
Initializes the optional value
view to view. |
SlackAppHomeOpenedEvent.Builder |
setView(Optional<HomeTabViewResponse> view)
Initializes the optional value
view to view. |
public final SlackAppHomeOpenedEvent.Builder from(SlackAppHomeOpenedEventIF instance)
com.hubspot.slack.client.models.events.bot.SlackAppHomeOpenedEventIF instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final SlackAppHomeOpenedEvent.Builder from(SlackEvent instance)
com.hubspot.slack.client.models.events.SlackEvent instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final SlackAppHomeOpenedEvent.Builder from(HasUser instance)
com.hubspot.slack.client.methods.interceptor.HasUser instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final SlackAppHomeOpenedEvent.Builder setTab(@Nullable String tab)
tab to tab.tab - The value for tab, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final SlackAppHomeOpenedEvent.Builder setTab(Optional<String> tab)
tab to tab.tab - The value for tabthis builder for use in a chained invocationpublic final SlackAppHomeOpenedEvent.Builder setView(@Nullable HomeTabViewResponse view)
view to view.view - The value for view, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final SlackAppHomeOpenedEvent.Builder setView(Optional<HomeTabViewResponse> view)
view to view.view - The value for viewthis builder for use in a chained invocationpublic final SlackAppHomeOpenedEvent.Builder setUserId(String userId)
userId attribute.userId - The value for userIdthis builder for use in a chained invocationpublic final SlackAppHomeOpenedEvent.Builder setChannelId(String channelId)
channelId attribute.channelId - The value for channelIdthis builder for use in a chained invocationpublic final SlackAppHomeOpenedEvent.Builder setType(SlackEventType type)
type attribute.type - The value for typethis builder for use in a chained invocationpublic SlackAppHomeOpenedEvent build() throws com.hubspot.immutables.validation.InvalidImmutableStateException
SlackAppHomeOpenedEvent.com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missingCopyright © 2020. All rights reserved.