Package com.slack.api.model.block
Class VideoBlock
java.lang.Object
com.slack.api.model.block.VideoBlock
- All Implemented Interfaces:
LayoutBlock
https://docs.slack.dev/reference/block-kit/blocks/video-block
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionVideoBlock(PlainTextObject title, String titleUrl, PlainTextObject description, String videoUrl, String altText, String thumbnailUrl, String authorName, String providerName, String providerIconUrl, String blockId) Creates a newVideoBlockinstance. -
Method Summary
Modifier and TypeMethodDescriptionstatic VideoBlock.VideoBlockBuilderbuilder()protected booleanbooleanA tooltip for the video.Author name to be displayed.Returns the block_id string; the value can be null if the object is manually crafted.Description for video in plain text format.Icon for the video provider - ex.The originating application or domain of the video ex.The thumbnail image URLgetTitle()Video title in plain text format.Hyperlink for the title text.getType()Determines the type of layout block, e.g.The URL to be embedded.inthashCode()voidsetAltText(String altText) A tooltip for the video.voidsetAuthorName(String authorName) Author name to be displayed.voidsetBlockId(String blockId) voidsetDescription(PlainTextObject description) Description for video in plain text format.voidsetProviderIconUrl(String providerIconUrl) Icon for the video provider - ex.voidsetProviderName(String providerName) The originating application or domain of the video ex.voidsetThumbnailUrl(String thumbnailUrl) The thumbnail image URLvoidsetTitle(PlainTextObject title) Video title in plain text format.voidsetTitleUrl(String titleUrl) Hyperlink for the title text.voidsetVideoUrl(String videoUrl) The URL to be embedded.toString()
-
Field Details
-
TYPE
- See Also:
-
-
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 newVideoBlockinstance.- 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-messagesaltText- A tooltip for the video. Required for accessibilitythumbnailUrl- The thumbnail image URLauthorName- Author name to be displayed. Must be less than 50 characters.providerName- The originating application or domain of the video ex. YouTubeproviderIconUrl- Icon for the video provider - ex. YouTube iconblockId-
-
-
Method Details
-
builder
-
getType
Description copied from interface:LayoutBlockDetermines the type of layout block, e.g. section, divider, context, actions and image.- Specified by:
getTypein interfaceLayoutBlock
-
getTitle
Video title in plain text format. Must be less than 200 characters. -
getTitleUrl
Hyperlink for the title text. Must correspond to the non-embeddable URL for the video. Must go to an HTTPS URL. -
getDescription
Description for video in plain text format. -
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
A tooltip for the video. Required for accessibility -
getThumbnailUrl
The thumbnail image URL -
getAuthorName
Author name to be displayed. Must be less than 50 characters. -
getProviderName
The originating application or domain of the video ex. YouTube -
getProviderIconUrl
Icon for the video provider - ex. YouTube icon -
getBlockId
Description copied from interface:LayoutBlockReturns the block_id string; the value can be null if the object is manually crafted.- Specified by:
getBlockIdin interfaceLayoutBlock
-
setTitle
Video title in plain text format. Must be less than 200 characters. -
setTitleUrl
Hyperlink for the title text. Must correspond to the non-embeddable URL for the video. Must go to an HTTPS URL. -
setDescription
Description for video in plain text format. -
setVideoUrl
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
A tooltip for the video. Required for accessibility -
setThumbnailUrl
The thumbnail image URL -
setAuthorName
Author name to be displayed. Must be less than 50 characters. -
setProviderName
The originating application or domain of the video ex. YouTube -
setProviderIconUrl
Icon for the video provider - ex. YouTube icon -
setBlockId
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-