@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","ConversationsUserParamsIF"}) @Immutable public final class ConversationsUserParams extends Object implements ConversationsUserParamsIF
ConversationsUserParamsIF.
Use the builder to create immutable instances:
ConversationsUserParams.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ConversationsUserParams.Builder
Builds instances of type
ConversationsUserParams. |
| Modifier and Type | Method and Description |
|---|---|
static ConversationsUserParams.Builder |
builder()
Creates a builder for
ConversationsUserParams. |
static ConversationsUserParams |
copyOf(ConversationsUserParamsIF instance)
Creates an immutable copy of a
ConversationsUserParamsIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ConversationsUserParams that have equal attribute values. |
Set<ConversationType> |
getConversationTypes() |
Optional<String> |
getCursor() |
Optional<Integer> |
getLimit() |
String |
getTypes() |
Optional<String> |
getUserId() |
int |
hashCode()
Computes a hash code from attributes:
userId, cursor, limit, shouldExcludeArchived, types, conversationTypes. |
Optional<Boolean> |
shouldExcludeArchived() |
String |
toString()
Prints the immutable value
ConversationsUserParams with attribute values. |
ConversationsUserParams |
withConversationTypes(ConversationType... elements)
Copy the current immutable object with elements that replace the content of
conversationTypes. |
ConversationsUserParams |
withConversationTypes(Iterable<ConversationType> elements)
Copy the current immutable object with elements that replace the content of
conversationTypes. |
ConversationsUserParams |
withCursor(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
cursor attribute. |
ConversationsUserParams |
withCursor(String value)
Copy the current immutable object by setting a present value for the optional
cursor attribute. |
ConversationsUserParams |
withLimit(Integer value)
Copy the current immutable object by setting a present value for the optional
limit attribute. |
ConversationsUserParams |
withLimit(Optional<Integer> optional)
Copy the current immutable object by setting an optional value for the
limit attribute. |
ConversationsUserParams |
withShouldExcludeArchived(Boolean value)
Copy the current immutable object by setting a present value for the optional
shouldExcludeArchived attribute. |
ConversationsUserParams |
withShouldExcludeArchived(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for the
shouldExcludeArchived attribute. |
ConversationsUserParams |
withUserId(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
userId attribute. |
ConversationsUserParams |
withUserId(String value)
Copy the current immutable object by setting a present value for the optional
userId attribute. |
public Optional<String> getUserId()
getUserId in interface ConversationsUserParamsIFuserId attributepublic Optional<String> getCursor()
getCursor in interface ConversationsUserParamsIFcursor attributepublic Optional<Integer> getLimit()
getLimit in interface ConversationsUserParamsIFlimit attributepublic Optional<Boolean> shouldExcludeArchived()
shouldExcludeArchived in interface BaseConversationsFiltershouldExcludeArchived attributepublic String getTypes()
getTypes in interface BaseConversationsFiltertypes attributepublic Set<ConversationType> getConversationTypes()
getConversationTypes in interface BaseConversationsFilterconversationTypes attributepublic final ConversationsUserParams withUserId(@Nullable String value)
userId attribute.value - The value for userId, null is accepted as java.util.Optional.empty()this objectpublic final ConversationsUserParams withUserId(Optional<String> optional)
userId attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for userIdthis objectpublic final ConversationsUserParams withCursor(@Nullable String value)
cursor attribute.value - The value for cursor, null is accepted as java.util.Optional.empty()this objectpublic final ConversationsUserParams withCursor(Optional<String> optional)
cursor attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for cursorthis objectpublic final ConversationsUserParams withLimit(@Nullable Integer value)
limit attribute.value - The value for limit, null is accepted as java.util.Optional.empty()this objectpublic final ConversationsUserParams withLimit(Optional<Integer> optional)
limit attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for limitthis objectpublic final ConversationsUserParams withShouldExcludeArchived(@Nullable Boolean value)
shouldExcludeArchived attribute.value - The value for shouldExcludeArchived, null is accepted as java.util.Optional.empty()this objectpublic final ConversationsUserParams withShouldExcludeArchived(Optional<Boolean> optional)
shouldExcludeArchived attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for shouldExcludeArchivedthis objectpublic final ConversationsUserParams withConversationTypes(ConversationType... elements)
conversationTypes.elements - The elements to setthis objectpublic final ConversationsUserParams withConversationTypes(Iterable<ConversationType> elements)
conversationTypes.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of conversationTypes elements to setthis objectpublic boolean equals(@Nullable Object another)
ConversationsUserParams that have equal attribute values.public int hashCode()
userId, cursor, limit, shouldExcludeArchived, types, conversationTypes.public String toString()
ConversationsUserParams with attribute values.public static ConversationsUserParams copyOf(ConversationsUserParamsIF instance)
ConversationsUserParamsIF value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static ConversationsUserParams.Builder builder()
ConversationsUserParams.Copyright © 2019. All rights reserved.