Class PlainTextObject
- java.lang.Object
-
- com.slack.api.model.block.composition.TextObject
-
- com.slack.api.model.block.composition.PlainTextObject
-
- All Implemented Interfaces:
ContextBlockElement
public class PlainTextObject extends TextObject
https://api.slack.com/reference/messaging/composition-objects#text
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PlainTextObject.PlainTextObjectBuilder
-
Constructor Summary
Constructors Constructor Description PlainTextObject()
PlainTextObject(String text, Boolean emoji)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PlainTextObject.PlainTextObjectBuilder
builder()
protected boolean
canEqual(Object other)
boolean
equals(Object o)
Boolean
getEmoji()
The documentation of the Slack API states that the verbatim field is optional.String
getText()
String
getType()
int
hashCode()
void
setEmoji(Boolean emoji)
The documentation of the Slack API states that the verbatim field is optional.void
setText(String text)
PlainTextObject.PlainTextObjectBuilder
toBuilder()
String
toString()
-
-
-
Field Detail
-
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
builder
public static PlainTextObject.PlainTextObjectBuilder builder()
-
toBuilder
public PlainTextObject.PlainTextObjectBuilder toBuilder()
-
getType
public String getType()
-
getText
public String getText()
-
getEmoji
public Boolean getEmoji()
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)
-
setEmoji
public void setEmoji(Boolean 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)
-
canEqual
protected boolean canEqual(Object other)
-
-