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