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 class
ImageBlock.ImageBlockBuilder
-
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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImageBlock.ImageBlockBuilder
builder()
protected boolean
canEqual(Object other)
boolean
equals(Object o)
String
getAltText()
String
getBlockId()
Returns the block_id string; the value can be null if the object is manually crafted.String
getFallback()
Integer
getImageBytes()
Integer
getImageHeight()
String
getImageUrl()
Integer
getImageWidth()
PlainTextObject
getTitle()
String
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)
String
toString()
-
-
-
Field Detail
-
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
builder
public static ImageBlock.ImageBlockBuilder 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
-
getFallback
public String getFallback()
-
getImageUrl
public String getImageUrl()
-
getImageWidth
public Integer getImageWidth()
-
getImageHeight
public Integer getImageHeight()
-
getImageBytes
public Integer getImageBytes()
-
getAltText
public String getAltText()
-
getTitle
public PlainTextObject getTitle()
-
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
-
setFallback
public void setFallback(String fallback)
-
setImageUrl
public void setImageUrl(String imageUrl)
-
setImageWidth
public void setImageWidth(Integer imageWidth)
-
setImageHeight
public void setImageHeight(Integer imageHeight)
-
setImageBytes
public void setImageBytes(Integer imageBytes)
-
setAltText
public void setAltText(String altText)
-
setTitle
public void setTitle(PlainTextObject title)
-
setBlockId
public void setBlockId(String blockId)
-
canEqual
protected boolean canEqual(Object other)
-
-