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