Class EmojiListResponse
java.lang.Object
com.hubspot.slack.client.models.response.emoji.EmojiListResponse
- All Implemented Interfaces:
EmojiListResponseIF,SlackResponse
@Generated(from="EmojiListResponseIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class EmojiListResponse
extends Object
implements EmojiListResponseIF
Immutable implementation of
EmojiListResponseIF.
Use the builder to create immutable instances:
EmojiListResponse.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic EmojiListResponse.Builderbuilder()Creates a builder forEmojiListResponse.static EmojiListResponsecopyOf(EmojiListResponseIF instance) Creates an immutable copy of aEmojiListResponseIFvalue.booleanThis instance is equal to all instances ofEmojiListResponsethat have equal attribute values.getEmoji()inthashCode()Computes a hash code from attributes:ok,responseMetadata,emoji.booleanisOk()toString()Prints the immutable valueEmojiListResponsewith attribute values.final EmojiListResponseCopy the current immutable object by replacing theemojimap with the specified map.final EmojiListResponsewithOk(boolean value) Copy the current immutable object by setting a value for theokattribute.final EmojiListResponseCopy the current immutable object by setting a present value for the optionalresponseMetadataattribute.final EmojiListResponsewithResponseMetadata(Optional<? extends ResponseMetadata> optional) Copy the current immutable object by setting an optional value for theresponseMetadataattribute.
-
Method Details
-
isOk
public boolean isOk()- Specified by:
isOkin interfaceSlackResponse- Returns:
- The value of the
okattribute
-
getResponseMetadata
- Specified by:
getResponseMetadatain interfaceSlackResponse- Returns:
- The value of the
responseMetadataattribute
-
getEmoji
- Specified by:
getEmojiin interfaceEmojiListResponseIF- Returns:
- The value of the
emojiattribute
-
withOk
Copy the current immutable object by setting a value for theokattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for ok- Returns:
- A modified copy or the
thisobject
-
withResponseMetadata
Copy the current immutable object by setting a present value for the optionalresponseMetadataattribute.- Parameters:
value- The value for responseMetadata,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withResponseMetadata
Copy the current immutable object by setting an optional value for theresponseMetadataattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for responseMetadata- Returns:
- A modified copy or
thisif not changed
-
withEmoji
Copy the current immutable object by replacing theemojimap 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 returningthis.- Parameters:
entries- The entries to replace the emoji map- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofEmojiListResponsethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:ok,responseMetadata,emoji. -
toString
Prints the immutable valueEmojiListResponsewith attribute values. -
copyOf
Creates an immutable copy of aEmojiListResponseIFvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable EmojiListResponse instance
-
builder
Creates a builder forEmojiListResponse.EmojiListResponse.builder() .setOk(boolean) // requiredok.setResponseMetadata(Optional<ResponseMetadata>) // optionalresponseMetadata.putEmoji|putAllEmoji(String => String) //emojimappings .build();- Returns:
- A new EmojiListResponse builder
-