Class ChannelsFilter
java.lang.Object
com.hubspot.slack.client.methods.params.channels.ChannelsFilter
- All Implemented Interfaces:
BaseChannelsFilter,ChannelsFilterIF
@Generated(from="ChannelsFilterIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ChannelsFilter
extends Object
implements ChannelsFilterIF
Immutable implementation of
ChannelsFilterIF.
Use the builder to create immutable instances:
ChannelsFilter.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ChannelsFilter.Builderbuilder()Creates a builder forChannelsFilter.static ChannelsFiltercopyOf(ChannelsFilterIF instance) Creates an immutable copy of aChannelsFilterIFvalue.booleanThis instance is equal to all instances ofChannelsFilterthat have equal attribute values.inthashCode()Computes a hash code from attributes:shouldExcludeArchived,shouldExcludeMembers.booleantoString()Prints the immutable valueChannelsFilterwith attribute values.final ChannelsFilterwithShouldExcludeArchived(Boolean value) Copy the current immutable object by setting a present value for the optionalshouldExcludeArchivedattribute.final ChannelsFilterwithShouldExcludeArchived(Optional<Boolean> optional) Copy the current immutable object by setting an optional value for theshouldExcludeArchivedattribute.final ChannelsFilterwithShouldExcludeMembers(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 ofChannelsFilterthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:shouldExcludeArchived,shouldExcludeMembers. -
toString
Prints the immutable valueChannelsFilterwith attribute values. -
copyOf
Creates an immutable copy of aChannelsFilterIFvalue. 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 ChannelsFilter instance
-
builder
Creates a builder forChannelsFilter.ChannelsFilter.builder() .setShouldExcludeArchived(Optional<Boolean>) // optionalshouldExcludeArchived.setShouldExcludeMembers(boolean) // optionalshouldExcludeMembers.build();- Returns:
- A new ChannelsFilter builder
-