Package com.slack.api.model.block
Class VideoBlock
- java.lang.Object
-
- com.slack.api.model.block.VideoBlock
-
- All Implemented Interfaces:
LayoutBlock
public class VideoBlock extends Object implements LayoutBlock
https://api.slack.com/reference/block-kit/blocks#video
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VideoBlock.VideoBlockBuilder
-
Constructor Summary
Constructors Constructor Description VideoBlock()
VideoBlock(PlainTextObject title, String titleUrl, PlainTextObject description, String videoUrl, String altText, String thumbnailUrl, String authorName, String providerName, String providerIconUrl, String blockId)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VideoBlock.VideoBlockBuilder
builder()
protected boolean
canEqual(Object other)
boolean
equals(Object o)
String
getAltText()
A tooltip for the video.String
getAuthorName()
Author name to be displayed.String
getBlockId()
Returns the block_id string; the value can be null if the object is manually crafted.PlainTextObject
getDescription()
Description for video in plain text format.String
getProviderIconUrl()
Icon for the video provider - ex.String
getProviderName()
The originating application or domain of the video ex.String
getThumbnailUrl()
The thumbnail image URLPlainTextObject
getTitle()
Video title in plain text format.String
getTitleUrl()
Hyperlink for the title text.String
getType()
Determines the type of layout block, e.g.String
getVideoUrl()
The URL to be embedded.int
hashCode()
void
setAltText(String altText)
A tooltip for the video.void
setAuthorName(String authorName)
Author name to be displayed.void
setBlockId(String blockId)
void
setDescription(PlainTextObject description)
Description for video in plain text format.void
setProviderIconUrl(String providerIconUrl)
Icon for the video provider - ex.void
setProviderName(String providerName)
The originating application or domain of the video ex.void
setThumbnailUrl(String thumbnailUrl)
The thumbnail image URLvoid
setTitle(PlainTextObject title)
Video title in plain text format.void
setTitleUrl(String titleUrl)
Hyperlink for the title text.void
setVideoUrl(String videoUrl)
The URL to be embedded.String
toString()
-
-
-
Field Detail
-
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
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)
-
-
Method Detail
-
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 interfaceLayoutBlock
-
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 interfaceLayoutBlock
-
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)
-
-