@NotThreadSafe public static final class SlackMemberJoinedChannelEvent.Builder extends Object
SlackMemberJoinedChannelEvent.
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 |
|---|---|
SlackMemberJoinedChannelEvent |
build()
Builds a new
SlackMemberJoinedChannelEvent. |
SlackMemberJoinedChannelEvent.Builder |
from(SlackEvent instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.models.events.SlackEvent instance. |
SlackMemberJoinedChannelEvent.Builder |
from(SlackMemberJoinedChannelEventIF instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.models.events.user.SlackMemberJoinedChannelEventIF instance. |
SlackMemberJoinedChannelEvent.Builder |
setChannelId(String channelId)
Initializes the value for the
channelId attribute. |
SlackMemberJoinedChannelEvent.Builder |
setChannelType(ChannelType channelType)
Initializes the value for the
channelType attribute. |
SlackMemberJoinedChannelEvent.Builder |
setInviterId(Optional<String> inviterId)
Initializes the optional value
inviterId to inviterId. |
SlackMemberJoinedChannelEvent.Builder |
setInviterId(String inviterId)
Initializes the optional value
inviterId to inviterId. |
SlackMemberJoinedChannelEvent.Builder |
setTeam(String team)
Initializes the value for the
team attribute. |
SlackMemberJoinedChannelEvent.Builder |
setType(SlackEventType type)
Initializes the value for the
type attribute. |
SlackMemberJoinedChannelEvent.Builder |
setUserId(String userId)
Initializes the value for the
userId attribute. |
public final SlackMemberJoinedChannelEvent.Builder from(SlackMemberJoinedChannelEventIF instance)
com.hubspot.slack.client.models.events.user.SlackMemberJoinedChannelEventIF instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final SlackMemberJoinedChannelEvent.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 SlackMemberJoinedChannelEvent.Builder setUserId(String userId)
userId attribute.userId - The value for userIdthis builder for use in a chained invocationpublic final SlackMemberJoinedChannelEvent.Builder setChannelId(String channelId)
channelId attribute.channelId - The value for channelIdthis builder for use in a chained invocationpublic final SlackMemberJoinedChannelEvent.Builder setChannelType(ChannelType channelType)
channelType attribute.channelType - The value for channelTypethis builder for use in a chained invocationpublic final SlackMemberJoinedChannelEvent.Builder setTeam(String team)
team attribute.team - The value for teamthis builder for use in a chained invocationpublic final SlackMemberJoinedChannelEvent.Builder setInviterId(@Nullable String inviterId)
inviterId to inviterId.inviterId - The value for inviterId, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final SlackMemberJoinedChannelEvent.Builder setInviterId(Optional<String> inviterId)
inviterId to inviterId.inviterId - The value for inviterIdthis builder for use in a chained invocationpublic final SlackMemberJoinedChannelEvent.Builder setType(SlackEventType type)
type attribute.type - The value for typethis builder for use in a chained invocationpublic SlackMemberJoinedChannelEvent build() throws com.hubspot.immutables.validation.InvalidImmutableStateException
SlackMemberJoinedChannelEvent.com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missingCopyright © 2019. All rights reserved.