public class ChatPostMessageRequest extends Object implements SlackApiRequest
| Modifier and Type | Class and Description |
|---|---|
static class |
ChatPostMessageRequest.ChatPostMessageRequestBuilder |
| Modifier and Type | Method and Description |
|---|---|
static ChatPostMessageRequest.ChatPostMessageRequestBuilder |
builder() |
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
List<Attachment> |
getAttachments()
A JSON-based array of structured attachments, presented as a URL-encoded string.
|
String |
getAttachmentsAsString()
A JSON-based array of structured attachments, presented as a URL-encoded string.
|
List<LayoutBlock> |
getBlocks()
A JSON-based array of structured blocks, presented as a URL-encoded string.
|
String |
getBlocksAsString()
A JSON-based array of structured blocks as a String, presented as a URL-encoded string.
|
String |
getChannel()
Channel, private group, or IM channel to send message to.
|
String |
getIconEmoji()
Emoji to use as the icon for this message.
|
String |
getIconUrl()
URL to an image to use as the icon for this message.
|
String |
getParse()
Change how messages are treated.
|
String |
getText()
Text of the message to send.
|
String |
getThreadTs()
Provide another message's `ts` value to make this message a reply.
|
String |
getToken()
Authentication token.
|
String |
getUsername()
aSet your bot's user name.
|
int |
hashCode() |
Boolean |
isAsUser() |
boolean |
isLinkNames()
Find and link channel names and usernames.
|
boolean |
isMrkdwn()
Disable Slack markup parsing by setting to `false`.
|
boolean |
isReplyBroadcast()
Used in conjunction with `thread_ts` and indicates whether reply should be made visible to
everyone in the channel or conversation.
|
boolean |
isUnfurlLinks()
Pass true to enable unfurling of primarily text-based content.
|
boolean |
isUnfurlMedia()
Pass false to disable unfurling of media content.
|
void |
setAsUser(Boolean asUser) |
void |
setAttachments(List<Attachment> attachments)
A JSON-based array of structured attachments, presented as a URL-encoded string.
|
void |
setAttachmentsAsString(String attachmentsAsString)
A JSON-based array of structured attachments, presented as a URL-encoded string.
|
void |
setBlocks(List<LayoutBlock> blocks)
A JSON-based array of structured blocks, presented as a URL-encoded string.
|
void |
setBlocksAsString(String blocksAsString)
A JSON-based array of structured blocks as a String, presented as a URL-encoded string.
|
void |
setChannel(String channel)
Channel, private group, or IM channel to send message to.
|
void |
setIconEmoji(String iconEmoji)
Emoji to use as the icon for this message.
|
void |
setIconUrl(String iconUrl)
URL to an image to use as the icon for this message.
|
void |
setLinkNames(boolean linkNames)
Find and link channel names and usernames.
|
void |
setMrkdwn(boolean mrkdwn)
Disable Slack markup parsing by setting to `false`.
|
void |
setParse(String parse)
Change how messages are treated.
|
void |
setReplyBroadcast(boolean replyBroadcast)
Used in conjunction with `thread_ts` and indicates whether reply should be made visible to
everyone in the channel or conversation.
|
void |
setText(String text)
Text of the message to send.
|
void |
setThreadTs(String threadTs)
Provide another message's `ts` value to make this message a reply.
|
void |
setToken(String token)
Authentication token.
|
void |
setUnfurlLinks(boolean unfurlLinks)
Pass true to enable unfurling of primarily text-based content.
|
void |
setUnfurlMedia(boolean unfurlMedia)
Pass false to disable unfurling of media content.
|
void |
setUsername(String username)
aSet your bot's user name.
|
String |
toString() |
public Boolean isAsUser()
public void setAsUser(Boolean asUser)
public static ChatPostMessageRequest.ChatPostMessageRequestBuilder builder()
public String getToken()
getToken in interface SlackApiRequestpublic String getUsername()
public String getThreadTs()
public String getChannel()
public String getText()
public String getParse()
public boolean isLinkNames()
public List<LayoutBlock> getBlocks()
public String getBlocksAsString()
public List<Attachment> getAttachments()
public String getAttachmentsAsString()
public boolean isUnfurlLinks()
public boolean isUnfurlMedia()
public boolean isMrkdwn()
public String getIconUrl()
public String getIconEmoji()
public boolean isReplyBroadcast()
public void setToken(String token)
public void setUsername(String username)
public void setThreadTs(String threadTs)
public void setChannel(String channel)
public void setText(String text)
public void setParse(String parse)
public void setLinkNames(boolean linkNames)
public void setBlocks(List<LayoutBlock> blocks)
public void setBlocksAsString(String blocksAsString)
public void setAttachments(List<Attachment> attachments)
public void setAttachmentsAsString(String attachmentsAsString)
public void setUnfurlLinks(boolean unfurlLinks)
public void setUnfurlMedia(boolean unfurlMedia)
public void setMrkdwn(boolean mrkdwn)
public void setIconUrl(String iconUrl)
public void setIconEmoji(String iconEmoji)
public void setReplyBroadcast(boolean replyBroadcast)
protected boolean canEqual(Object other)
Copyright © 2020. All rights reserved.