@NotThreadSafe public static final class ChannelsInfoParams.Builder extends Object
ChannelsInfoParams.
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 |
|---|---|
ChannelsInfoParams |
build()
Builds a new
ChannelsInfoParams. |
ChannelsInfoParams.Builder |
from(AbstractChannelsInfoParams instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.methods.params.channels.AbstractChannelsInfoParams instance. |
ChannelsInfoParams.Builder |
from(HasChannel instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.methods.interceptor.HasChannel instance. |
ChannelsInfoParams.Builder |
setChannelId(String channelId)
Initializes the value for the
channelId attribute. |
ChannelsInfoParams.Builder |
setIncludeLocale(Boolean includeLocale)
Initializes the optional value
includeLocale to includeLocale. |
ChannelsInfoParams.Builder |
setIncludeLocale(Optional<Boolean> includeLocale)
Initializes the optional value
includeLocale to includeLocale. |
public final ChannelsInfoParams.Builder from(AbstractChannelsInfoParams instance)
com.hubspot.slack.client.methods.params.channels.AbstractChannelsInfoParams instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ChannelsInfoParams.Builder from(HasChannel instance)
com.hubspot.slack.client.methods.interceptor.HasChannel instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ChannelsInfoParams.Builder setChannelId(String channelId)
channelId attribute.channelId - The value for channelIdthis builder for use in a chained invocationpublic final ChannelsInfoParams.Builder setIncludeLocale(@Nullable Boolean includeLocale)
includeLocale to includeLocale.includeLocale - The value for includeLocale, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final ChannelsInfoParams.Builder setIncludeLocale(Optional<Boolean> includeLocale)
includeLocale to includeLocale.includeLocale - The value for includeLocalethis builder for use in a chained invocationpublic ChannelsInfoParams build() throws com.hubspot.immutables.validation.InvalidImmutableStateException
ChannelsInfoParams.com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missingCopyright © 2019. All rights reserved.