Class Field.FieldBuilder

java.lang.Object
com.slack.api.model.Field.FieldBuilder
Enclosing class:
Field

public static class Field.FieldBuilder
extends java.lang.Object
  • Method Summary

    Modifier and Type Method Description
    Field build()  
    Field.FieldBuilder title​(java.lang.String title)
    Shown as a bold heading above the value text.
    java.lang.String toString()  
    Field.FieldBuilder value​(java.lang.String value)
    The text value of the field.
    Field.FieldBuilder valueShortEnough​(boolean valueShortEnough)
    An optional flag indicating whether the value is short enough to be displayed side-by-side with other values.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Method Details

    • title

      public Field.FieldBuilder title​(java.lang.String title)
      Shown as a bold heading above the value text. It cannot contain markup and will be escaped for you.
      Returns:
      this.
    • value

      public Field.FieldBuilder value​(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
      Returns:
      this.
    • valueShortEnough

      public Field.FieldBuilder valueShortEnough​(boolean valueShortEnough)
      An optional flag indicating whether the value is short enough to be displayed side-by-side with other values.
      Returns:
      this.
    • build

      public Field build()
    • toString

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