Class ChatPostEphemeralRequest
- java.lang.Object
-
- com.slack.api.methods.request.chat.ChatPostEphemeralRequest
-
- All Implemented Interfaces:
SlackApiRequest
public class ChatPostEphemeralRequest extends Object implements SlackApiRequest
https://api.slack.com/methods/chat.postEphemeral
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ChatPostEphemeralRequest.ChatPostEphemeralRequestBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ChatPostEphemeralRequest.ChatPostEphemeralRequestBuilder
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 post this message in a thread.String
getToken()
Authentication token.String
getUser()
`id` of the user who will receive the ephemeral message.String
getUsername()
Set your bot's user name.int
hashCode()
Boolean
isAsUser()
boolean
isLinkNames()
Find and link channel names and usernames.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
setParse(String parse)
Change how messages are treated.void
setText(String text)
Text of the message to send.void
setThreadTs(String threadTs)
Provide another message's ts value to post this message in a thread.void
setToken(String token)
Authentication token.void
setUser(String user)
`id` of the user who will receive the ephemeral message.void
setUsername(String username)
Set your bot's user name.String
toString()
-
-
-
Method Detail
-
isAsUser
public Boolean isAsUser()
-
setAsUser
public void setAsUser(Boolean asUser)
-
builder
public static ChatPostEphemeralRequest.ChatPostEphemeralRequestBuilder builder()
-
getToken
public String getToken()
Authentication token. Requires scope: `chat:write`- Specified by:
getToken
in interfaceSlackApiRequest
- Returns:
- token string value or null
-
getChannel
public String getChannel()
Channel, private group, or IM channel to send message to. Can be an encoded ID, or a name.
-
getText
public String getText()
Text of the message to send. See below for an explanation of [formatting](#formatting). This field is usually required, unless you're providing only `attachments` instead.
-
getUser
public String getUser()
`id` of the user who will receive the ephemeral message. The user should be in the channel specified by the `channel` argument.
-
getBlocks
public List<LayoutBlock> getBlocks()
A JSON-based array of structured blocks, presented as a URL-encoded string.
-
getBlocksAsString
public String getBlocksAsString()
A JSON-based array of structured blocks as a String, presented as a URL-encoded string.
-
getAttachments
public List<Attachment> getAttachments()
A JSON-based array of structured attachments, presented as a URL-encoded string.
-
getAttachmentsAsString
public String getAttachmentsAsString()
A JSON-based array of structured attachments, presented as a URL-encoded string.
-
getThreadTs
public String getThreadTs()
Provide another message's ts value to post this message in a thread. Avoid using a reply's ts value; use its parent's value instead. Ephemeral messages in threads are only shown if there is already an active thread.
-
getIconEmoji
public String getIconEmoji()
Emoji to use as the icon for this message. Overrides icon_url. Must be used in conjunction with as_user set to false, otherwise ignored. See authorship below. https://api.slack.com/methods/chat.postEphemeral#authorship
-
getIconUrl
public String getIconUrl()
URL to an image to use as the icon for this message. Must be used in conjunction with as_user set to false, otherwise ignored. See authorship below. https://api.slack.com/methods/chat.postEphemeral#authorship
-
getUsername
public String getUsername()
Set your bot's user name. Must be used in conjunction with as_user set to false, otherwise ignored. See authorship below. https://api.slack.com/methods/chat.postEphemeral#authorship
-
isLinkNames
public boolean isLinkNames()
Find and link channel names and usernames.
-
getParse
public String getParse()
Change how messages are treated. Defaults to `none`. See [below](#formatting).
-
setToken
public void setToken(String token)
Authentication token. Requires scope: `chat:write`- Specified by:
setToken
in interfaceSlackApiRequest
-
setChannel
public void setChannel(String channel)
Channel, private group, or IM channel to send message to. Can be an encoded ID, or a name.
-
setText
public void setText(String text)
Text of the message to send. See below for an explanation of [formatting](#formatting). This field is usually required, unless you're providing only `attachments` instead.
-
setUser
public void setUser(String user)
`id` of the user who will receive the ephemeral message. The user should be in the channel specified by the `channel` argument.
-
setBlocks
public void setBlocks(List<LayoutBlock> blocks)
A JSON-based array of structured blocks, presented as a URL-encoded string.
-
setBlocksAsString
public void setBlocksAsString(String blocksAsString)
A JSON-based array of structured blocks as a String, presented as a URL-encoded string.
-
setAttachments
public void setAttachments(List<Attachment> attachments)
A JSON-based array of structured attachments, presented as a URL-encoded string.
-
setAttachmentsAsString
public void setAttachmentsAsString(String attachmentsAsString)
A JSON-based array of structured attachments, presented as a URL-encoded string.
-
setThreadTs
public void setThreadTs(String threadTs)
Provide another message's ts value to post this message in a thread. Avoid using a reply's ts value; use its parent's value instead. Ephemeral messages in threads are only shown if there is already an active thread.
-
setIconEmoji
public void setIconEmoji(String iconEmoji)
Emoji to use as the icon for this message. Overrides icon_url. Must be used in conjunction with as_user set to false, otherwise ignored. See authorship below. https://api.slack.com/methods/chat.postEphemeral#authorship
-
setIconUrl
public void setIconUrl(String iconUrl)
URL to an image to use as the icon for this message. Must be used in conjunction with as_user set to false, otherwise ignored. See authorship below. https://api.slack.com/methods/chat.postEphemeral#authorship
-
setUsername
public void setUsername(String username)
Set your bot's user name. Must be used in conjunction with as_user set to false, otherwise ignored. See authorship below. https://api.slack.com/methods/chat.postEphemeral#authorship
-
setLinkNames
public void setLinkNames(boolean linkNames)
Find and link channel names and usernames.
-
setParse
public void setParse(String parse)
Change how messages are treated. Defaults to `none`. See [below](#formatting).
-
canEqual
protected boolean canEqual(Object other)
-
-