Class Field

java.lang.Object
com.slack.api.model.Field

public class Field
extends java.lang.Object
https://api.slack.com/docs/message-attachments
  • Nested Class Summary

    Nested Classes 
    Modifier and Type Class Description
    static class  Field.FieldBuilder  
  • Constructor Summary

    Constructors 
    Constructor Description
    Field()  
    Field​(java.lang.String title, java.lang.String value, boolean valueShortEnough)  
  • Method Summary

    Modifier and Type Method Description
    static Field.FieldBuilder builder()  
    protected boolean canEqual​(java.lang.Object other)  
    boolean equals​(java.lang.Object o)  
    java.lang.String getTitle()
    Shown as a bold heading above the value text.
    java.lang.String getValue()
    The text value of the field.
    int hashCode()  
    boolean isValueShortEnough()
    An optional flag indicating whether the value is short enough to be displayed side-by-side with other values.
    void setTitle​(java.lang.String title)
    Shown as a bold heading above the value text.
    void setValue​(java.lang.String value)
    The text value of the field.
    void setValueShortEnough​(boolean valueShortEnough)
    An optional flag indicating whether the value is short enough to be displayed side-by-side with other values.
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

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

    • Field

      public Field()
    • Field

      public Field​(java.lang.String title, java.lang.String value, boolean valueShortEnough)
  • Method Details

    • builder

      public static Field.FieldBuilder builder()
    • getTitle

      public java.lang.String getTitle()
      Shown as a bold heading above the value text. It cannot contain markup and will be escaped for you.
    • getValue

      public java.lang.String getValue()
      The text value of the field. It may contain standard message markup (see details below) and must be escaped as normal. May be multi-line. https://api.slack.com/docs/message-attachments#message_formatting
    • isValueShortEnough

      public boolean isValueShortEnough()
      An optional flag indicating whether the value is short enough to be displayed side-by-side with other values.
    • setTitle

      public void setTitle​(java.lang.String title)
      Shown as a bold heading above the value text. It cannot contain markup and will be escaped for you.
    • setValue

      public void setValue​(java.lang.String value)
      The text value of the field. It may contain standard message markup (see details below) and must be escaped as normal. May be multi-line. https://api.slack.com/docs/message-attachments#message_formatting
    • setValueShortEnough

      public void setValueShortEnough​(boolean valueShortEnough)
      An optional flag indicating whether the value is short enough to be displayed side-by-side with other values.
    • 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
    • toString

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