@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","AbstractConversationsHistoryParams"}) @Immutable public final class ConversationsHistoryParams extends AbstractConversationsHistoryParams
AbstractConversationsHistoryParams.
Use the builder to create immutable instances:
ConversationsHistoryParams.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ConversationsHistoryParams.Builder
Builds instances of type
ConversationsHistoryParams. |
| Modifier and Type | Method and Description |
|---|---|
static ConversationsHistoryParams.Builder |
builder()
Creates a builder for
ConversationsHistoryParams. |
static ConversationsHistoryParams |
copyOf(AbstractConversationsHistoryParams instance)
Creates an immutable copy of a
AbstractConversationsHistoryParams value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ConversationsHistoryParams that have equal attribute values. |
String |
getChannelId() |
Optional<Integer> |
getLimit() |
Optional<String> |
getNewestTimestamp() |
Optional<String> |
getOldestTimestamp() |
PagingDirection |
getPagingDirection() |
int |
hashCode()
Computes a hash code from attributes:
channelId, limit, inclusive, newestTimestamp, oldestTimestamp, pagingDirection. |
Optional<Boolean> |
isInclusive() |
String |
toString()
Prints the immutable value
ConversationsHistoryParams with attribute values. |
ConversationsHistoryParams |
withChannelId(String channelId)
Copy the current immutable object by setting a value for the
channelId attribute. |
ConversationsHistoryParams |
withInclusive(Boolean value)
Copy the current immutable object by setting a present value for the optional
inclusive attribute. |
ConversationsHistoryParams |
withInclusive(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for the
inclusive attribute. |
ConversationsHistoryParams |
withLimit(Integer value)
Copy the current immutable object by setting a present value for the optional
limit attribute. |
ConversationsHistoryParams |
withLimit(Optional<Integer> optional)
Copy the current immutable object by setting an optional value for the
limit attribute. |
ConversationsHistoryParams |
withNewestTimestamp(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
newestTimestamp attribute. |
ConversationsHistoryParams |
withNewestTimestamp(String value)
Copy the current immutable object by setting a present value for the optional
newestTimestamp attribute. |
ConversationsHistoryParams |
withOldestTimestamp(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
oldestTimestamp attribute. |
ConversationsHistoryParams |
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 AbstractConversationsHistoryParamschannelId attributepublic Optional<Integer> getLimit()
getLimit in class AbstractConversationsHistoryParamslimit attributepublic Optional<String> getNewestTimestamp()
newestTimestamp attributepublic Optional<String> getOldestTimestamp()
oldestTimestamp attributepublic PagingDirection getPagingDirection()
pagingDirection attributepublic final ConversationsHistoryParams 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 ConversationsHistoryParams withLimit(@Nullable Integer value)
limit attribute.value - The value for limit, null is accepted as java.util.Optional.empty()this objectpublic final ConversationsHistoryParams 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 ConversationsHistoryParams withInclusive(@Nullable Boolean value)
inclusive attribute.value - The value for inclusive, null is accepted as java.util.Optional.empty()this objectpublic final ConversationsHistoryParams 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 ConversationsHistoryParams withNewestTimestamp(@Nullable String value)
newestTimestamp attribute.value - The value for newestTimestamp, null is accepted as java.util.Optional.empty()this objectpublic final ConversationsHistoryParams 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 ConversationsHistoryParams withOldestTimestamp(@Nullable String value)
oldestTimestamp attribute.value - The value for oldestTimestamp, null is accepted as java.util.Optional.empty()this objectpublic final ConversationsHistoryParams 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)
ConversationsHistoryParams that have equal attribute values.public int hashCode()
channelId, limit, inclusive, newestTimestamp, oldestTimestamp, pagingDirection.public String toString()
ConversationsHistoryParams with attribute values.public static ConversationsHistoryParams copyOf(AbstractConversationsHistoryParams instance)
AbstractConversationsHistoryParams 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 ConversationsHistoryParams.Builder builder()
ConversationsHistoryParams.Copyright © 2019. All rights reserved.