Class MarkdownTextObject
- java.lang.Object
-
- com.slack.api.model.block.composition.TextObject
-
- com.slack.api.model.block.composition.MarkdownTextObject
-
- All Implemented Interfaces:
ContextBlockElement
public class MarkdownTextObject extends TextObject
https://api.slack.com/reference/messaging/composition-objects#text
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMarkdownTextObject.MarkdownTextObjectBuilder
-
Constructor Summary
Constructors Constructor Description MarkdownTextObject()MarkdownTextObject(String text, Boolean verbatim)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MarkdownTextObject.MarkdownTextObjectBuilderbuilder()protected booleancanEqual(Object other)booleanequals(Object o)StringgetText()StringgetType()BooleangetVerbatim()The documentation of the Slack API states that the verbatim field is optional.inthashCode()voidsetText(String text)voidsetVerbatim(Boolean verbatim)The documentation of the Slack API states that the verbatim field is optional.StringtoString()
-
-
-
Field Detail
-
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
builder
public static MarkdownTextObject.MarkdownTextObjectBuilder builder()
-
getType
public String getType()
-
getText
public String getText()
-
getVerbatim
public Boolean getVerbatim()
The documentation of the Slack API states that the verbatim field is optional. The API examples always render the emoji field (as true, but that is its default value) -- so that is not helpful. I picked the Boolean because basically you have 3 possible states: - true - false - not present (and therefore not rendered in the resulting JSON sent to the Slack API)
-
setText
public void setText(String text)
-
setVerbatim
public void setVerbatim(Boolean verbatim)
The documentation of the Slack API states that the verbatim field is optional. The API examples always render the emoji field (as true, but that is its default value) -- so that is not helpful. I picked the Boolean because basically you have 3 possible states: - true - false - not present (and therefore not rendered in the resulting JSON sent to the Slack API)
-
canEqual
protected boolean canEqual(Object other)
-
-