Package com.slack.api.model.block
Class ImageBlock
java.lang.Object
com.slack.api.model.block.ImageBlock
- All Implemented Interfaces:
LayoutBlock
https://docs.slack.dev/reference/block-kit/blocks/image-block
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionImageBlock(String fallback, String imageUrl, Integer imageWidth, Integer imageHeight, Integer imageBytes, Boolean isAnimated, SlackFileObject slackFile, String altText, PlainTextObject title, String blockId) -
Method Summary
Modifier and TypeMethodDescriptionstatic ImageBlock.ImageBlockBuilderbuilder()protected booleanbooleanReturns the block_id string; the value can be null if the object is manually crafted.getTitle()getType()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) voidsetIsAnimated(Boolean isAnimated) voidsetSlackFile(SlackFileObject slackFile) voidsetTitle(PlainTextObject title) toString()
-
Field Details
-
TYPE
- See Also:
-
-
Constructor Details
-
ImageBlock
public ImageBlock() -
ImageBlock
public ImageBlock(String fallback, String imageUrl, Integer imageWidth, Integer imageHeight, Integer imageBytes, Boolean isAnimated, SlackFileObject slackFile, String altText, PlainTextObject title, String blockId)
-
-
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
-
getIsAnimated
-
getSlackFile
-
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
-
setIsAnimated
-
setSlackFile
-
setAltText
-
setTitle
-
setBlockId
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-