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