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