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(java.util.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(java.lang.Boolean appUnfurl)Attachment.AttachmentBuilderAttachment.AttachmentBuilder. appUnfurlUrl(java.lang.String appUnfurlUrl)Attachment.AttachmentBuilderAttachment.AttachmentBuilder. authorIcon(java.lang.String authorIcon)A valid URL that displays a small 16x16px image to the left of the author_name text.Attachment.AttachmentBuilderAttachment.AttachmentBuilder. authorId(java.lang.String authorId)Attachment.AttachmentBuilderAttachment.AttachmentBuilder. authorLink(java.lang.String authorLink)A valid URL that will hyperlink the author_name text mentioned above.Attachment.AttachmentBuilderAttachment.AttachmentBuilder. authorName(java.lang.String authorName)Small text used to display the author's name.Attachment.AttachmentBuilderAttachment.AttachmentBuilder. authorSubname(java.lang.String authorSubname)Attachment.AttachmentBuilderAttachment.AttachmentBuilder. blocks(java.util.List<LayoutBlock> blocks)Attachment.AttachmentBuilderAttachment.AttachmentBuilder. botId(java.lang.String botId)static Attachment.AttachmentBuilderAttachment. builder()Attachment.AttachmentBuilderAttachment.AttachmentBuilder. callbackId(java.lang.String callbackId)This is optional value that specifies callback id when there are buttons.Attachment.AttachmentBuilderAttachment.AttachmentBuilder. channelId(java.lang.String channelId)Attachment.AttachmentBuilderAttachment.AttachmentBuilder. channelName(java.lang.String channelName)Attachment.AttachmentBuilderAttachment.AttachmentBuilder. color(java.lang.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(java.lang.String fallback)A plain-text summary of the attachment.Attachment.AttachmentBuilderAttachment.AttachmentBuilder. fields(java.util.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(java.lang.String filename)Attachment.AttachmentBuilderAttachment.AttachmentBuilder. files(java.util.List<File> files)Attachment.AttachmentBuilderAttachment.AttachmentBuilder. footer(java.lang.String footer)Add some brief text to help contextualize and identify an attachment.Attachment.AttachmentBuilderAttachment.AttachmentBuilder. footerIcon(java.lang.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(java.lang.String fromUrl)Attachment.AttachmentBuilderAttachment.AttachmentBuilder. id(java.lang.Integer id)Attachment.AttachmentBuilderAttachment.AttachmentBuilder. imageBytes(java.lang.Integer imageBytes)Attachment.AttachmentBuilderAttachment.AttachmentBuilder. imageHeight(java.lang.Integer imageHeight)Attachment.AttachmentBuilderAttachment.AttachmentBuilder. imageUrl(java.lang.String imageUrl)A valid URL to an image file that will be displayed inside a message attachment.Attachment.AttachmentBuilderAttachment.AttachmentBuilder. imageWidth(java.lang.Integer imageWidth)Attachment.AttachmentBuilderAttachment.AttachmentBuilder. indent(java.lang.Boolean indent)Attachment.AttachmentBuilderAttachment.AttachmentBuilder. metadata(Attachment.AttachmentMetadata metadata)Attachment.AttachmentBuilderAttachment.AttachmentBuilder. mimetype(java.lang.String mimetype)Attachment.AttachmentBuilderAttachment.AttachmentBuilder. mrkdwnIn(java.util.List<java.lang.String> mrkdwnIn)By default, message text in attachments are not formatted.Attachment.AttachmentBuilderAttachment.AttachmentBuilder. msgSubtype(java.lang.String msgSubtype)Attachment.AttachmentBuilderAttachment.AttachmentBuilder. msgUnfurl(java.lang.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(java.lang.String originalUrl)Attachment.AttachmentBuilderAttachment.AttachmentBuilder. pretext(java.lang.String pretext)This is optional text that appears above the message attachment block.Attachment.AttachmentBuilderAttachment.AttachmentBuilder. replyUnfurl(java.lang.Boolean replyUnfurl)Attachment.AttachmentBuilderAttachment.AttachmentBuilder. serviceIcon(java.lang.String serviceIcon)Attachment.AttachmentBuilderAttachment.AttachmentBuilder. serviceName(java.lang.String serviceName)Attachment.AttachmentBuilderAttachment.AttachmentBuilder. serviceUrl(java.lang.String serviceUrl)Attachment.AttachmentBuilderAttachment.AttachmentBuilder. size(java.lang.Integer size)Attachment.AttachmentBuilderAttachment.AttachmentBuilder. text(java.lang.String text)This is the main text in a message attachment, and can contain standard message markup (see details below).Attachment.AttachmentBuilderAttachment.AttachmentBuilder. threadRootUnfurl(java.lang.Boolean threadRootUnfurl)Attachment.AttachmentBuilderAttachment.AttachmentBuilder. thumbHeight(java.lang.Integer thumbHeight)Attachment.AttachmentBuilderAttachment.AttachmentBuilder. thumbUrl(java.lang.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(java.lang.Integer thumbWidth)Attachment.AttachmentBuilderAttachment.AttachmentBuilder. title(java.lang.String title)The title is displayed as larger, bold text near the top of a message attachment.Attachment.AttachmentBuilderAttachment.AttachmentBuilder. titleLink(java.lang.String titleLink)The title is displayed as larger, bold text near the top of a message attachment.Attachment.AttachmentBuilderAttachment.AttachmentBuilder. ts(java.lang.String ts)ts (timestamp) Does your attachment relate to something happening at a specific time?Attachment.AttachmentBuilderAttachment.AttachmentBuilder. url(java.lang.String url)Attachment.AttachmentBuilderAttachment.AttachmentBuilder. videoHtml(Attachment.VideoHtml videoHtml)Attachment.AttachmentBuilderAttachment.AttachmentBuilder. videoHtmlHeight(java.lang.Integer videoHtmlHeight)Attachment.AttachmentBuilderAttachment.AttachmentBuilder. videoHtmlWidth(java.lang.Integer videoHtmlWidth)Attachment.AttachmentBuilderAttachment.AttachmentBuilder. videoUrl(java.lang.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)