Class MultiExternalSelectElement.MultiExternalSelectElementBuilder
java.lang.Object
com.slack.api.model.block.element.MultiExternalSelectElement.MultiExternalSelectElementBuilder
- Enclosing class:
- MultiExternalSelectElement
public static class MultiExternalSelectElement.MultiExternalSelectElementBuilder
extends java.lang.Object
-
Method Summary
Modifier and Type Method Description MultiExternalSelectElement.MultiExternalSelectElementBuilderactionId(java.lang.String actionId)An identifier for the action triggered when a menu option is selected.MultiExternalSelectElementbuild()MultiExternalSelectElement.MultiExternalSelectElementBuilderconfirm(ConfirmationDialogObject confirm)A confirm object that defines an optional confirmation dialog that appears before the multi-select choices are submitted.MultiExternalSelectElement.MultiExternalSelectElementBuilderinitialOptions(java.util.List<OptionObject> initialOptions)An array of option objects that exactly match one or more of the options within options or option_groups.MultiExternalSelectElement.MultiExternalSelectElementBuildermaxSelectedItems(java.lang.Integer maxSelectedItems)Specifies the maximum number of items that can be selected in the menu.MultiExternalSelectElement.MultiExternalSelectElementBuilderminQueryLength(java.lang.Integer minQueryLength)When the typeahead field is used, a request will be sent on every character change.MultiExternalSelectElement.MultiExternalSelectElementBuilderplaceholder(PlainTextObject placeholder)A plain_text only text object that defines the placeholder text shown on the menu.java.lang.StringtoString()
-
Method Details
-
placeholder
public MultiExternalSelectElement.MultiExternalSelectElementBuilder placeholder(PlainTextObject placeholder)A plain_text only text object that defines the placeholder text shown on the menu. Maximum length for the text in this field is 150 characters.- Returns:
this.
-
actionId
public MultiExternalSelectElement.MultiExternalSelectElementBuilder actionId(java.lang.String actionId)An identifier for the action triggered when a menu option is selected. You can use this when you receive an interaction payload to identify the source of the action. Should be unique among all other action_ids used elsewhere by your app. Maximum length for this field is 255 characters.- Returns:
this.
-
initialOptions
public MultiExternalSelectElement.MultiExternalSelectElementBuilder initialOptions(java.util.List<OptionObject> initialOptions)An array of option objects that exactly match one or more of the options within options or option_groups. These options will be selected when the menu initially loads.- Returns:
this.
-
minQueryLength
public MultiExternalSelectElement.MultiExternalSelectElementBuilder minQueryLength(java.lang.Integer minQueryLength)When the typeahead field is used, a request will be sent on every character change. If you prefer fewer requests or more fully ideated queries, use the min_query_length attribute to tell Slack the fewest number of typed characters required before dispatch.- Returns:
this.
-
confirm
public MultiExternalSelectElement.MultiExternalSelectElementBuilder confirm(ConfirmationDialogObject confirm)A confirm object that defines an optional confirmation dialog that appears before the multi-select choices are submitted.- Returns:
this.
-
maxSelectedItems
public MultiExternalSelectElement.MultiExternalSelectElementBuilder maxSelectedItems(java.lang.Integer maxSelectedItems)Specifies the maximum number of items that can be selected in the menu. Minimum number is 1.- Returns:
this.
-
build
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-