Package com.slack.api.model.block
Class ImageBlock
java.lang.Object
com.slack.api.model.block.ImageBlock
- All Implemented Interfaces:
LayoutBlock
https://api.slack.com/reference/messaging/blocks#image
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
ConstructorDescriptionImageBlock
(String fallback, String imageUrl, Integer imageWidth, Integer imageHeight, Integer imageBytes, String altText, PlainTextObject title, String blockId) -
Method Summary
Modifier and TypeMethodDescriptionstatic ImageBlock.ImageBlockBuilder
builder()
protected boolean
boolean
Returns 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.int
hashCode()
void
setAltText
(String altText) void
setBlockId
(String blockId) void
setFallback
(String fallback) void
setImageBytes
(Integer imageBytes) void
setImageHeight
(Integer imageHeight) void
setImageUrl
(String imageUrl) void
setImageWidth
(Integer imageWidth) void
setTitle
(PlainTextObject title) toString()
-
Field Details
-
TYPE
- See Also:
-
-
Constructor Details
-
ImageBlock
public ImageBlock() -
ImageBlock
-
-
Method Details
-
builder
-
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
-
getFallback
-
getImageUrl
-
getImageWidth
-
getImageHeight
-
getImageBytes
-
getAltText
-
getTitle
-
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
-
setFallback
-
setImageUrl
-
setImageWidth
-
setImageHeight
-
setImageBytes
-
setAltText
-
setTitle
-
setBlockId
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-