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
All Methods Instance Methods Concrete Methods 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 Detail
-
label
public DialogSelectElement.DialogSelectElementBuilder label(String label)
Label displayed to user. Required. No more than 24 characters.- Returns:
this.
-
name
public DialogSelectElement.DialogSelectElementBuilder name(String name)
Name of form element. Required. No more than 300 characters.- Returns:
this.
-
value
public DialogSelectElement.DialogSelectElementBuilder value(String value)
A default value for this field. Must match a value presented inDialogOptions.- Returns:
this.
-
placeholder
public DialogSelectElement.DialogSelectElementBuilder placeholder(String placeholder)
A string displayed as needed to help guide users in completing the element. 150 character maximum.- Returns:
this.
-
optional
public DialogSelectElement.DialogSelectElementBuilder optional(boolean optional)
Provide true when the form element is not required. By default, form elements are required.- Returns:
this.
-
options
public DialogSelectElement.DialogSelectElementBuilder options(List<DialogOption> 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
public DialogSelectElement.DialogSelectElementBuilder minQueryLength(Integer minQueryLength)
Provide the number of characters that must be typed by a user.- Returns:
this.
-
dataSource
public DialogSelectElement.DialogSelectElementBuilder dataSource(DialogDataSourceType dataSource)
Provide the data source type for the Element.- Returns:
this.
-
build
public DialogSelectElement build()
-
-