@NotThreadSafe public static final class ChannelsListParams.Builder extends Object
ChannelsListParams.
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 |
|---|---|
ChannelsListParams |
build()
Builds a new
ChannelsListParams. |
ChannelsListParams.Builder |
from(BaseChannelsFilter instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.methods.params.channels.BaseChannelsFilter instance. |
ChannelsListParams.Builder |
from(ChannelsListParamsIF instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.methods.params.channels.ChannelsListParamsIF instance. |
ChannelsListParams.Builder |
setCursor(Optional<String> cursor)
Initializes the optional value
cursor to cursor. |
ChannelsListParams.Builder |
setCursor(String cursor)
Initializes the optional value
cursor to cursor. |
ChannelsListParams.Builder |
setLimit(Integer limit)
Initializes the optional value
limit to limit. |
ChannelsListParams.Builder |
setLimit(Optional<Integer> limit)
Initializes the optional value
limit to limit. |
ChannelsListParams.Builder |
setShouldExcludeArchived(Boolean shouldExcludeArchived)
Initializes the optional value
shouldExcludeArchived to shouldExcludeArchived. |
ChannelsListParams.Builder |
setShouldExcludeArchived(Optional<Boolean> shouldExcludeArchived)
Initializes the optional value
shouldExcludeArchived to shouldExcludeArchived. |
ChannelsListParams.Builder |
setShouldExcludeMembers(boolean shouldExcludeMembers)
Initializes the value for the
shouldExcludeMembers attribute. |
public final ChannelsListParams.Builder from(BaseChannelsFilter instance)
com.hubspot.slack.client.methods.params.channels.BaseChannelsFilter instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ChannelsListParams.Builder from(ChannelsListParamsIF instance)
com.hubspot.slack.client.methods.params.channels.ChannelsListParamsIF instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ChannelsListParams.Builder setCursor(@Nullable String cursor)
cursor to cursor.cursor - The value for cursor, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final ChannelsListParams.Builder setCursor(Optional<String> cursor)
cursor to cursor.cursor - The value for cursorthis builder for use in a chained invocationpublic final ChannelsListParams.Builder setLimit(@Nullable Integer limit)
limit to limit.limit - The value for limit, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final ChannelsListParams.Builder setLimit(Optional<Integer> limit)
limit to limit.limit - The value for limitthis builder for use in a chained invocationpublic final ChannelsListParams.Builder setShouldExcludeArchived(@Nullable Boolean shouldExcludeArchived)
shouldExcludeArchived to shouldExcludeArchived.shouldExcludeArchived - The value for shouldExcludeArchived, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final ChannelsListParams.Builder setShouldExcludeArchived(Optional<Boolean> shouldExcludeArchived)
shouldExcludeArchived to shouldExcludeArchived.shouldExcludeArchived - The value for shouldExcludeArchivedthis builder for use in a chained invocationpublic final ChannelsListParams.Builder setShouldExcludeMembers(boolean shouldExcludeMembers)
shouldExcludeMembers attribute.
If not set, this attribute will have a default value as returned by the initializer of shouldExcludeMembers.
shouldExcludeMembers - The value for shouldExcludeMembersthis builder for use in a chained invocationpublic ChannelsListParams build() throws com.hubspot.immutables.validation.InvalidImmutableStateException
ChannelsListParams.com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missingCopyright © 2019. All rights reserved.