Class MarkdownTextObject.MarkdownTextObjectBuilder
- java.lang.Object
-
- com.slack.api.model.block.composition.MarkdownTextObject.MarkdownTextObjectBuilder
-
- Enclosing class:
- MarkdownTextObject
public static class MarkdownTextObject.MarkdownTextObjectBuilder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MarkdownTextObject
build()
MarkdownTextObject.MarkdownTextObjectBuilder
text(String text)
String
toString()
MarkdownTextObject.MarkdownTextObjectBuilder
verbatim(Boolean verbatim)
The documentation of the Slack API states that the verbatim field is optional.
-
-
-
Method Detail
-
text
public MarkdownTextObject.MarkdownTextObjectBuilder text(String text)
- Returns:
this
.
-
verbatim
public MarkdownTextObject.MarkdownTextObjectBuilder verbatim(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)- Returns:
this
.
-
build
public MarkdownTextObject build()
-
-