@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","AbstractConversationHistoryPagedParams"}) @Immutable public final class ConversationHistoryPagedParams extends AbstractConversationHistoryPagedParams
AbstractConversationHistoryPagedParams.
Use the builder to create immutable instances:
ConversationHistoryPagedParams.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ConversationHistoryPagedParams.Builder
Builds instances of type
ConversationHistoryPagedParams. |
| Modifier and Type | Method and Description |
|---|---|
static ConversationHistoryPagedParams.Builder |
builder()
Creates a builder for
ConversationHistoryPagedParams. |
static ConversationHistoryPagedParams |
copyOf(AbstractConversationHistoryPagedParams instance)
Creates an immutable copy of a
AbstractConversationHistoryPagedParams value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ConversationHistoryPagedParams that have equal attribute values. |
String |
getChannelId() |
Optional<String> |
getCursor() |
Optional<Integer> |
getLimit() |
Optional<String> |
getNewestTimestamp() |
Optional<String> |
getOldestTimestamp() |
PagingDirection |
getPagingDirection() |
int |
hashCode()
Computes a hash code from attributes:
channelId, cursor, limit, inclusive, newestTimestamp, oldestTimestamp, pagingDirection. |
Optional<Boolean> |
isInclusive() |
String |
toString()
Prints the immutable value
ConversationHistoryPagedParams with attribute values. |
ConversationHistoryPagedParams |
withChannelId(String channelId)
Copy the current immutable object by setting a value for the
channelId attribute. |
ConversationHistoryPagedParams |
withCursor(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
cursor attribute. |
ConversationHistoryPagedParams |
withCursor(String value)
Copy the current immutable object by setting a present value for the optional
cursor attribute. |
ConversationHistoryPagedParams |
withInclusive(Boolean value)
Copy the current immutable object by setting a present value for the optional
inclusive attribute. |
ConversationHistoryPagedParams |
withInclusive(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for the
inclusive attribute. |
ConversationHistoryPagedParams |
withLimit(Integer value)
Copy the current immutable object by setting a present value for the optional
limit attribute. |
ConversationHistoryPagedParams |
withLimit(Optional<Integer> optional)
Copy the current immutable object by setting an optional value for the
limit attribute. |
ConversationHistoryPagedParams |
withNewestTimestamp(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
newestTimestamp attribute. |
ConversationHistoryPagedParams |
withNewestTimestamp(String value)
Copy the current immutable object by setting a present value for the optional
newestTimestamp attribute. |
ConversationHistoryPagedParams |
withOldestTimestamp(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
oldestTimestamp attribute. |
ConversationHistoryPagedParams |
withOldestTimestamp(String value)
Copy the current immutable object by setting a present value for the optional
oldestTimestamp attribute. |
public String getChannelId()
getChannelId in interface HasChannelgetChannelId in class AbstractConversationHistoryPagedParamschannelId attributepublic Optional<String> getCursor()
getCursor in class AbstractConversationHistoryPagedParamscursor attributepublic Optional<Integer> getLimit()
getLimit in class AbstractConversationHistoryPagedParamslimit attributepublic Optional<String> getNewestTimestamp()
newestTimestamp attributepublic Optional<String> getOldestTimestamp()
oldestTimestamp attributepublic PagingDirection getPagingDirection()
pagingDirection attributepublic final ConversationHistoryPagedParams withChannelId(String channelId)
channelId attribute.
An equals check used to prevent copying of the same value by returning this.channelId - A new value for channelIdthis objectpublic final ConversationHistoryPagedParams withCursor(@Nullable String value)
cursor attribute.value - The value for cursor, null is accepted as java.util.Optional.empty()this objectpublic final ConversationHistoryPagedParams 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 ConversationHistoryPagedParams withLimit(@Nullable Integer value)
limit attribute.value - The value for limit, null is accepted as java.util.Optional.empty()this objectpublic final ConversationHistoryPagedParams 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 ConversationHistoryPagedParams withInclusive(@Nullable Boolean value)
inclusive attribute.value - The value for inclusive, null is accepted as java.util.Optional.empty()this objectpublic final ConversationHistoryPagedParams withInclusive(Optional<Boolean> optional)
inclusive attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for inclusivethis objectpublic final ConversationHistoryPagedParams withNewestTimestamp(@Nullable String value)
newestTimestamp attribute.value - The value for newestTimestamp, null is accepted as java.util.Optional.empty()this objectpublic final ConversationHistoryPagedParams withNewestTimestamp(Optional<String> optional)
newestTimestamp attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for newestTimestampthis objectpublic final ConversationHistoryPagedParams withOldestTimestamp(@Nullable String value)
oldestTimestamp attribute.value - The value for oldestTimestamp, null is accepted as java.util.Optional.empty()this objectpublic final ConversationHistoryPagedParams withOldestTimestamp(Optional<String> optional)
oldestTimestamp attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for oldestTimestampthis objectpublic boolean equals(@Nullable Object another)
ConversationHistoryPagedParams that have equal attribute values.public int hashCode()
channelId, cursor, limit, inclusive, newestTimestamp, oldestTimestamp, pagingDirection.public String toString()
ConversationHistoryPagedParams with attribute values.public static ConversationHistoryPagedParams copyOf(AbstractConversationHistoryPagedParams instance)
AbstractConversationHistoryPagedParams 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 ConversationHistoryPagedParams.Builder builder()
ConversationHistoryPagedParams.Copyright © 2019. All rights reserved.