Uses of Class
com.slack.api.model.Attachment.AttachmentBuilder
| Package | Description |
|---|---|
| com.slack.api.model |
The classes representing the Slack core objects such as conversations, messages, users, blocks, and surfaces.
|
-
Uses of Attachment.AttachmentBuilder in com.slack.api.model
Methods in com.slack.api.model that return Attachment.AttachmentBuilder Modifier and Type Method Description Attachment.AttachmentBuilderAttachment.AttachmentBuilder. actions(List<Action> actions)Actions are defined as an array, and hashes contained within it will be displayed in as buttons in the message attachment.Attachment.AttachmentBuilderAttachment.AttachmentBuilder. appUnfurl(Boolean appUnfurl)Attachment.AttachmentBuilderAttachment.AttachmentBuilder. appUnfurlUrl(String appUnfurlUrl)Attachment.AttachmentBuilderAttachment.AttachmentBuilder. authorIcon(String authorIcon)A valid URL that displays a small 16x16px image to the left of the author_name text.Attachment.AttachmentBuilderAttachment.AttachmentBuilder. authorId(String authorId)Attachment.AttachmentBuilderAttachment.AttachmentBuilder. authorLink(String authorLink)A valid URL that will hyperlink the author_name text mentioned above.Attachment.AttachmentBuilderAttachment.AttachmentBuilder. authorName(String authorName)Small text used to display the author's name.Attachment.AttachmentBuilderAttachment.AttachmentBuilder. authorSubname(String authorSubname)Attachment.AttachmentBuilderAttachment.AttachmentBuilder. blocks(List<LayoutBlock> blocks)Attachment.AttachmentBuilderAttachment.AttachmentBuilder. botId(String botId)static Attachment.AttachmentBuilderAttachment. builder()Attachment.AttachmentBuilderAttachment.AttachmentBuilder. callbackId(String callbackId)This is optional value that specifies callback id when there are buttons.Attachment.AttachmentBuilderAttachment.AttachmentBuilder. channelId(String channelId)Attachment.AttachmentBuilderAttachment.AttachmentBuilder. channelName(String channelName)Attachment.AttachmentBuilderAttachment.AttachmentBuilder. color(String color)Like traffic signals, color-coding messages can quickly communicate intent and help separate them from the flow of other messages in the timeline.Attachment.AttachmentBuilderAttachment.AttachmentBuilder. fallback(String fallback)A plain-text summary of the attachment.Attachment.AttachmentBuilderAttachment.AttachmentBuilder. fields(List<Field> fields)Fields are defined as an array, and hashes contained within it will be displayed in a table inside the message attachment.Attachment.AttachmentBuilderAttachment.AttachmentBuilder. filename(String filename)Attachment.AttachmentBuilderAttachment.AttachmentBuilder. files(List<File> files)Attachment.AttachmentBuilderAttachment.AttachmentBuilder. footer(String footer)Add some brief text to help contextualize and identify an attachment.Attachment.AttachmentBuilderAttachment.AttachmentBuilder. footerIcon(String footerIcon)To render a small icon beside your footer text, provide a publicly accessible URL string in the footer_icon field.Attachment.AttachmentBuilderAttachment.AttachmentBuilder. fromUrl(String fromUrl)Attachment.AttachmentBuilderAttachment.AttachmentBuilder. id(Integer id)Attachment.AttachmentBuilderAttachment.AttachmentBuilder. imageBytes(Integer imageBytes)Attachment.AttachmentBuilderAttachment.AttachmentBuilder. imageHeight(Integer imageHeight)Attachment.AttachmentBuilderAttachment.AttachmentBuilder. imageUrl(String imageUrl)A valid URL to an image file that will be displayed inside a message attachment.Attachment.AttachmentBuilderAttachment.AttachmentBuilder. imageWidth(Integer imageWidth)Attachment.AttachmentBuilderAttachment.AttachmentBuilder. indent(Boolean indent)Attachment.AttachmentBuilderAttachment.AttachmentBuilder. metadata(Attachment.AttachmentMetadata metadata)Attachment.AttachmentBuilderAttachment.AttachmentBuilder. mimetype(String mimetype)Attachment.AttachmentBuilderAttachment.AttachmentBuilder. mrkdwnIn(List<String> mrkdwnIn)By default, message text in attachments are not formatted.Attachment.AttachmentBuilderAttachment.AttachmentBuilder. msgSubtype(String msgSubtype)Attachment.AttachmentBuilderAttachment.AttachmentBuilder. msgUnfurl(Boolean msgUnfurl)NOTE: The the following Booleans (is_msg_unfurl, is_reply_unfurl, is_thread_root_unfurl, is_app_unfurl) default to null intentionally to support block attachments.Attachment.AttachmentBuilderAttachment.AttachmentBuilder. originalUrl(String originalUrl)Attachment.AttachmentBuilderAttachment.AttachmentBuilder. pretext(String pretext)This is optional text that appears above the message attachment block.Attachment.AttachmentBuilderAttachment.AttachmentBuilder. replyUnfurl(Boolean replyUnfurl)Attachment.AttachmentBuilderAttachment.AttachmentBuilder. serviceIcon(String serviceIcon)Attachment.AttachmentBuilderAttachment.AttachmentBuilder. serviceName(String serviceName)Attachment.AttachmentBuilderAttachment.AttachmentBuilder. serviceUrl(String serviceUrl)Attachment.AttachmentBuilderAttachment.AttachmentBuilder. size(Integer size)Attachment.AttachmentBuilderAttachment.AttachmentBuilder. text(String text)This is the main text in a message attachment, and can contain standard message markup (see details below).Attachment.AttachmentBuilderAttachment.AttachmentBuilder. threadRootUnfurl(Boolean threadRootUnfurl)Attachment.AttachmentBuilderAttachment.AttachmentBuilder. thumbHeight(Integer thumbHeight)Attachment.AttachmentBuilderAttachment.AttachmentBuilder. thumbUrl(String thumbUrl)A valid URL to an image file that will be displayed as a thumbnail on the right side of a message attachment.Attachment.AttachmentBuilderAttachment.AttachmentBuilder. thumbWidth(Integer thumbWidth)Attachment.AttachmentBuilderAttachment.AttachmentBuilder. title(String title)The title is displayed as larger, bold text near the top of a message attachment.Attachment.AttachmentBuilderAttachment.AttachmentBuilder. titleLink(String titleLink)The title is displayed as larger, bold text near the top of a message attachment.Attachment.AttachmentBuilderAttachment.AttachmentBuilder. ts(String ts)ts (timestamp) Does your attachment relate to something happening at a specific time?Attachment.AttachmentBuilderAttachment.AttachmentBuilder. url(String url)Attachment.AttachmentBuilderAttachment.AttachmentBuilder. videoHtml(Attachment.VideoHtml videoHtml)Attachment.AttachmentBuilderAttachment.AttachmentBuilder. videoHtmlHeight(Integer videoHtmlHeight)Attachment.AttachmentBuilderAttachment.AttachmentBuilder. videoHtmlWidth(Integer videoHtmlWidth)Attachment.AttachmentBuilderAttachment.AttachmentBuilder. videoUrl(String videoUrl)Method parameters in com.slack.api.model with type arguments of type Attachment.AttachmentBuilder Modifier and Type Method Description static AttachmentAttachments. attachment(ModelConfigurator<Attachment.AttachmentBuilder> configurator)