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