Class ConversationsUserParams
java.lang.Object
com.hubspot.slack.client.methods.params.conversations.ConversationsUserParams
- All Implemented Interfaces:
BaseConversationsFilter,ConversationsUserParamsIF
@Generated(from="ConversationsUserParamsIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ConversationsUserParams
extends Object
implements ConversationsUserParamsIF
Immutable implementation of
ConversationsUserParamsIF.
Use the builder to create immutable instances:
ConversationsUserParams.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeConversationsUserParams. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forConversationsUserParams.static ConversationsUserParamscopyOf(ConversationsUserParamsIF instance) Creates an immutable copy of aConversationsUserParamsIFvalue.booleanThis instance is equal to all instances ofConversationsUserParamsthat have equal attribute values.getLimit()getTypes()inthashCode()Computes a hash code from attributes:shouldExcludeArchived,types,conversationTypes,userId,cursor,limit.toString()Prints the immutable valueConversationsUserParamswith attribute values.final ConversationsUserParamswithConversationTypes(ConversationType... elements) Copy the current immutable object with elements that replace the content ofconversationTypes.final ConversationsUserParamswithConversationTypes(Iterable<ConversationType> elements) Copy the current immutable object with elements that replace the content ofconversationTypes.final ConversationsUserParamswithCursor(String value) Copy the current immutable object by setting a present value for the optionalcursorattribute.final ConversationsUserParamswithCursor(Optional<String> optional) Copy the current immutable object by setting an optional value for thecursorattribute.final ConversationsUserParamsCopy the current immutable object by setting a present value for the optionallimitattribute.final ConversationsUserParamsCopy the current immutable object by setting an optional value for thelimitattribute.final ConversationsUserParamswithShouldExcludeArchived(Boolean value) Copy the current immutable object by setting a present value for the optionalshouldExcludeArchivedattribute.final ConversationsUserParamswithShouldExcludeArchived(Optional<Boolean> optional) Copy the current immutable object by setting an optional value for theshouldExcludeArchivedattribute.final ConversationsUserParamswithUserId(String value) Copy the current immutable object by setting a present value for the optionaluserIdattribute.final ConversationsUserParamswithUserId(Optional<String> optional) Copy the current immutable object by setting an optional value for theuserIdattribute.
-
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
-
getUserId
- Specified by:
getUserIdin interfaceConversationsUserParamsIF- Returns:
- The value of the
userIdattribute
-
getCursor
- Specified by:
getCursorin interfaceConversationsUserParamsIF- Returns:
- The value of the
cursorattribute
-
getLimit
- Specified by:
getLimitin interfaceConversationsUserParamsIF- 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
-
withUserId
Copy the current immutable object by setting a present value for the optionaluserIdattribute.- Parameters:
value- The value for userId,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withUserId
Copy the current immutable object by setting an optional value for theuserIdattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for userId- 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 ofConversationsUserParamsthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:shouldExcludeArchived,types,conversationTypes,userId,cursor,limit. -
toString
Prints the immutable valueConversationsUserParamswith attribute values. -
copyOf
Creates an immutable copy of aConversationsUserParamsIFvalue. 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 ConversationsUserParams instance
-
builder
Creates a builder forConversationsUserParams.ConversationsUserParams.builder() .setShouldExcludeArchived(Optional<Boolean>) // optionalshouldExcludeArchived.addConversationTypes|addAllConversationTypes(com.hubspot.slack.client.models.conversations.ConversationType) //conversationTypeselements .setUserId(Optional<String>) // optionaluserId.setCursor(Optional<String>) // optionalcursor.setLimit(Optional<Integer>) // optionallimit.build();- Returns:
- A new ConversationsUserParams builder
-