Package com.slack.api.model.dialog
Class DialogSelectElement.DialogSelectElementBuilder
java.lang.Object
com.slack.api.model.dialog.DialogSelectElement.DialogSelectElementBuilder
- Enclosing class:
- DialogSelectElement
public static class DialogSelectElement.DialogSelectElementBuilder extends Object
-
Method Summary
Modifier and Type Method Description DialogSelectElementbuild()DialogSelectElement.DialogSelectElementBuilderdataSource(DialogDataSourceType dataSource)Provide the data source type for the Element.DialogSelectElement.DialogSelectElementBuilderlabel(String label)Label displayed to user.DialogSelectElement.DialogSelectElementBuilderminQueryLength(Integer minQueryLength)Provide the number of characters that must be typed by a user.DialogSelectElement.DialogSelectElementBuildername(String name)Name of form element.DialogSelectElement.DialogSelectElementBuilderoptional(boolean optional)Provide true when the form element is not required.DialogSelectElement.DialogSelectElementBuilderoptionGroups(List<DialogOptionGroup> optionGroups)Provide up to 100 option group element attributes.DialogSelectElement.DialogSelectElementBuilderoptions(List<DialogOption> options)Provide up to 100 option element attributes.DialogSelectElement.DialogSelectElementBuilderplaceholder(String placeholder)A string displayed as needed to help guide users in completing the element.DialogSelectElement.DialogSelectElementBuilderselectedOptions(List<DialogOption> selectedOptions)Provide a default selected value for dynamic select menus with a data_source of type external.StringtoString()DialogSelectElement.DialogSelectElementBuildervalue(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. Must match a value presented inDialogOptions.- Returns:
this.
-
placeholder
A string displayed as needed to help guide users in completing the element. 150 character maximum.- Returns:
this.
-
optional
Provide true when the form element is not required. By default, form elements are required.- Returns:
this.
-
options
Provide up to 100 option element attributes. Either options or option_groups is required for the static and external.- Returns:
this.
-
selectedOptions
public DialogSelectElement.DialogSelectElementBuilder selectedOptions(List<DialogOption> selectedOptions)Provide a default selected value for dynamic select menus with a data_source of type external.- Returns:
this.
-
optionGroups
public DialogSelectElement.DialogSelectElementBuilder optionGroups(List<DialogOptionGroup> optionGroups)Provide up to 100 option group element attributes. Either options or option_groups is required for the static and external.- Returns:
this.
-
minQueryLength
Provide the number of characters that must be typed by a user.- Returns:
this.
-
dataSource
Provide the data source type for the Element.- Returns:
this.
-
build
-
toString
-