@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","AbstractChatPostMessageParams"}) @Immutable public final class ChatPostMessageParams extends AbstractChatPostMessageParams
AbstractChatPostMessageParams.
Use the builder to create immutable instances:
ChatPostMessageParams.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ChatPostMessageParams.Builder
Builds instances of type
ChatPostMessageParams. |
| Modifier and Type | Method and Description |
|---|---|
static ChatPostMessageParams.Builder |
builder()
Creates a builder for
ChatPostMessageParams. |
static ChatPostMessageParams |
copyOf(AbstractChatPostMessageParams instance)
Creates an immutable copy of a
AbstractChatPostMessageParams value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ChatPostMessageParams 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() |
Optional<String> |
getText() |
Optional<String> |
getThreadTs() |
Optional<Boolean> |
getUnfurlLinks() |
Optional<Boolean> |
getUnfurlMedia() |
Optional<String> |
getUsername() |
int |
hashCode()
Computes a hash code from attributes:
channelId, text, threadTs, username, asUser, iconEmoji, iconUrl, linkNames, unfurlLinks, unfurlMedia, replyBroadcast, attachments, blocks. |
String |
toString()
Prints the immutable value
ChatPostMessageParams with attribute values. |
ChatPostMessageParams |
withAsUser(Boolean value)
Copy the current immutable object by setting a present value for the optional
asUser attribute. |
ChatPostMessageParams |
withAsUser(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for the
asUser attribute. |
ChatPostMessageParams |
withAttachments(Attachment... elements)
Copy the current immutable object with elements that replace the content of
attachments. |
ChatPostMessageParams |
withAttachments(Iterable<? extends Attachment> elements)
Copy the current immutable object with elements that replace the content of
attachments. |
ChatPostMessageParams |
withBlocks(Block... elements)
Copy the current immutable object with elements that replace the content of
blocks. |
ChatPostMessageParams |
withBlocks(Iterable<? extends Block> elements)
Copy the current immutable object with elements that replace the content of
blocks. |
ChatPostMessageParams |
withChannelId(String channelId)
Copy the current immutable object by setting a value for the
channelId attribute. |
ChatPostMessageParams |
withIconEmoji(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
iconEmoji attribute. |
ChatPostMessageParams |
withIconEmoji(String value)
Copy the current immutable object by setting a present value for the optional
iconEmoji attribute. |
ChatPostMessageParams |
withIconUrl(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
iconUrl attribute. |
ChatPostMessageParams |
withIconUrl(String value)
Copy the current immutable object by setting a present value for the optional
iconUrl attribute. |
ChatPostMessageParams |
withLinkNames(Boolean value)
Copy the current immutable object by setting a present value for the optional
linkNames attribute. |
ChatPostMessageParams |
withLinkNames(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for the
linkNames attribute. |
ChatPostMessageParams |
withReplyBroadcast(Boolean value)
Copy the current immutable object by setting a present value for the optional
replyBroadcast attribute. |
ChatPostMessageParams |
withReplyBroadcast(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for the
replyBroadcast attribute. |
ChatPostMessageParams |
withText(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
text attribute. |
ChatPostMessageParams |
withText(String value)
Copy the current immutable object by setting a present value for the optional
text attribute. |
ChatPostMessageParams |
withThreadTs(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
threadTs attribute. |
ChatPostMessageParams |
withThreadTs(String value)
Copy the current immutable object by setting a present value for the optional
threadTs attribute. |
ChatPostMessageParams |
withUnfurlLinks(Boolean value)
Copy the current immutable object by setting a present value for the optional
unfurlLinks attribute. |
ChatPostMessageParams |
withUnfurlLinks(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for the
unfurlLinks attribute. |
ChatPostMessageParams |
withUnfurlMedia(Boolean value)
Copy the current immutable object by setting a present value for the optional
unfurlMedia attribute. |
ChatPostMessageParams |
withUnfurlMedia(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for the
unfurlMedia attribute. |
ChatPostMessageParams |
withUsername(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
username attribute. |
ChatPostMessageParams |
withUsername(String value)
Copy the current immutable object by setting a present value for the optional
username attribute. |
checkpublic String getChannelId()
getChannelId in interface HasChannelgetChannelId in class AbstractChatPostMessageParamschannelId attributepublic Optional<String> getText()
getText in interface MessageParamsgetText in class AbstractChatPostMessageParamstext attributepublic Optional<String> getThreadTs()
getThreadTs in class AbstractChatPostMessageParamsthreadTs attributepublic Optional<String> getUsername()
getUsername in class AbstractChatPostMessageParamsusername attributepublic Optional<Boolean> getAsUser()
getAsUser in class AbstractChatPostMessageParamsasUser attributepublic Optional<String> getIconEmoji()
getIconEmoji in class AbstractChatPostMessageParamsiconEmoji attributepublic Optional<String> getIconUrl()
getIconUrl in class AbstractChatPostMessageParamsiconUrl attributepublic Optional<Boolean> getLinkNames()
getLinkNames in class AbstractChatPostMessageParamslinkNames attributepublic Optional<Boolean> getUnfurlLinks()
getUnfurlLinks in class AbstractChatPostMessageParamsunfurlLinks attributepublic Optional<Boolean> getUnfurlMedia()
getUnfurlMedia in class AbstractChatPostMessageParamsunfurlMedia attributepublic Optional<Boolean> getReplyBroadcast()
getReplyBroadcast in class AbstractChatPostMessageParamsreplyBroadcast attributepublic List<Attachment> getAttachments()
attachments attributepublic final ChatPostMessageParams 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 ChatPostMessageParams withText(@Nullable String value)
text attribute.value - The value for text, null is accepted as java.util.Optional.empty()this objectpublic final ChatPostMessageParams 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 ChatPostMessageParams withThreadTs(@Nullable String value)
threadTs attribute.value - The value for threadTs, null is accepted as java.util.Optional.empty()this objectpublic final ChatPostMessageParams 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 ChatPostMessageParams withUsername(@Nullable String value)
username attribute.value - The value for username, null is accepted as java.util.Optional.empty()this objectpublic final ChatPostMessageParams 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 ChatPostMessageParams withAsUser(@Nullable Boolean value)
asUser attribute.value - The value for asUser, null is accepted as java.util.Optional.empty()this objectpublic final ChatPostMessageParams 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 ChatPostMessageParams withIconEmoji(@Nullable String value)
iconEmoji attribute.value - The value for iconEmoji, null is accepted as java.util.Optional.empty()this objectpublic final ChatPostMessageParams 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 ChatPostMessageParams withIconUrl(@Nullable String value)
iconUrl attribute.value - The value for iconUrl, null is accepted as java.util.Optional.empty()this objectpublic final ChatPostMessageParams 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 ChatPostMessageParams withLinkNames(@Nullable Boolean value)
linkNames attribute.value - The value for linkNames, null is accepted as java.util.Optional.empty()this objectpublic final ChatPostMessageParams 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 ChatPostMessageParams withUnfurlLinks(@Nullable Boolean value)
unfurlLinks attribute.value - The value for unfurlLinks, null is accepted as java.util.Optional.empty()this objectpublic final ChatPostMessageParams 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 ChatPostMessageParams withUnfurlMedia(@Nullable Boolean value)
unfurlMedia attribute.value - The value for unfurlMedia, null is accepted as java.util.Optional.empty()this objectpublic final ChatPostMessageParams 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 ChatPostMessageParams withReplyBroadcast(@Nullable Boolean value)
replyBroadcast attribute.value - The value for replyBroadcast, null is accepted as java.util.Optional.empty()this objectpublic final ChatPostMessageParams 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 ChatPostMessageParams withAttachments(Attachment... elements)
attachments.elements - The elements to setthis objectpublic final ChatPostMessageParams 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 ChatPostMessageParams withBlocks(Block... elements)
blocks.elements - The elements to setthis objectpublic final ChatPostMessageParams 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)
ChatPostMessageParams that have equal attribute values.public int hashCode()
channelId, text, threadTs, username, asUser, iconEmoji, iconUrl, linkNames, unfurlLinks, unfurlMedia, replyBroadcast, attachments, blocks.public String toString()
ChatPostMessageParams with attribute values.public static ChatPostMessageParams copyOf(AbstractChatPostMessageParams instance)
AbstractChatPostMessageParams 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 ChatPostMessageParams.Builder builder()
ChatPostMessageParams.Copyright © 2019. All rights reserved.