Class GroupsListParams.Builder
java.lang.Object
com.hubspot.slack.client.methods.params.group.GroupsListParams.Builder
- Enclosing class:
GroupsListParams
@Generated(from="GroupsListParamsIF",
generator="Immutables")
@NotThreadSafe
public static final class GroupsListParams.Builder
extends Object
Builds instances of type
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.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newGroupsListParams.final GroupsListParams.Builderfrom(BaseChannelsFilter instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.params.channels.BaseChannelsFilterinstance.final GroupsListParams.Builderfrom(GroupsListParamsIF instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.params.group.GroupsListParamsIFinstance.final GroupsListParams.BuildersetShouldExcludeArchived(Boolean shouldExcludeArchived) Initializes the optional valueshouldExcludeArchivedto shouldExcludeArchived.final GroupsListParams.BuildersetShouldExcludeArchived(Optional<Boolean> shouldExcludeArchived) Initializes the optional valueshouldExcludeArchivedto shouldExcludeArchived.final GroupsListParams.BuildersetShouldExcludeMembers(boolean shouldExcludeMembers) Initializes the value for theshouldExcludeMembersattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.params.channels.BaseChannelsFilterinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.params.group.GroupsListParamsIFinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setShouldExcludeArchived
public final GroupsListParams.Builder setShouldExcludeArchived(@Nullable Boolean shouldExcludeArchived) Initializes the optional valueshouldExcludeArchivedto shouldExcludeArchived.- Parameters:
shouldExcludeArchived- The value for shouldExcludeArchived,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setShouldExcludeArchived
public final GroupsListParams.Builder setShouldExcludeArchived(Optional<Boolean> shouldExcludeArchived) Initializes the optional valueshouldExcludeArchivedto shouldExcludeArchived.- Parameters:
shouldExcludeArchived- The value for shouldExcludeArchived- Returns:
thisbuilder for use in a chained invocation
-
setShouldExcludeMembers
Initializes the value for theshouldExcludeMembersattribute.If not set, this attribute will have a default value as returned by the initializer of
shouldExcludeMembers.- Parameters:
shouldExcludeMembers- The value for shouldExcludeMembers- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newGroupsListParams.- Returns:
- An immutable instance of GroupsListParams
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-