Class ChannelsListParams
java.lang.Object
com.hubspot.slack.client.methods.params.channels.ChannelsListParams
- All Implemented Interfaces:
BaseChannelsFilter,ChannelsListParamsIF
@Generated(from="ChannelsListParamsIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ChannelsListParams
extends Object
implements ChannelsListParamsIF
Immutable implementation of
ChannelsListParamsIF.
Use the builder to create immutable instances:
ChannelsListParams.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ChannelsListParams.Builderbuilder()Creates a builder forChannelsListParams.static ChannelsListParamscopyOf(ChannelsListParamsIF instance) Creates an immutable copy of aChannelsListParamsIFvalue.booleanThis instance is equal to all instances ofChannelsListParamsthat have equal attribute values.getLimit()inthashCode()Computes a hash code from attributes:shouldExcludeArchived,shouldExcludeMembers,cursor,limit.booleantoString()Prints the immutable valueChannelsListParamswith attribute values.final ChannelsListParamswithCursor(String value) Copy the current immutable object by setting a present value for the optionalcursorattribute.final ChannelsListParamswithCursor(Optional<String> optional) Copy the current immutable object by setting an optional value for thecursorattribute.final ChannelsListParamsCopy the current immutable object by setting a present value for the optionallimitattribute.final ChannelsListParamsCopy the current immutable object by setting an optional value for thelimitattribute.final ChannelsListParamswithShouldExcludeArchived(Boolean value) Copy the current immutable object by setting a present value for the optionalshouldExcludeArchivedattribute.final ChannelsListParamswithShouldExcludeArchived(Optional<Boolean> optional) Copy the current immutable object by setting an optional value for theshouldExcludeArchivedattribute.final ChannelsListParamswithShouldExcludeMembers(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
-
getCursor
- Specified by:
getCursorin interfaceChannelsListParamsIF- Returns:
- The value of the
cursorattribute
-
getLimit
- Specified by:
getLimitin interfaceChannelsListParamsIF- Returns:
- The value of the
limitattribute
-
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
-
withCursor
Copy the current immutable object by setting a present value for the optionalcursorattribute.- Parameters:
value- The value for cursor,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withCursor
Copy the current immutable object by setting an optional value for thecursorattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for cursor- Returns:
- A modified copy or
thisif not changed
-
withLimit
Copy the current immutable object by setting a present value for the optionallimitattribute.- Parameters:
value- The value for limit,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withLimit
Copy the current immutable object by setting an optional value for thelimitattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for limit- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofChannelsListParamsthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:shouldExcludeArchived,shouldExcludeMembers,cursor,limit. -
toString
Prints the immutable valueChannelsListParamswith attribute values. -
copyOf
Creates an immutable copy of aChannelsListParamsIFvalue. 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 ChannelsListParams instance
-
builder
Creates a builder forChannelsListParams.ChannelsListParams.builder() .setShouldExcludeArchived(Optional<Boolean>) // optionalshouldExcludeArchived.setShouldExcludeMembers(boolean) // optionalshouldExcludeMembers.setCursor(Optional<String>) // optionalcursor.setLimit(Optional<Integer>) // optionallimit.build();- Returns:
- A new ChannelsListParams builder
-