@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","AbstractSlashCommandResponseParams"}) @Immutable public final class SlashCommandResponseParams extends AbstractSlashCommandResponseParams
AbstractSlashCommandResponseParams.
Use the builder to create immutable instances:
SlashCommandResponseParams.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
SlashCommandResponseParams.Builder
Builds instances of type
SlashCommandResponseParams. |
| Modifier and Type | Method and Description |
|---|---|
static SlashCommandResponseParams.Builder |
builder()
Creates a builder for
SlashCommandResponseParams. |
static SlashCommandResponseParams |
copyOf(AbstractSlashCommandResponseParams instance)
Creates an immutable copy of a
AbstractSlashCommandResponseParams value. |
boolean |
equals(Object another)
This instance is equal to all instances of
SlashCommandResponseParams that have equal attribute values. |
Optional<Boolean> |
getAsUser() |
List<Attachment> |
getAttachments() |
List<Block> |
getBlocks() |
String |
getChannelId() |
Optional<String> |
getIconEmoji() |
Optional<String> |
getIconUrl() |
Optional<Boolean> |
getLinkNames() |
Optional<Boolean> |
getReplyBroadcast() |
TopLevelMessageResponseType |
getResponseType() |
Optional<String> |
getText() |
Optional<String> |
getThreadTs() |
Optional<Boolean> |
getUnfurlLinks() |
Optional<Boolean> |
getUnfurlMedia() |
Optional<String> |
getUsername() |
int |
hashCode()
Computes a hash code from attributes:
responseType, channelId, text, threadTs, username, asUser, iconEmoji, iconUrl, linkNames, unfurlLinks, unfurlMedia, replyBroadcast, attachments, blocks. |
String |
toString()
Prints the immutable value
SlashCommandResponseParams with attribute values. |
SlashCommandResponseParams |
withAsUser(Boolean value)
Copy the current immutable object by setting a present value for the optional
asUser attribute. |
SlashCommandResponseParams |
withAsUser(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for the
asUser attribute. |
SlashCommandResponseParams |
withAttachments(Attachment... elements)
Copy the current immutable object with elements that replace the content of
attachments. |
SlashCommandResponseParams |
withAttachments(Iterable<? extends Attachment> elements)
Copy the current immutable object with elements that replace the content of
attachments. |
SlashCommandResponseParams |
withBlocks(Block... elements)
Copy the current immutable object with elements that replace the content of
blocks. |
SlashCommandResponseParams |
withBlocks(Iterable<? extends Block> elements)
Copy the current immutable object with elements that replace the content of
blocks. |
SlashCommandResponseParams |
withChannelId(String channelId)
Copy the current immutable object by setting a value for the
channelId attribute. |
SlashCommandResponseParams |
withIconEmoji(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
iconEmoji attribute. |
SlashCommandResponseParams |
withIconEmoji(String value)
Copy the current immutable object by setting a present value for the optional
iconEmoji attribute. |
SlashCommandResponseParams |
withIconUrl(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
iconUrl attribute. |
SlashCommandResponseParams |
withIconUrl(String value)
Copy the current immutable object by setting a present value for the optional
iconUrl attribute. |
SlashCommandResponseParams |
withLinkNames(Boolean value)
Copy the current immutable object by setting a present value for the optional
linkNames attribute. |
SlashCommandResponseParams |
withLinkNames(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for the
linkNames attribute. |
SlashCommandResponseParams |
withReplyBroadcast(Boolean value)
Copy the current immutable object by setting a present value for the optional
replyBroadcast attribute. |
SlashCommandResponseParams |
withReplyBroadcast(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for the
replyBroadcast attribute. |
SlashCommandResponseParams |
withResponseType(TopLevelMessageResponseType responseType)
Copy the current immutable object by setting a value for the
responseType attribute. |
SlashCommandResponseParams |
withText(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
text attribute. |
SlashCommandResponseParams |
withText(String value)
Copy the current immutable object by setting a present value for the optional
text attribute. |
SlashCommandResponseParams |
withThreadTs(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
threadTs attribute. |
SlashCommandResponseParams |
withThreadTs(String value)
Copy the current immutable object by setting a present value for the optional
threadTs attribute. |
SlashCommandResponseParams |
withUnfurlLinks(Boolean value)
Copy the current immutable object by setting a present value for the optional
unfurlLinks attribute. |
SlashCommandResponseParams |
withUnfurlLinks(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for the
unfurlLinks attribute. |
SlashCommandResponseParams |
withUnfurlMedia(Boolean value)
Copy the current immutable object by setting a present value for the optional
unfurlMedia attribute. |
SlashCommandResponseParams |
withUnfurlMedia(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for the
unfurlMedia attribute. |
SlashCommandResponseParams |
withUsername(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
username attribute. |
SlashCommandResponseParams |
withUsername(String value)
Copy the current immutable object by setting a present value for the optional
username attribute. |
checkpublic TopLevelMessageResponseType getResponseType()
getResponseType in class AbstractSlashCommandResponseParamsresponseType attributepublic String getChannelId()
getChannelId in interface HasChannelgetChannelId in class AbstractChatMessageParamschannelId attributepublic Optional<String> getText()
getText in interface MessageParamsgetText in class AbstractChatMessageParamstext attributepublic Optional<String> getThreadTs()
getThreadTs in class AbstractChatMessageParamsthreadTs attributepublic Optional<String> getUsername()
getUsername in class AbstractChatMessageParamsusername attributepublic Optional<Boolean> getAsUser()
getAsUser in class AbstractChatMessageParamsasUser attributepublic Optional<String> getIconEmoji()
getIconEmoji in class AbstractChatMessageParamsiconEmoji attributepublic Optional<String> getIconUrl()
getIconUrl in class AbstractChatMessageParamsiconUrl attributepublic Optional<Boolean> getLinkNames()
getLinkNames in class AbstractChatMessageParamslinkNames attributepublic Optional<Boolean> getUnfurlLinks()
getUnfurlLinks in class AbstractChatMessageParamsunfurlLinks attributepublic Optional<Boolean> getUnfurlMedia()
getUnfurlMedia in class AbstractChatMessageParamsunfurlMedia attributepublic Optional<Boolean> getReplyBroadcast()
getReplyBroadcast in class AbstractChatMessageParamsreplyBroadcast attributepublic List<Attachment> getAttachments()
attachments attributepublic final SlashCommandResponseParams withResponseType(TopLevelMessageResponseType responseType)
responseType attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.responseType - A new value for responseTypethis objectpublic final SlashCommandResponseParams withChannelId(String channelId)
channelId attribute.
An equals check used to prevent copying of the same value by returning this.channelId - A new value for channelIdthis objectpublic final SlashCommandResponseParams withText(@Nullable String value)
text attribute.value - The value for text, null is accepted as java.util.Optional.empty()this objectpublic final SlashCommandResponseParams withText(Optional<String> optional)
text attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for textthis objectpublic final SlashCommandResponseParams withThreadTs(@Nullable String value)
threadTs attribute.value - The value for threadTs, null is accepted as java.util.Optional.empty()this objectpublic final SlashCommandResponseParams withThreadTs(Optional<String> optional)
threadTs attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for threadTsthis objectpublic final SlashCommandResponseParams withUsername(@Nullable String value)
username attribute.value - The value for username, null is accepted as java.util.Optional.empty()this objectpublic final SlashCommandResponseParams withUsername(Optional<String> optional)
username attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for usernamethis objectpublic final SlashCommandResponseParams withAsUser(@Nullable Boolean value)
asUser attribute.value - The value for asUser, null is accepted as java.util.Optional.empty()this objectpublic final SlashCommandResponseParams withAsUser(Optional<Boolean> optional)
asUser attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for asUserthis objectpublic final SlashCommandResponseParams withIconEmoji(@Nullable String value)
iconEmoji attribute.value - The value for iconEmoji, null is accepted as java.util.Optional.empty()this objectpublic final SlashCommandResponseParams withIconEmoji(Optional<String> optional)
iconEmoji attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for iconEmojithis objectpublic final SlashCommandResponseParams withIconUrl(@Nullable String value)
iconUrl attribute.value - The value for iconUrl, null is accepted as java.util.Optional.empty()this objectpublic final SlashCommandResponseParams withIconUrl(Optional<String> optional)
iconUrl attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for iconUrlthis objectpublic final SlashCommandResponseParams withLinkNames(@Nullable Boolean value)
linkNames attribute.value - The value for linkNames, null is accepted as java.util.Optional.empty()this objectpublic final SlashCommandResponseParams withLinkNames(Optional<Boolean> optional)
linkNames attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for linkNamesthis objectpublic final SlashCommandResponseParams withUnfurlLinks(@Nullable Boolean value)
unfurlLinks attribute.value - The value for unfurlLinks, null is accepted as java.util.Optional.empty()this objectpublic final SlashCommandResponseParams withUnfurlLinks(Optional<Boolean> optional)
unfurlLinks attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for unfurlLinksthis objectpublic final SlashCommandResponseParams withUnfurlMedia(@Nullable Boolean value)
unfurlMedia attribute.value - The value for unfurlMedia, null is accepted as java.util.Optional.empty()this objectpublic final SlashCommandResponseParams withUnfurlMedia(Optional<Boolean> optional)
unfurlMedia attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for unfurlMediathis objectpublic final SlashCommandResponseParams withReplyBroadcast(@Nullable Boolean value)
replyBroadcast attribute.value - The value for replyBroadcast, null is accepted as java.util.Optional.empty()this objectpublic final SlashCommandResponseParams withReplyBroadcast(Optional<Boolean> optional)
replyBroadcast attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for replyBroadcastthis objectpublic final SlashCommandResponseParams withAttachments(Attachment... elements)
attachments.elements - The elements to setthis objectpublic final SlashCommandResponseParams withAttachments(Iterable<? extends Attachment> elements)
attachments.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of attachments elements to setthis objectpublic final SlashCommandResponseParams withBlocks(Block... elements)
blocks.elements - The elements to setthis objectpublic final SlashCommandResponseParams withBlocks(Iterable<? extends Block> elements)
blocks.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of blocks elements to setthis objectpublic boolean equals(@Nullable Object another)
SlashCommandResponseParams that have equal attribute values.public int hashCode()
responseType, channelId, text, threadTs, username, asUser, iconEmoji, iconUrl, linkNames, unfurlLinks, unfurlMedia, replyBroadcast, attachments, blocks.public String toString()
SlashCommandResponseParams with attribute values.public static SlashCommandResponseParams copyOf(AbstractSlashCommandResponseParams instance)
AbstractSlashCommandResponseParams 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 SlashCommandResponseParams.Builder builder()
SlashCommandResponseParams.Copyright © 2020. All rights reserved.