Package com.slack.api.model
Class Field
java.lang.Object
com.slack.api.model.Field
https://docs.slack.dev/legacy/legacy-messaging/legacy-secondary-message-attachments
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Field.FieldBuilderbuilder()protected booleanbooleangetTitle()Shown as a bold heading above the value text.getValue()The text value of the field.inthashCode()booleanAn optional flag indicating whether the value is short enough to be displayed side-by-side with other values.voidShown as a bold heading above the value text.voidThe 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.toString()
-
Constructor Details
-
Field
public Field() -
Field
Creates a newFieldinstance.- Parameters:
title- Shown as a bold heading above the value text. It cannot contain markup and will be escaped for you.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://docs.slack.dev/legacy/legacy-messaging/legacy-secondary-message-attachmentsvalueShortEnough- An optional flag indicating whether the value is short enough to be displayed side-by-side with other values.
-
-
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://docs.slack.dev/legacy/legacy-messaging/legacy-secondary-message-attachments -
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://docs.slack.dev/legacy/legacy-messaging/legacy-secondary-message-attachments -
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
-