Class ChatScheduleMessageRequest
java.lang.Object
com.slack.api.methods.request.chat.ChatScheduleMessageRequest
- All Implemented Interfaces:
SlackApiRequest
public class ChatScheduleMessageRequest extends java.lang.Object implements SlackApiRequest
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classChatScheduleMessageRequest.ChatScheduleMessageRequestBuilder -
Method Summary
Modifier and Type Method Description static ChatScheduleMessageRequest.ChatScheduleMessageRequestBuilderbuilder()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 DM channel to send message to.java.lang.StringgetParse()Change how messages are treated.java.lang.IntegergetPostAt()Unix EPOCH timestamp of time in future to send the message.java.lang.StringgetText()Text of the message to send.java.lang.StringgetThreadTs()Provide another message's ts value to make this message a reply.java.lang.StringgetToken()Authentication token.inthashCode()java.lang.BooleanisAsUser()booleanisLinkNames()Find and link channel names and usernames.booleanisReplyBroadcast()Used in conjunction with thread_ts and indicates whether reply should be made visible to everyone in the channel or conversation.booleanisUnfurlLinks()Pass true to enable unfurling of primarily text-based content.booleanisUnfurlMedia()Pass false to disable unfurling of media content.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 DM channel to send message to.voidsetLinkNames(boolean linkNames)Find and link channel names and usernames.voidsetParse(java.lang.String parse)Change how messages are treated.voidsetPostAt(java.lang.Integer postAt)Unix EPOCH timestamp of time in future to send the message.voidsetReplyBroadcast(boolean replyBroadcast)Used in conjunction with thread_ts and indicates whether reply should be made visible to everyone in the channel or conversation.voidsetText(java.lang.String text)Text of the message to send.voidsetThreadTs(java.lang.String threadTs)Provide another message's ts value to make this message a reply.voidsetToken(java.lang.String token)Authentication token.voidsetUnfurlLinks(boolean unfurlLinks)Pass true to enable unfurling of primarily text-based content.voidsetUnfurlMedia(boolean unfurlMedia)Pass false to disable unfurling of media content.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 DM channel to send message to. Can be an encoded ID, or a name. See below for more details. -
getPostAt
public java.lang.Integer getPostAt()Unix EPOCH timestamp of time in future to send the message. -
getText
public java.lang.String getText()Text of the message to send. See below for an explanation of formatting. This field is usually required, unless you're providing only attachments instead. Provide no more than 40,000 characters or risk truncation. -
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. -
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. -
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. -
isReplyBroadcast
public boolean isReplyBroadcast()Used in conjunction with thread_ts and indicates whether reply should be made visible to everyone in the channel or conversation. Defaults to false. -
getThreadTs
public java.lang.String getThreadTs()Provide another message's ts value to make this message a reply. Avoid using a reply's ts value; use its parent instead. -
isUnfurlLinks
public boolean isUnfurlLinks()Pass true to enable unfurling of primarily text-based content. -
isUnfurlMedia
public boolean isUnfurlMedia()Pass false to disable unfurling of media content. -
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 DM channel to send message to. Can be an encoded ID, or a name. See below for more details. -
setPostAt
public void setPostAt(java.lang.Integer postAt)Unix EPOCH timestamp of time in future to send the message. -
setText
public void setText(java.lang.String text)Text of the message to send. See below for an explanation of formatting. This field is usually required, unless you're providing only attachments instead. Provide no more than 40,000 characters or risk truncation. -
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. -
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. -
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. -
setReplyBroadcast
public 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. Defaults to false. -
setThreadTs
public void setThreadTs(java.lang.String threadTs)Provide another message's ts value to make this message a reply. Avoid using a reply's ts value; use its parent instead. -
setUnfurlLinks
public void setUnfurlLinks(boolean unfurlLinks)Pass true to enable unfurling of primarily text-based content. -
setUnfurlMedia
public void setUnfurlMedia(boolean unfurlMedia)Pass false to disable unfurling of media content. -
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
-