Class ConversationsFilter
java.lang.Object
com.hubspot.slack.client.methods.params.conversations.ConversationsFilter
- All Implemented Interfaces:
BaseConversationsFilter,ConversationsFilterIF
@Generated(from="ConversationsFilterIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ConversationsFilter
extends Object
implements ConversationsFilterIF
Immutable implementation of
ConversationsFilterIF.
Use the builder to create immutable instances:
ConversationsFilter.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeConversationsFilter. -
Method Summary
Modifier and TypeMethodDescriptionstatic ConversationsFilter.Builderbuilder()Creates a builder forConversationsFilter.static ConversationsFiltercopyOf(ConversationsFilterIF instance) Creates an immutable copy of aConversationsFilterIFvalue.booleanThis instance is equal to all instances ofConversationsFilterthat have equal attribute values.getTypes()inthashCode()Computes a hash code from attributes:shouldExcludeArchived,types,conversationTypes.toString()Prints the immutable valueConversationsFilterwith attribute values.final ConversationsFilterwithConversationTypes(ConversationType... elements) Copy the current immutable object with elements that replace the content ofconversationTypes.final ConversationsFilterwithConversationTypes(Iterable<ConversationType> elements) Copy the current immutable object with elements that replace the content ofconversationTypes.final ConversationsFilterwithShouldExcludeArchived(Boolean value) Copy the current immutable object by setting a present value for the optionalshouldExcludeArchivedattribute.final ConversationsFilterwithShouldExcludeArchived(Optional<Boolean> optional) Copy the current immutable object by setting an optional value for theshouldExcludeArchivedattribute.
-
Method Details
-
shouldExcludeArchived
- Specified by:
shouldExcludeArchivedin interfaceBaseConversationsFilter- Returns:
- The value of the
shouldExcludeArchivedattribute
-
getTypes
- Specified by:
getTypesin interfaceBaseConversationsFilter- Returns:
- The computed-at-construction value of the
typesattribute
-
getConversationTypes
- Specified by:
getConversationTypesin interfaceBaseConversationsFilter- Returns:
- The value of the
conversationTypesattribute
-
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
-
withConversationTypes
Copy the current immutable object with elements that replace the content ofconversationTypes.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withConversationTypes
Copy the current immutable object with elements that replace the content ofconversationTypes. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of conversationTypes elements to set- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofConversationsFilterthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:shouldExcludeArchived,types,conversationTypes. -
toString
Prints the immutable valueConversationsFilterwith attribute values. -
copyOf
Creates an immutable copy of aConversationsFilterIFvalue. 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 ConversationsFilter instance
-
builder
Creates a builder forConversationsFilter.ConversationsFilter.builder() .setShouldExcludeArchived(Optional<Boolean>) // optionalshouldExcludeArchived.addConversationTypes|addAllConversationTypes(com.hubspot.slack.client.models.conversations.ConversationType) //conversationTypeselements .build();- Returns:
- A new ConversationsFilter builder
-