@NotThreadSafe public static final class GroupsListParams.Builder extends Object
GroupsListParams.
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 |
|---|---|
GroupsListParams |
build()
Builds a new
GroupsListParams. |
GroupsListParams.Builder |
from(BaseChannelsFilter instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.methods.params.channels.BaseChannelsFilter instance. |
GroupsListParams.Builder |
from(GroupsListParamsIF instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.methods.params.group.GroupsListParamsIF instance. |
GroupsListParams.Builder |
setShouldExcludeArchived(Boolean shouldExcludeArchived)
Initializes the optional value
shouldExcludeArchived to shouldExcludeArchived. |
GroupsListParams.Builder |
setShouldExcludeArchived(Optional<Boolean> shouldExcludeArchived)
Initializes the optional value
shouldExcludeArchived to shouldExcludeArchived. |
GroupsListParams.Builder |
setShouldExcludeMembers(boolean shouldExcludeMembers)
Initializes the value for the
shouldExcludeMembers attribute. |
public final GroupsListParams.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 GroupsListParams.Builder from(GroupsListParamsIF instance)
com.hubspot.slack.client.methods.params.group.GroupsListParamsIF instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final GroupsListParams.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 GroupsListParams.Builder setShouldExcludeArchived(Optional<Boolean> shouldExcludeArchived)
shouldExcludeArchived to shouldExcludeArchived.shouldExcludeArchived - The value for shouldExcludeArchivedthis builder for use in a chained invocationpublic final GroupsListParams.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 GroupsListParams build() throws com.hubspot.immutables.validation.InvalidImmutableStateException
GroupsListParams.com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missingCopyright © 2019. All rights reserved.