Class VideoBlock

java.lang.Object
com.slack.api.model.block.VideoBlock
All Implemented Interfaces:
LayoutBlock

public class VideoBlock extends Object implements LayoutBlock
https://docs.slack.dev/reference/block-kit/blocks/video-block
  • Field Details

  • Constructor Details

    • VideoBlock

      public VideoBlock()
    • VideoBlock

      public VideoBlock(PlainTextObject title, String titleUrl, PlainTextObject description, String videoUrl, String altText, String thumbnailUrl, String authorName, String providerName, String providerIconUrl, String blockId)
      Creates a new VideoBlock instance.
      Parameters:
      title - Video title in plain text format. Must be less than 200 characters.
      titleUrl - Hyperlink for the title text. Must correspond to the non-embeddable URL for the video. Must go to an HTTPS URL.
      description - Description for video in plain text format.
      videoUrl - The URL to be embedded. Must match any existing unfurl domains within the app and point to an HTTPS URL. https://docs.slack.dev/messaging/unfurling-links-in-messages
      altText - A tooltip for the video. Required for accessibility
      thumbnailUrl - The thumbnail image URL
      authorName - Author name to be displayed. Must be less than 50 characters.
      providerName - The originating application or domain of the video ex. YouTube
      providerIconUrl - Icon for the video provider - ex. YouTube icon
      blockId -
  • Method Details

    • builder

      public static VideoBlock.VideoBlockBuilder builder()
    • 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://docs.slack.dev/messaging/unfurling-links-in-messages
    • 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://docs.slack.dev/messaging/unfurling-links-in-messages
    • 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)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object