Class VideoBlock

  • All Implemented Interfaces:
    LayoutBlock

    public class VideoBlock
    extends Object
    implements LayoutBlock
    https://api.slack.com/reference/block-kit/blocks#video
    • Method Detail

      • getType

        public String getType()
        Description copied from interface: LayoutBlock
        Determines the type of layout block, e.g. section, divider, context, actions and image.
        Specified by:
        getType in interface LayoutBlock
      • getTitle

        public PlainTextObject getTitle()
        Video title in plain text format. Must be less than 200 characters.
      • getTitleUrl

        public String getTitleUrl()
        Hyperlink for the title text. Must correspond to the non-embeddable URL for the video. Must go to an HTTPS URL.
      • getDescription

        public PlainTextObject getDescription()
        Description for video in plain text format.
      • getVideoUrl

        public String getVideoUrl()
        The URL to be embedded. Must match any existing unfurl domains within the app and point to an HTTPS URL. https://api.slack.com/reference/messaging/link-unfurling#configuring_domains
      • getAltText

        public String getAltText()
        A tooltip for the video. Required for accessibility
      • getThumbnailUrl

        public String getThumbnailUrl()
        The thumbnail image URL
      • getAuthorName

        public String getAuthorName()
        Author name to be displayed. Must be less than 50 characters.
      • getProviderName

        public String getProviderName()
        The originating application or domain of the video ex. YouTube
      • getProviderIconUrl

        public String getProviderIconUrl()
        Icon for the video provider - ex. YouTube icon
      • getBlockId

        public String getBlockId()
        Description copied from interface: LayoutBlock
        Returns the block_id string; the value can be null if the object is manually crafted.
        Specified by:
        getBlockId in interface LayoutBlock
      • setTitle

        public void setTitle​(PlainTextObject title)
        Video title in plain text format. Must be less than 200 characters.
      • setTitleUrl

        public void setTitleUrl​(String titleUrl)
        Hyperlink for the title text. Must correspond to the non-embeddable URL for the video. Must go to an HTTPS URL.
      • setDescription

        public void setDescription​(PlainTextObject description)
        Description for video in plain text format.
      • setVideoUrl

        public void setVideoUrl​(String videoUrl)
        The URL to be embedded. Must match any existing unfurl domains within the app and point to an HTTPS URL. https://api.slack.com/reference/messaging/link-unfurling#configuring_domains
      • setAltText

        public void setAltText​(String altText)
        A tooltip for the video. Required for accessibility
      • setThumbnailUrl

        public void setThumbnailUrl​(String thumbnailUrl)
        The thumbnail image URL
      • setAuthorName

        public void setAuthorName​(String authorName)
        Author name to be displayed. Must be less than 50 characters.
      • setProviderName

        public void setProviderName​(String providerName)
        The originating application or domain of the video ex. YouTube
      • setProviderIconUrl

        public void setProviderIconUrl​(String providerIconUrl)
        Icon for the video provider - ex. YouTube icon
      • setBlockId

        public void setBlockId​(String blockId)
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object