@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","ConversationsListParamsIF"}) @Immutable public final class ConversationsListParams extends Object implements ConversationsListParamsIF
ConversationsListParamsIF.
Use the builder to create immutable instances:
ConversationsListParams.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ConversationsListParams.Builder
Builds instances of type
ConversationsListParams. |
| Modifier and Type | Method and Description |
|---|---|
static ConversationsListParams.Builder |
builder()
Creates a builder for
ConversationsListParams. |
static ConversationsListParams |
copyOf(ConversationsListParamsIF instance)
Creates an immutable copy of a
ConversationsListParamsIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ConversationsListParams that have equal attribute values. |
Set<ConversationType> |
getConversationTypes() |
Optional<String> |
getCursor() |
Optional<Integer> |
getLimit() |
String |
getTypes() |
int |
hashCode()
Computes a hash code from attributes:
cursor, limit, shouldExcludeArchived, types, conversationTypes. |
Optional<Boolean> |
shouldExcludeArchived() |
String |
toString()
Prints the immutable value
ConversationsListParams with attribute values. |
ConversationsListParams |
withConversationTypes(ConversationType... elements)
Copy the current immutable object with elements that replace the content of
conversationTypes. |
ConversationsListParams |
withConversationTypes(Iterable<ConversationType> elements)
Copy the current immutable object with elements that replace the content of
conversationTypes. |
ConversationsListParams |
withCursor(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
cursor attribute. |
ConversationsListParams |
withCursor(String value)
Copy the current immutable object by setting a present value for the optional
cursor attribute. |
ConversationsListParams |
withLimit(Integer value)
Copy the current immutable object by setting a present value for the optional
limit attribute. |
ConversationsListParams |
withLimit(Optional<Integer> optional)
Copy the current immutable object by setting an optional value for the
limit attribute. |
ConversationsListParams |
withShouldExcludeArchived(Boolean value)
Copy the current immutable object by setting a present value for the optional
shouldExcludeArchived attribute. |
ConversationsListParams |
withShouldExcludeArchived(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for the
shouldExcludeArchived attribute. |
public Optional<String> getCursor()
getCursor in interface ConversationsListParamsIFcursor attributepublic Optional<Integer> getLimit()
getLimit in interface ConversationsListParamsIFlimit 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 ConversationsListParams withCursor(@Nullable String value)
cursor attribute.value - The value for cursor, null is accepted as java.util.Optional.empty()this objectpublic final ConversationsListParams 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 ConversationsListParams withLimit(@Nullable Integer value)
limit attribute.value - The value for limit, null is accepted as java.util.Optional.empty()this objectpublic final ConversationsListParams 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 ConversationsListParams withShouldExcludeArchived(@Nullable Boolean value)
shouldExcludeArchived attribute.value - The value for shouldExcludeArchived, null is accepted as java.util.Optional.empty()this objectpublic final ConversationsListParams 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 ConversationsListParams withConversationTypes(ConversationType... elements)
conversationTypes.elements - The elements to setthis objectpublic final ConversationsListParams 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)
ConversationsListParams that have equal attribute values.public int hashCode()
cursor, limit, shouldExcludeArchived, types, conversationTypes.public String toString()
ConversationsListParams with attribute values.public static ConversationsListParams copyOf(ConversationsListParamsIF instance)
ConversationsListParamsIF 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 ConversationsListParams.Builder builder()
ConversationsListParams.Copyright © 2019. All rights reserved.