Package com.slack.api.model
Class Field
java.lang.Object
com.slack.api.model.Field
public class Field extends Object
https://api.slack.com/docs/message-attachments
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classField.FieldBuilder -
Constructor Summary
-
Method Summary
Modifier and Type Method Description static Field.FieldBuilderbuilder()protected booleancanEqual(Object other)booleanequals(Object o)StringgetTitle()Shown as a bold heading above the value text.StringgetValue()The text value of the field.inthashCode()booleanisValueShortEnough()An optional flag indicating whether the value is short enough to be displayed side-by-side with other values.voidsetTitle(String title)Shown as a bold heading above the value text.voidsetValue(String value)The text value of the field.voidsetValueShortEnough(boolean valueShortEnough)An optional flag indicating whether the value is short enough to be displayed side-by-side with other values.StringtoString()
-
Constructor Details
-
Method Details
-
builder
-
getTitle
Shown as a bold heading above the value text. It cannot contain markup and will be escaped for you. -
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
Shown as a bold heading above the value text. It cannot contain markup and will be escaped for you. -
setValue
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
-
canEqual
-
hashCode
public int hashCode() -
toString
-