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 DialogSelectElement
build()
DialogSelectElement.DialogSelectElementBuilder
dataSource(DialogDataSourceType dataSource)
Provide the data source type for the Element.DialogSelectElement.DialogSelectElementBuilder
label(String label)
Label displayed to user.DialogSelectElement.DialogSelectElementBuilder
minQueryLength(Integer minQueryLength)
Provide the number of characters that must be typed by a user.DialogSelectElement.DialogSelectElementBuilder
name(String name)
Name of form element.DialogSelectElement.DialogSelectElementBuilder
optional(boolean optional)
Provide true when the form element is not required.DialogSelectElement.DialogSelectElementBuilder
optionGroups(List<DialogOptionGroup> optionGroups)
Provide up to 100 option group element attributes.DialogSelectElement.DialogSelectElementBuilder
options(List<DialogOption> options)
Provide up to 100 option element attributes.DialogSelectElement.DialogSelectElementBuilder
placeholder(String placeholder)
A string displayed as needed to help guide users in completing the element.DialogSelectElement.DialogSelectElementBuilder
selectedOptions(List<DialogOption> selectedOptions)
Provide a default selected value for dynamic select menus with a data_source of type external.String
toString()
DialogSelectElement.DialogSelectElementBuilder
value(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 inDialogOption
s.- 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()
-
-