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 java.lang.Object
-
Method Summary
Modifier and Type Method Description DialogSelectElementbuild()DialogSelectElement.DialogSelectElementBuilderdataSource(DialogDataSourceType dataSource)Provide the data source type for the Element.DialogSelectElement.DialogSelectElementBuilderlabel(java.lang.String label)Label displayed to user.DialogSelectElement.DialogSelectElementBuilderminQueryLength(java.lang.Integer minQueryLength)Provide the number of characters that must be typed by a user.DialogSelectElement.DialogSelectElementBuildername(java.lang.String name)Name of form element.DialogSelectElement.DialogSelectElementBuilderoptional(boolean optional)Provide true when the form element is not required.DialogSelectElement.DialogSelectElementBuilderoptionGroups(java.util.List<DialogOptionGroup> optionGroups)Provide up to 100 option group element attributes.DialogSelectElement.DialogSelectElementBuilderoptions(java.util.List<DialogOption> options)Provide up to 100 option element attributes.DialogSelectElement.DialogSelectElementBuilderplaceholder(java.lang.String placeholder)A string displayed as needed to help guide users in completing the element.DialogSelectElement.DialogSelectElementBuilderselectedOptions(java.util.List<DialogOption> selectedOptions)Provide a default selected value for dynamic select menus with a data_source of type external.java.lang.StringtoString()DialogSelectElement.DialogSelectElementBuildervalue(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. 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
public DialogSelectElement.DialogSelectElementBuilder options(java.util.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(java.util.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(java.util.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(java.lang.Integer 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
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-