@NotThreadSafe public static final class SlackChannelUnarchiveEvent.Builder extends Object
SlackChannelUnarchiveEvent.
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 |
|---|---|
SlackChannelUnarchiveEvent |
build()
Builds a new
SlackChannelUnarchiveEvent. |
SlackChannelUnarchiveEvent.Builder |
from(SlackChannelUnarchiveEventIF instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.models.events.channel.SlackChannelUnarchiveEventIF instance. |
SlackChannelUnarchiveEvent.Builder |
from(SlackEvent instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.models.events.SlackEvent instance. |
SlackChannelUnarchiveEvent.Builder |
setChannelId(String channelId)
Initializes the value for the
channelId attribute. |
SlackChannelUnarchiveEvent.Builder |
setType(SlackEventType type)
Initializes the value for the
type attribute. |
SlackChannelUnarchiveEvent.Builder |
setUnarchivedByUserId(String unarchivedByUserId)
Initializes the value for the
unarchivedByUserId attribute. |
public final SlackChannelUnarchiveEvent.Builder from(SlackChannelUnarchiveEventIF instance)
com.hubspot.slack.client.models.events.channel.SlackChannelUnarchiveEventIF instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final SlackChannelUnarchiveEvent.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 SlackChannelUnarchiveEvent.Builder setChannelId(String channelId)
channelId attribute.channelId - The value for channelIdthis builder for use in a chained invocationpublic final SlackChannelUnarchiveEvent.Builder setUnarchivedByUserId(String unarchivedByUserId)
unarchivedByUserId attribute.unarchivedByUserId - The value for unarchivedByUserIdthis builder for use in a chained invocationpublic final SlackChannelUnarchiveEvent.Builder setType(SlackEventType type)
type attribute.type - The value for typethis builder for use in a chained invocationpublic SlackChannelUnarchiveEvent build() throws com.hubspot.immutables.validation.InvalidImmutableStateException
SlackChannelUnarchiveEvent.com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missingCopyright © 2019. All rights reserved.