@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","AbstractChannelsHistoryResponse"}) @Immutable public final class ChannelsHistoryResponse extends AbstractChannelsHistoryResponse
AbstractChannelsHistoryResponse.
Use the builder to create immutable instances:
ChannelsHistoryResponse.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ChannelsHistoryResponse.Builder
Builds instances of type
ChannelsHistoryResponse. |
| Modifier and Type | Method and Description |
|---|---|
static ChannelsHistoryResponse.Builder |
builder()
Creates a builder for
ChannelsHistoryResponse. |
static ChannelsHistoryResponse |
copyOf(AbstractChannelsHistoryResponse instance)
Creates an immutable copy of a
AbstractChannelsHistoryResponse value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ChannelsHistoryResponse that have equal attribute values. |
List<LiteMessage> |
getMessages() |
Optional<String> |
getNewestTimestamp() |
Optional<String> |
getOldestTimestamp() |
PagingDirection |
getPagingDirection() |
Optional<ResponseMetadata> |
getResponseMetadata() |
int |
hashCode()
Computes a hash code from attributes:
hasMore, messages, ok, responseMetadata, inclusive, newestTimestamp, oldestTimestamp, pagingDirection. |
boolean |
hasMore() |
Optional<Boolean> |
isInclusive() |
boolean |
isOk() |
String |
toString()
Prints the immutable value
ChannelsHistoryResponse with attribute values. |
ChannelsHistoryResponse |
withHasMore(boolean hasMore)
Copy the current immutable object by setting a value for the
hasMore attribute. |
ChannelsHistoryResponse |
withInclusive(Boolean value)
Copy the current immutable object by setting a present value for the optional
inclusive attribute. |
ChannelsHistoryResponse |
withInclusive(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for the
inclusive attribute. |
ChannelsHistoryResponse |
withMessages(Iterable<? extends LiteMessage> elements)
Copy the current immutable object with elements that replace the content of
messages. |
ChannelsHistoryResponse |
withMessages(LiteMessage... elements)
Copy the current immutable object with elements that replace the content of
messages. |
ChannelsHistoryResponse |
withNewestTimestamp(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
newestTimestamp attribute. |
ChannelsHistoryResponse |
withNewestTimestamp(String value)
Copy the current immutable object by setting a present value for the optional
newestTimestamp attribute. |
ChannelsHistoryResponse |
withOk(boolean ok)
Copy the current immutable object by setting a value for the
ok attribute. |
ChannelsHistoryResponse |
withOldestTimestamp(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
oldestTimestamp attribute. |
ChannelsHistoryResponse |
withOldestTimestamp(String value)
Copy the current immutable object by setting a present value for the optional
oldestTimestamp attribute. |
ChannelsHistoryResponse |
withResponseMetadata(Optional<ResponseMetadata> optional)
Copy the current immutable object by setting an optional value for the
responseMetadata attribute. |
ChannelsHistoryResponse |
withResponseMetadata(ResponseMetadata value)
Copy the current immutable object by setting a present value for the optional
responseMetadata attribute. |
public boolean hasMore()
hasMore in class AbstractChannelsHistoryResponsehasMore attributepublic List<LiteMessage> getMessages()
getMessages in class AbstractChannelsHistoryResponsemessages attributepublic boolean isOk()
ok attributepublic Optional<ResponseMetadata> getResponseMetadata()
responseMetadata attributepublic Optional<String> getNewestTimestamp()
newestTimestamp attributepublic Optional<String> getOldestTimestamp()
oldestTimestamp attributepublic PagingDirection getPagingDirection()
pagingDirection attributepublic final ChannelsHistoryResponse withHasMore(boolean hasMore)
hasMore attribute.
A value equality check is used to prevent copying of the same value by returning this.hasMore - A new value for hasMorethis objectpublic final ChannelsHistoryResponse withMessages(LiteMessage... elements)
messages.elements - The elements to setthis objectpublic final ChannelsHistoryResponse withMessages(Iterable<? extends LiteMessage> elements)
messages.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of messages elements to setthis objectpublic final ChannelsHistoryResponse withOk(boolean ok)
ok attribute.
A value equality check is used to prevent copying of the same value by returning this.ok - A new value for okthis objectpublic final ChannelsHistoryResponse withResponseMetadata(@Nullable ResponseMetadata value)
responseMetadata attribute.value - The value for responseMetadata, null is accepted as java.util.Optional.empty()this objectpublic final ChannelsHistoryResponse withResponseMetadata(Optional<ResponseMetadata> optional)
responseMetadata attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.optional - A value for responseMetadatathis objectpublic final ChannelsHistoryResponse withInclusive(@Nullable Boolean value)
inclusive attribute.value - The value for inclusive, null is accepted as java.util.Optional.empty()this objectpublic final ChannelsHistoryResponse 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 ChannelsHistoryResponse withNewestTimestamp(@Nullable String value)
newestTimestamp attribute.value - The value for newestTimestamp, null is accepted as java.util.Optional.empty()this objectpublic final ChannelsHistoryResponse 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 ChannelsHistoryResponse withOldestTimestamp(@Nullable String value)
oldestTimestamp attribute.value - The value for oldestTimestamp, null is accepted as java.util.Optional.empty()this objectpublic final ChannelsHistoryResponse 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)
ChannelsHistoryResponse that have equal attribute values.public int hashCode()
hasMore, messages, ok, responseMetadata, inclusive, newestTimestamp, oldestTimestamp, pagingDirection.public String toString()
ChannelsHistoryResponse with attribute values.public static ChannelsHistoryResponse copyOf(AbstractChannelsHistoryResponse instance)
AbstractChannelsHistoryResponse 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 ChannelsHistoryResponse.Builder builder()
ChannelsHistoryResponse.Copyright © 2019. All rights reserved.