Class ConversationsListParams
java.lang.Object
com.hubspot.slack.client.methods.params.conversations.ConversationsListParams
- All Implemented Interfaces:
BaseConversationsFilter,ConversationsListParamsIF
@Generated(from="ConversationsListParamsIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ConversationsListParams
extends Object
implements ConversationsListParamsIF
Immutable implementation of
ConversationsListParamsIF.
Use the builder to create immutable instances:
ConversationsListParams.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeConversationsListParams. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forConversationsListParams.static ConversationsListParamscopyOf(ConversationsListParamsIF instance) Creates an immutable copy of aConversationsListParamsIFvalue.booleanThis instance is equal to all instances ofConversationsListParamsthat have equal attribute values.getLimit()getTypes()inthashCode()Computes a hash code from attributes:shouldExcludeArchived,types,conversationTypes,cursor,limit.toString()Prints the immutable valueConversationsListParamswith attribute values.final ConversationsListParamswithConversationTypes(ConversationType... elements) Copy the current immutable object with elements that replace the content ofconversationTypes.final ConversationsListParamswithConversationTypes(Iterable<ConversationType> elements) Copy the current immutable object with elements that replace the content ofconversationTypes.final ConversationsListParamswithCursor(String value) Copy the current immutable object by setting a present value for the optionalcursorattribute.final ConversationsListParamswithCursor(Optional<String> optional) Copy the current immutable object by setting an optional value for thecursorattribute.final ConversationsListParamsCopy the current immutable object by setting a present value for the optionallimitattribute.final ConversationsListParamsCopy the current immutable object by setting an optional value for thelimitattribute.final ConversationsListParamswithShouldExcludeArchived(Boolean value) Copy the current immutable object by setting a present value for the optionalshouldExcludeArchivedattribute.final ConversationsListParamswithShouldExcludeArchived(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
-
getCursor
- Specified by:
getCursorin interfaceConversationsListParamsIF- Returns:
- The value of the
cursorattribute
-
getLimit
- Specified by:
getLimitin interfaceConversationsListParamsIF- 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
-
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
-
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 ofConversationsListParamsthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:shouldExcludeArchived,types,conversationTypes,cursor,limit. -
toString
Prints the immutable valueConversationsListParamswith attribute values. -
copyOf
Creates an immutable copy of aConversationsListParamsIFvalue. 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 ConversationsListParams instance
-
builder
Creates a builder forConversationsListParams.ConversationsListParams.builder() .setShouldExcludeArchived(Optional<Boolean>) // optionalshouldExcludeArchived.addConversationTypes|addAllConversationTypes(com.hubspot.slack.client.models.conversations.ConversationType) //conversationTypeselements .setCursor(Optional<String>) // optionalcursor.setLimit(Optional<Integer>) // optionallimit.build();- Returns:
- A new ConversationsListParams builder
-