@NotThreadSafe public static final class ChannelsKickParams.Builder extends Object
ChannelsKickParams.
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 |
|---|---|
ChannelsKickParams |
build()
Builds a new
ChannelsKickParams. |
ChannelsKickParams.Builder |
from(ChannelsKickParamsIF instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.methods.params.channels.ChannelsKickParamsIF instance. |
ChannelsKickParams.Builder |
from(HasChannel instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.methods.interceptor.HasChannel instance. |
ChannelsKickParams.Builder |
setChannelId(String channelId)
Initializes the value for the
channelId attribute. |
ChannelsKickParams.Builder |
setUserId(String userId)
Initializes the value for the
userId attribute. |
public final ChannelsKickParams.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 ChannelsKickParams.Builder from(ChannelsKickParamsIF instance)
com.hubspot.slack.client.methods.params.channels.ChannelsKickParamsIF instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ChannelsKickParams.Builder setChannelId(String channelId)
channelId attribute.channelId - The value for channelIdthis builder for use in a chained invocationpublic final ChannelsKickParams.Builder setUserId(String userId)
userId attribute.userId - The value for userIdthis builder for use in a chained invocationpublic ChannelsKickParams build() throws com.hubspot.immutables.validation.InvalidImmutableStateException
ChannelsKickParams.com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missingCopyright © 2019. All rights reserved.