Class ChatUpdateRequest
java.lang.Object
com.slack.api.methods.request.chat.ChatUpdateRequest
- All Implemented Interfaces:
SlackApiRequest
public class ChatUpdateRequest extends Object implements SlackApiRequest
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classChatUpdateRequest.ChatUpdateRequestBuilder -
Method Summary
Modifier and Type Method Description static ChatUpdateRequest.ChatUpdateRequestBuilderbuilder()protected booleancanEqual(Object other)booleanequals(Object o)List<Attachment>getAttachments()A JSON-based array of structured attachments, presented as a URL-encoded string.StringgetAttachmentsAsString()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.StringgetBlocksAsString()A JSON-based array of structured blocks as a String, presented as a URL-encoded string.StringgetChannel()Channel, private group, or IM channel to send message to.StringgetParse()Change how messages are treated.StringgetText()Text of the message to send.StringgetToken()Authentication token.StringgetTs()Timestamp of the message to be updated.StringgetUser()`id` of the user who will receive the ephemeral message.inthashCode()BooleanisAsUser()booleanisLinkNames()Find and link channel names and usernames.voidsetAsUser(Boolean asUser)voidsetAttachments(List<Attachment> attachments)A JSON-based array of structured attachments, presented as a URL-encoded string.voidsetAttachmentsAsString(String attachmentsAsString)A JSON-based array of structured attachments, presented as a URL-encoded string.voidsetBlocks(List<LayoutBlock> blocks)A JSON-based array of structured blocks, presented as a URL-encoded string.voidsetBlocksAsString(String blocksAsString)A JSON-based array of structured blocks as a String, presented as a URL-encoded string.voidsetChannel(String channel)Channel, private group, or IM channel to send message to.voidsetLinkNames(boolean linkNames)Find and link channel names and usernames.voidsetParse(String parse)Change how messages are treated.voidsetText(String text)Text of the message to send.voidsetToken(String token)Authentication token.voidsetTs(String ts)Timestamp of the message to be updated.voidsetUser(String user)`id` of the user who will receive the ephemeral message.StringtoString()
-
Method Details
-
isAsUser
-
setAsUser
-
builder
-
getToken
Authentication token. Requires scope: `chat:write`- Specified by:
getTokenin interfaceSlackApiRequest
-
getChannel
Channel, private group, or IM channel to send message to. Can be an encoded ID, or a name. -
getTs
Timestamp of the message to be updated. -
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
`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
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
A JSON-based array of structured attachments, presented as a URL-encoded string. -
isLinkNames
public boolean isLinkNames()Find and link channel names and usernames. -
getParse
Change how messages are treated. Defaults to `none`. See [below](#formatting). -
setToken
Authentication token. Requires scope: `chat:write` -
setChannel
Channel, private group, or IM channel to send message to. Can be an encoded ID, or a name. -
setTs
Timestamp of the message to be updated. -
setText
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
`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
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
A JSON-based array of structured attachments, presented as a URL-encoded string. -
setLinkNames
public void setLinkNames(boolean linkNames)Find and link channel names and usernames. -
setParse
Change how messages are treated. Defaults to `none`. See [below](#formatting). -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-