Package com.slack.api.model.dialog
Class DialogTextAreaElement.DialogTextAreaElementBuilder
- java.lang.Object
-
- com.slack.api.model.dialog.DialogTextAreaElement.DialogTextAreaElementBuilder
-
- Enclosing class:
- DialogTextAreaElement
public static class DialogTextAreaElement.DialogTextAreaElementBuilder extends Object
-
-
Method Summary
-
-
-
Method Detail
-
label
public DialogTextAreaElement.DialogTextAreaElementBuilder label(String label)
Label displayed to user. Required. No more than 24 characters.- Returns:
this
.
-
name
public DialogTextAreaElement.DialogTextAreaElementBuilder name(String name)
Name of form element. Required. No more than 300 characters.- Returns:
this
.
-
value
public DialogTextAreaElement.DialogTextAreaElementBuilder value(String value)
A default value for this field. Up to 500 characters.- Returns:
this
.
-
placeholder
public DialogTextAreaElement.DialogTextAreaElementBuilder placeholder(String placeholder)
A string displayed as needed to help guide users in completing the element. 150 character maximum.- Returns:
this
.
-
optional
public DialogTextAreaElement.DialogTextAreaElementBuilder optional(boolean optional)
Providetrue
when the form element is not required. By default, form elements are required.- Returns:
this
.
-
maxLength
public DialogTextAreaElement.DialogTextAreaElementBuilder maxLength(int maxLength)
Maximum input length allowed for element. 0-500 characters. Defaults to 150.- Returns:
this
.
-
minLength
public DialogTextAreaElement.DialogTextAreaElementBuilder minLength(int minLength)
Minimum input length allowed for element. 1-500 characters. Defaults to 0.- Returns:
this
.
-
hint
public DialogTextAreaElement.DialogTextAreaElementBuilder hint(String hint)
Helpful text provided to assist users in answering a question. Up to 150 characters.- Returns:
this
.
-
subtype
public DialogTextAreaElement.DialogTextAreaElementBuilder subtype(DialogSubType subtype)
Subtype for this text type element (e.g. Number)- Returns:
this
.
-
build
public DialogTextAreaElement build()
-
-