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