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  
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static java.lang.String TYPE  
  • Constructor Summary

    Constructors 
    Constructor Description
    PlainTextObject()  
    PlainTextObject​(java.lang.String text, java.lang.Boolean emoji)  
  • Method Summary

    Modifier and Type Method Description
    static PlainTextObject.PlainTextObjectBuilder builder()  
    protected boolean canEqual​(java.lang.Object other)  
    boolean equals​(java.lang.Object o)  
    java.lang.Boolean getEmoji()
    The documentation of the Slack API states that the verbatim field is optional.
    java.lang.String getText()  
    java.lang.String getType()  
    int hashCode()  
    void setEmoji​(java.lang.Boolean emoji)
    The documentation of the Slack API states that the verbatim field is optional.
    void setText​(java.lang.String text)  
    PlainTextObject.PlainTextObjectBuilder toBuilder()  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • builder

      public static PlainTextObject.PlainTextObjectBuilder builder()
    • toBuilder

    • getType

      public java.lang.String getType()
    • getText

      public java.lang.String getText()
      Specified by:
      getText in class TextObject
    • getEmoji

      public java.lang.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​(java.lang.String text)
    • setEmoji

      public void setEmoji​(java.lang.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)
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • equals

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object
    • canEqual

      protected boolean canEqual​(java.lang.Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object