Class PlainTextObject.PlainTextObjectBuilder
java.lang.Object
com.slack.api.model.block.composition.PlainTextObject.PlainTextObjectBuilder
- Enclosing class:
- PlainTextObject
public static class PlainTextObject.PlainTextObjectBuilder
extends java.lang.Object
-
Method Summary
Modifier and Type Method Description PlainTextObjectbuild()PlainTextObject.PlainTextObjectBuilderemoji(java.lang.Boolean emoji)The documentation of the Slack API states that the verbatim field is optional.PlainTextObject.PlainTextObjectBuildertext(java.lang.String text)java.lang.StringtoString()
-
Method Details
-
text
- Returns:
this.
-
emoji
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
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-