Package com.slack.api.model.block
Class ImageBlock
java.lang.Object
com.slack.api.model.block.ImageBlock
- All Implemented Interfaces:
LayoutBlock
public class ImageBlock extends Object implements LayoutBlock
https://api.slack.com/reference/messaging/blocks#image
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImageBlock.ImageBlockBuilder -
Field Summary
-
Constructor Summary
Constructors Constructor Description ImageBlock()ImageBlock(String fallback, String imageUrl, Integer imageWidth, Integer imageHeight, Integer imageBytes, String altText, PlainTextObject title, String blockId) -
Method Summary
Modifier and Type Method Description static ImageBlock.ImageBlockBuilderbuilder()protected booleancanEqual(Object other)booleanequals(Object o)StringgetAltText()StringgetBlockId()Returns the block_id string; the value can be null if the object is manually crafted.StringgetFallback()IntegergetImageBytes()IntegergetImageHeight()StringgetImageUrl()IntegergetImageWidth()PlainTextObjectgetTitle()StringgetType()Determines the type of layout block, e.g.inthashCode()voidsetAltText(String altText)voidsetBlockId(String blockId)voidsetFallback(String fallback)voidsetImageBytes(Integer imageBytes)voidsetImageHeight(Integer imageHeight)voidsetImageUrl(String imageUrl)voidsetImageWidth(Integer imageWidth)voidsetTitle(PlainTextObject title)StringtoString()
-
Field Details
-
TYPE
- See Also:
- Constant Field Values
-
-
Constructor Details
-
ImageBlock
public ImageBlock() -
ImageBlock
-
-
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
-
getFallback
-
getImageUrl
-
getImageWidth
-
getImageHeight
-
getImageBytes
-
getAltText
-
getTitle
-
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
-
setFallback
-
setImageUrl
-
setImageWidth
-
setImageHeight
-
setImageBytes
-
setAltText
-
setTitle
-
setBlockId
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-