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 java.lang.Object
-
Method Summary
Modifier and Type Method Description DialogTextAreaElementbuild()DialogTextAreaElement.DialogTextAreaElementBuilderhint(java.lang.String hint)Helpful text provided to assist users in answering a question.DialogTextAreaElement.DialogTextAreaElementBuilderlabel(java.lang.String label)Label displayed to user.DialogTextAreaElement.DialogTextAreaElementBuildermaxLength(int maxLength)Maximum input length allowed for element.DialogTextAreaElement.DialogTextAreaElementBuilderminLength(int minLength)Minimum input length allowed for element.DialogTextAreaElement.DialogTextAreaElementBuildername(java.lang.String name)Name of form element.DialogTextAreaElement.DialogTextAreaElementBuilderoptional(boolean optional)Providetruewhen the form element is not required.DialogTextAreaElement.DialogTextAreaElementBuilderplaceholder(java.lang.String placeholder)A string displayed as needed to help guide users in completing the element.DialogTextAreaElement.DialogTextAreaElementBuildersubtype(DialogSubType subtype)Subtype for this text type element (e.g.java.lang.StringtoString()DialogTextAreaElement.DialogTextAreaElementBuildervalue(java.lang.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
public DialogTextAreaElement.DialogTextAreaElementBuilder placeholder(java.lang.String 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. 0-500 characters. Defaults to 150.- Returns:
this.
-
minLength
Minimum input length allowed for element. 1-500 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
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-