Class GroupsListParams
java.lang.Object
com.hubspot.slack.client.methods.params.group.GroupsListParams
- All Implemented Interfaces:
BaseChannelsFilter,GroupsListParamsIF
@Generated(from="GroupsListParamsIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class GroupsListParams
extends Object
implements GroupsListParamsIF
Immutable implementation of
GroupsListParamsIF.
Use the builder to create immutable instances:
GroupsListParams.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic GroupsListParams.Builderbuilder()Creates a builder forGroupsListParams.static GroupsListParamscopyOf(GroupsListParamsIF instance) Creates an immutable copy of aGroupsListParamsIFvalue.booleanThis instance is equal to all instances ofGroupsListParamsthat have equal attribute values.inthashCode()Computes a hash code from attributes:shouldExcludeArchived,shouldExcludeMembers.booleantoString()Prints the immutable valueGroupsListParamswith attribute values.final GroupsListParamswithShouldExcludeArchived(Boolean value) Copy the current immutable object by setting a present value for the optionalshouldExcludeArchivedattribute.final GroupsListParamswithShouldExcludeArchived(Optional<Boolean> optional) Copy the current immutable object by setting an optional value for theshouldExcludeArchivedattribute.final GroupsListParamswithShouldExcludeMembers(boolean value) Copy the current immutable object by setting a value for theshouldExcludeMembersattribute.
-
Method Details
-
shouldExcludeArchived
- Specified by:
shouldExcludeArchivedin interfaceBaseChannelsFilter- Returns:
- The value of the
shouldExcludeArchivedattribute
-
shouldExcludeMembers
public boolean shouldExcludeMembers()- Specified by:
shouldExcludeMembersin interfaceBaseChannelsFilter- Returns:
- The value of the
shouldExcludeMembersattribute
-
withShouldExcludeArchived
Copy the current immutable object by setting a present value for the optionalshouldExcludeArchivedattribute.- Parameters:
value- The value for shouldExcludeArchived,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withShouldExcludeArchived
Copy the current immutable object by setting an optional value for theshouldExcludeArchivedattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for shouldExcludeArchived- Returns:
- A modified copy or
thisif not changed
-
withShouldExcludeMembers
Copy the current immutable object by setting a value for theshouldExcludeMembersattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for shouldExcludeMembers- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofGroupsListParamsthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:shouldExcludeArchived,shouldExcludeMembers. -
toString
Prints the immutable valueGroupsListParamswith attribute values. -
copyOf
Creates an immutable copy of aGroupsListParamsIFvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable GroupsListParams instance
-
builder
Creates a builder forGroupsListParams.GroupsListParams.builder() .setShouldExcludeArchived(Optional<Boolean>) // optionalshouldExcludeArchived.setShouldExcludeMembers(boolean) // optionalshouldExcludeMembers.build();- Returns:
- A new GroupsListParams builder
-