Class ImageElement
java.lang.Object
com.slack.api.model.block.element.BlockElement
com.slack.api.model.block.element.ImageElement
- All Implemented Interfaces:
ContextBlockElement
public class ImageElement extends BlockElement implements ContextBlockElement
https://api.slack.com/reference/block-kit/block-elements#image
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImageElement.ImageElementBuilder -
Field Summary
-
Constructor Summary
Constructors Constructor Description ImageElement()ImageElement(String imageUrl, String altText, String fallback, Integer imageWidth, Integer imageHeight, Integer imageBytes) -
Method Summary
Modifier and Type Method Description static ImageElement.ImageElementBuilderbuilder()protected booleancanEqual(Object other)booleanequals(Object o)StringgetAltText()A plain-text summary of the image.StringgetFallback()IntegergetImageBytes()IntegergetImageHeight()StringgetImageUrl()The URL of the image to be displayed.IntegergetImageWidth()StringgetType()inthashCode()voidsetAltText(String altText)A plain-text summary of the image.voidsetFallback(String fallback)voidsetImageBytes(Integer imageBytes)voidsetImageHeight(Integer imageHeight)voidsetImageUrl(String imageUrl)The URL of the image to be displayed.voidsetImageWidth(Integer imageWidth)StringtoString()
-
Field Details
-
TYPE
- See Also:
- Constant Field Values
-
-
Constructor Details
-
ImageElement
public ImageElement() -
ImageElement
-
-
Method Details
-
builder
-
getType
- Specified by:
getTypein interfaceContextBlockElement
-
getImageUrl
The URL of the image to be displayed. -
getAltText
A plain-text summary of the image. This should not contain any markup. -
getFallback
-
getImageWidth
-
getImageHeight
-
getImageBytes
-
setImageUrl
The URL of the image to be displayed. -
setAltText
A plain-text summary of the image. This should not contain any markup. -
setFallback
-
setImageWidth
-
setImageHeight
-
setImageBytes
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-