@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","ConversationsHistoryResponseIF"}) @Immutable public final class ConversationsHistoryResponse extends Object implements ConversationsHistoryResponseIF
ConversationsHistoryResponseIF.
Use the builder to create immutable instances:
ConversationsHistoryResponse.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ConversationsHistoryResponse.Builder
Builds instances of type
ConversationsHistoryResponse. |
| Modifier and Type | Method and Description |
|---|---|
static ConversationsHistoryResponse.Builder |
builder()
Creates a builder for
ConversationsHistoryResponse. |
static ConversationsHistoryResponse |
copyOf(ConversationsHistoryResponseIF instance)
Creates an immutable copy of a
ConversationsHistoryResponseIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ConversationsHistoryResponse that have equal attribute values. |
List<LiteMessage> |
getMessages() |
int |
getPinCount() |
Optional<ResponseMetadata> |
getResponseMetadata() |
int |
hashCode()
Computes a hash code from attributes:
messages, hasMore, pinCount, ok, responseMetadata. |
boolean |
hasMore() |
boolean |
isOk() |
String |
toString()
Prints the immutable value
ConversationsHistoryResponse with attribute values. |
ConversationsHistoryResponse |
withHasMore(boolean hasMore)
Copy the current immutable object by setting a value for the
hasMore attribute. |
ConversationsHistoryResponse |
withMessages(Iterable<? extends LiteMessage> elements)
Copy the current immutable object with elements that replace the content of
messages. |
ConversationsHistoryResponse |
withMessages(LiteMessage... elements)
Copy the current immutable object with elements that replace the content of
messages. |
ConversationsHistoryResponse |
withOk(boolean ok)
Copy the current immutable object by setting a value for the
ok attribute. |
ConversationsHistoryResponse |
withPinCount(int pinCount)
Copy the current immutable object by setting a value for the
pinCount attribute. |
ConversationsHistoryResponse |
withResponseMetadata(Optional<ResponseMetadata> optional)
Copy the current immutable object by setting an optional value for the
responseMetadata attribute. |
ConversationsHistoryResponse |
withResponseMetadata(ResponseMetadata value)
Copy the current immutable object by setting a present value for the optional
responseMetadata attribute. |
public List<LiteMessage> getMessages()
getMessages in interface ConversationsHistoryResponseIFmessages attributepublic boolean hasMore()
hasMore in interface ConversationsHistoryResponseIFhasMore attributepublic int getPinCount()
getPinCount in interface ConversationsHistoryResponseIFpinCount attributepublic boolean isOk()
isOk in interface SlackResponseok attributepublic Optional<ResponseMetadata> getResponseMetadata()
getResponseMetadata in interface SlackResponseresponseMetadata attributepublic final ConversationsHistoryResponse withMessages(LiteMessage... elements)
messages.elements - The elements to setthis objectpublic final ConversationsHistoryResponse 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 ConversationsHistoryResponse 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 ConversationsHistoryResponse withPinCount(int pinCount)
pinCount attribute.
A value equality check is used to prevent copying of the same value by returning this.pinCount - A new value for pinCountthis objectpublic final ConversationsHistoryResponse 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 ConversationsHistoryResponse withResponseMetadata(@Nullable ResponseMetadata value)
responseMetadata attribute.value - The value for responseMetadata, null is accepted as java.util.Optional.empty()this objectpublic final ConversationsHistoryResponse 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 boolean equals(@Nullable Object another)
ConversationsHistoryResponse that have equal attribute values.public int hashCode()
messages, hasMore, pinCount, ok, responseMetadata.public String toString()
ConversationsHistoryResponse with attribute values.public static ConversationsHistoryResponse copyOf(ConversationsHistoryResponseIF instance)
ConversationsHistoryResponseIF 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 ConversationsHistoryResponse.Builder builder()
ConversationsHistoryResponse.Copyright © 2019. All rights reserved.