Class ChatUpdateRequest
- java.lang.Object
-
- com.slack.api.methods.request.chat.ChatUpdateRequest
-
- All Implemented Interfaces:
SlackApiRequest
public class ChatUpdateRequest extends Object implements SlackApiRequest
https://api.slack.com/methods/chat.update
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classChatUpdateRequest.ChatUpdateRequestBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods 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.List<String>getFileIds()Array of new file ids that will be sent with this message.Message.MetadatagetMetadata()JSON object with event_type and event_payload fields, presented as a URL-encoded string.StringgetMetadataAsString()JSON object with event_type and event_payload fields, presented as a URL-encoded string.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.BooleanisReplyBroadcast()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.voidsetFileIds(List<String> fileIds)Array of new file ids that will be sent with this message.voidsetLinkNames(boolean linkNames)Find and link channel names and usernames.voidsetMetadata(Message.Metadata metadata)JSON object with event_type and event_payload fields, presented as a URL-encoded string.voidsetMetadataAsString(String metadataAsString)JSON object with event_type and event_payload fields, presented as a URL-encoded string.voidsetParse(String parse)Change how messages are treated.voidsetReplyBroadcast(Boolean replyBroadcast)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 Detail
-
isReplyBroadcast
public Boolean isReplyBroadcast()
-
setReplyBroadcast
public void setReplyBroadcast(Boolean replyBroadcast)
-
isAsUser
public Boolean isAsUser()
-
setAsUser
public void setAsUser(Boolean asUser)
-
builder
public static ChatUpdateRequest.ChatUpdateRequestBuilder builder()
-
getToken
public String getToken()
Authentication token. Requires scope: `chat:write`- Specified by:
getTokenin 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.
-
getTs
public String getTs()
Timestamp of the message to be updated.
-
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.
-
getMetadata
public Message.Metadata getMetadata()
JSON object with event_type and event_payload fields, presented as a URL-encoded string. Metadata you post to Slack is accessible to any app or user who is a member of that workspace.
-
getMetadataAsString
public String getMetadataAsString()
JSON object with event_type and event_payload fields, presented as a URL-encoded string. Metadata you post to Slack is accessible to any app or user who is a member of that workspace.
-
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.
-
getFileIds
public List<String> getFileIds()
Array of new file ids that will be sent with this message.
-
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:
setTokenin 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.
-
setTs
public void setTs(String ts)
Timestamp of the message to be updated.
-
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.
-
setMetadata
public void setMetadata(Message.Metadata metadata)
JSON object with event_type and event_payload fields, presented as a URL-encoded string. Metadata you post to Slack is accessible to any app or user who is a member of that workspace.
-
setMetadataAsString
public void setMetadataAsString(String metadataAsString)
JSON object with event_type and event_payload fields, presented as a URL-encoded string. Metadata you post to Slack is accessible to any app or user who is a member of that workspace.
-
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.
-
setFileIds
public void setFileIds(List<String> fileIds)
Array of new file ids that will be sent with this message.
-
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)
-
-