@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","EmojiListResponseIF"}) @Immutable public final class EmojiListResponse extends Object implements EmojiListResponseIF
EmojiListResponseIF.
Use the builder to create immutable instances:
EmojiListResponse.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
EmojiListResponse.Builder
Builds instances of type
EmojiListResponse. |
| Modifier and Type | Method and Description |
|---|---|
static EmojiListResponse.Builder |
builder()
Creates a builder for
EmojiListResponse. |
static EmojiListResponse |
copyOf(EmojiListResponseIF instance)
Creates an immutable copy of a
EmojiListResponseIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
EmojiListResponse that have equal attribute values. |
Map<String,String> |
getEmoji() |
Optional<ResponseMetadata> |
getResponseMetadata() |
int |
hashCode()
Computes a hash code from attributes:
emoji, ok, responseMetadata. |
boolean |
isOk() |
String |
toString()
Prints the immutable value
EmojiListResponse with attribute values. |
EmojiListResponse |
withEmoji(Map<String,? extends String> emoji)
Copy the current immutable object by replacing the
emoji map with the specified map. |
EmojiListResponse |
withOk(boolean ok)
Copy the current immutable object by setting a value for the
ok attribute. |
EmojiListResponse |
withResponseMetadata(Optional<ResponseMetadata> optional)
Copy the current immutable object by setting an optional value for the
responseMetadata attribute. |
EmojiListResponse |
withResponseMetadata(ResponseMetadata value)
Copy the current immutable object by setting a present value for the optional
responseMetadata attribute. |
public Map<String,String> getEmoji()
getEmoji in interface EmojiListResponseIFemoji attributepublic boolean isOk()
isOk in interface SlackResponseok attributepublic Optional<ResponseMetadata> getResponseMetadata()
getResponseMetadata in interface SlackResponseresponseMetadata attributepublic final EmojiListResponse withEmoji(Map<String,? extends String> emoji)
emoji map with the specified map.
Nulls are not permitted as keys or values.
A shallow reference equality check is used to prevent copying of the same value by returning this.emoji - The entries to be added to the emoji mapthis objectpublic final EmojiListResponse 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 EmojiListResponse withResponseMetadata(@Nullable ResponseMetadata value)
responseMetadata attribute.value - The value for responseMetadata, null is accepted as java.util.Optional.empty()this objectpublic final EmojiListResponse 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)
EmojiListResponse that have equal attribute values.public int hashCode()
emoji, ok, responseMetadata.public String toString()
EmojiListResponse with attribute values.public static EmojiListResponse copyOf(EmojiListResponseIF instance)
EmojiListResponseIF 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 EmojiListResponse.Builder builder()
EmojiListResponse.Copyright © 2019. All rights reserved.