Package com.slack.api.model.dialog
Class DialogTextElement.DialogTextElementBuilder
java.lang.Object
com.slack.api.model.dialog.DialogTextElement.DialogTextElementBuilder
- Enclosing class:
- DialogTextElement
public static class DialogTextElement.DialogTextElementBuilder extends Object
-
Method Summary
Modifier and Type Method Description DialogTextElementbuild()DialogTextElement.DialogTextElementBuilderhint(String hint)Helpful text provided to assist users in answering a question.DialogTextElement.DialogTextElementBuilderlabel(String label)Label displayed to user.DialogTextElement.DialogTextElementBuildermaxLength(int maxLength)Maximum input length allowed for element.DialogTextElement.DialogTextElementBuilderminLength(int minLength)Minimum input length allowed for element.DialogTextElement.DialogTextElementBuildername(String name)Name of form element.DialogTextElement.DialogTextElementBuilderoptional(boolean optional)Providetruewhen the form element is not required.DialogTextElement.DialogTextElementBuilderplaceholder(String placeholder)A string displayed as needed to help guide users in completing the element.DialogTextElement.DialogTextElementBuildersubtype(DialogSubType subtype)Subtype for this text type element (e.g.StringtoString()DialogTextElement.DialogTextElementBuildervalue(String value)A default value for this field.
-
Method Details
-
label
Label displayed to user. Required. No more than 24 characters.- Returns:
this.
-
name
Name of form element. Required. No more than 300 characters.- Returns:
this.
-
value
A default value for this field. Up to 500 characters.- Returns:
this.
-
placeholder
A string displayed as needed to help guide users in completing the element. 150 character maximum.- Returns:
this.
-
optional
Providetruewhen the form element is not required. By default, form elements are required.- Returns:
this.
-
maxLength
Maximum input length allowed for element. Up to 150 characters. Defaults to 150.- Returns:
this.
-
minLength
Minimum input length allowed for element. Typetext: Up to 150 characters. Defaults to 0.- Returns:
this.
-
hint
Helpful text provided to assist users in answering a question. Up to 150 characters.- Returns:
this.
-
subtype
Subtype for this text type element (e.g. Number)- Returns:
this.
-
build
-
toString
-