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