Class SlackAppHomeOpenedEvent.Builder
java.lang.Object
com.hubspot.slack.client.models.events.bot.SlackAppHomeOpenedEvent.Builder
- Enclosing class:
SlackAppHomeOpenedEvent
@Generated(from="SlackAppHomeOpenedEventIF",
generator="Immutables")
@NotThreadSafe
public static final class SlackAppHomeOpenedEvent.Builder
extends Object
Builds instances of type
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.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newSlackAppHomeOpenedEvent.Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.interceptor.HasUserinstance.from(SlackAppHomeOpenedEventIF instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.events.bot.SlackAppHomeOpenedEventIFinstance.from(SlackEvent instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.events.SlackEventinstance.setChannelId(String channelId) Initializes the value for thechannelIdattribute.Initializes the optional valuetabto tab.Initializes the optional valuetabto tab.setType(SlackEventType type) Initializes the value for thetypeattribute.Initializes the value for theuserIdattribute.setView(HomeTabViewResponse view) Initializes the optional valueviewto view.setView(Optional<? extends HomeTabViewResponse> view) Initializes the optional valueviewto view.
-
Method Details
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.events.SlackEventinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.events.bot.SlackAppHomeOpenedEventIFinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.interceptor.HasUserinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setType
Initializes the value for thetypeattribute.- Parameters:
type- The value for type- Returns:
thisbuilder for use in a chained invocation
-
setTab
Initializes the optional valuetabto tab.- Parameters:
tab- The value for tab,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setTab
Initializes the optional valuetabto tab.- Parameters:
tab- The value for tab- Returns:
thisbuilder for use in a chained invocation
-
setView
Initializes the optional valueviewto view.- Parameters:
view- The value for view,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setView
Initializes the optional valueviewto view.- Parameters:
view- The value for view- Returns:
thisbuilder for use in a chained invocation
-
setUserId
Initializes the value for theuserIdattribute.- Parameters:
userId- The value for userId- Returns:
thisbuilder for use in a chained invocation
-
setChannelId
Initializes the value for thechannelIdattribute.- Parameters:
channelId- The value for channelId- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newSlackAppHomeOpenedEvent.- Returns:
- An immutable instance of SlackAppHomeOpenedEvent
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-