Class ChatPostEphemeralRequest
java.lang.Object
com.slack.api.methods.request.chat.ChatPostEphemeralRequest
- All Implemented Interfaces:
SlackApiRequest
public class ChatPostEphemeralRequest extends java.lang.Object implements SlackApiRequest
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classChatPostEphemeralRequest.ChatPostEphemeralRequestBuilder -
Method Summary
Modifier and Type Method Description static ChatPostEphemeralRequest.ChatPostEphemeralRequestBuilderbuilder()protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)java.util.List<Attachment>getAttachments()A JSON-based array of structured attachments, presented as a URL-encoded string.java.lang.StringgetAttachmentsAsString()A JSON-based array of structured attachments, presented as a URL-encoded string.java.util.List<LayoutBlock>getBlocks()A JSON-based array of structured blocks, presented as a URL-encoded string.java.lang.StringgetBlocksAsString()A JSON-based array of structured blocks as a String, presented as a URL-encoded string.java.lang.StringgetChannel()Channel, private group, or IM channel to send message to.java.lang.StringgetIconEmoji()Emoji to use as the icon for this message.java.lang.StringgetIconUrl()URL to an image to use as the icon for this message.java.lang.StringgetParse()Change how messages are treated.java.lang.StringgetText()Text of the message to send.java.lang.StringgetThreadTs()Provide another message's ts value to post this message in a thread.java.lang.StringgetToken()Authentication token.java.lang.StringgetUser()`id` of the user who will receive the ephemeral message.java.lang.StringgetUsername()Set your bot's user name.inthashCode()java.lang.BooleanisAsUser()booleanisLinkNames()Find and link channel names and usernames.voidsetAsUser(java.lang.Boolean asUser)voidsetAttachments(java.util.List<Attachment> attachments)A JSON-based array of structured attachments, presented as a URL-encoded string.voidsetAttachmentsAsString(java.lang.String attachmentsAsString)A JSON-based array of structured attachments, presented as a URL-encoded string.voidsetBlocks(java.util.List<LayoutBlock> blocks)A JSON-based array of structured blocks, presented as a URL-encoded string.voidsetBlocksAsString(java.lang.String blocksAsString)A JSON-based array of structured blocks as a String, presented as a URL-encoded string.voidsetChannel(java.lang.String channel)Channel, private group, or IM channel to send message to.voidsetIconEmoji(java.lang.String iconEmoji)Emoji to use as the icon for this message.voidsetIconUrl(java.lang.String iconUrl)URL to an image to use as the icon for this message.voidsetLinkNames(boolean linkNames)Find and link channel names and usernames.voidsetParse(java.lang.String parse)Change how messages are treated.voidsetText(java.lang.String text)Text of the message to send.voidsetThreadTs(java.lang.String threadTs)Provide another message's ts value to post this message in a thread.voidsetToken(java.lang.String token)Authentication token.voidsetUser(java.lang.String user)`id` of the user who will receive the ephemeral message.voidsetUsername(java.lang.String username)Set your bot's user name.java.lang.StringtoString()
-
Method Details
-
isAsUser
public java.lang.Boolean isAsUser() -
setAsUser
public void setAsUser(java.lang.Boolean asUser) -
builder
-
getToken
public java.lang.String getToken()Authentication token. Requires scope: `chat:write`- Specified by:
getTokenin interfaceSlackApiRequest
-
getChannel
public java.lang.String getChannel()Channel, private group, or IM channel to send message to. Can be an encoded ID, or a name. -
getText
public java.lang.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 java.lang.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
A JSON-based array of structured blocks, presented as a URL-encoded string. -
getBlocksAsString
public java.lang.String getBlocksAsString()A JSON-based array of structured blocks as a String, presented as a URL-encoded string. -
getAttachments
A JSON-based array of structured attachments, presented as a URL-encoded string. -
getAttachmentsAsString
public java.lang.String getAttachmentsAsString()A JSON-based array of structured attachments, presented as a URL-encoded string. -
getThreadTs
public java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.String getParse()Change how messages are treated. Defaults to `none`. See [below](#formatting). -
setToken
public void setToken(java.lang.String token)Authentication token. Requires scope: `chat:write` -
setChannel
public void setChannel(java.lang.String channel)Channel, private group, or IM channel to send message to. Can be an encoded ID, or a name. -
setText
public void setText(java.lang.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(java.lang.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
A JSON-based array of structured blocks, presented as a URL-encoded string. -
setBlocksAsString
public void setBlocksAsString(java.lang.String blocksAsString)A JSON-based array of structured blocks as a String, presented as a URL-encoded string. -
setAttachments
A JSON-based array of structured attachments, presented as a URL-encoded string. -
setAttachmentsAsString
public void setAttachmentsAsString(java.lang.String attachmentsAsString)A JSON-based array of structured attachments, presented as a URL-encoded string. -
setThreadTs
public void setThreadTs(java.lang.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(java.lang.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(java.lang.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(java.lang.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(java.lang.String parse)Change how messages are treated. Defaults to `none`. See [below](#formatting). -
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other) -
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-