Class PlainTextInputElement.PlainTextInputElementBuilder
- java.lang.Object
-
- com.slack.api.model.block.element.PlainTextInputElement.PlainTextInputElementBuilder
-
- Enclosing class:
- PlainTextInputElement
public static class PlainTextInputElement.PlainTextInputElementBuilder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PlainTextInputElement.PlainTextInputElementBuilder
actionId(String actionId)
An identifier for the input value when the parent modal is submitted.PlainTextInputElement
build()
PlainTextInputElement.PlainTextInputElementBuilder
dispatchActionConfig(DispatchActionConfig dispatchActionConfig)
PlainTextInputElement.PlainTextInputElementBuilder
initialValue(String initialValue)
The initial value in the plain-text input when it is loaded.PlainTextInputElement.PlainTextInputElementBuilder
maxLength(Integer maxLength)
The maximum length of input that the user can provide.PlainTextInputElement.PlainTextInputElementBuilder
minLength(Integer minLength)
The minimum length of input that the user must provide.PlainTextInputElement.PlainTextInputElementBuilder
multiline(boolean multiline)
Indicates whether the input will be a single line (false) or a larger textarea (true).PlainTextInputElement.PlainTextInputElementBuilder
placeholder(PlainTextObject placeholder)
A plain_text only text object that defines the placeholder text shown in the plain-text input.String
toString()
-
-
-
Method Detail
-
actionId
public PlainTextInputElement.PlainTextInputElementBuilder actionId(String actionId)
An identifier for the input value when the parent modal is submitted. You can use this when you receive a view_submission payload to identify the value of the input element. Should be unique among all other action_ids used elsewhere by your app. Maximum length for this field is 255 characters.- Returns:
this
.
-
placeholder
public PlainTextInputElement.PlainTextInputElementBuilder placeholder(PlainTextObject placeholder)
A plain_text only text object that defines the placeholder text shown in the plain-text input. Maximum length for the text in this field is 150 characters.- Returns:
this
.
-
initialValue
public PlainTextInputElement.PlainTextInputElementBuilder initialValue(String initialValue)
The initial value in the plain-text input when it is loaded.- Returns:
this
.
-
multiline
public PlainTextInputElement.PlainTextInputElementBuilder multiline(boolean multiline)
Indicates whether the input will be a single line (false) or a larger textarea (true). Defaults to false.- Returns:
this
.
-
minLength
public PlainTextInputElement.PlainTextInputElementBuilder minLength(Integer minLength)
The minimum length of input that the user must provide. If the user provides less, they will receive an error. Maximum value is 3000.- Returns:
this
.
-
maxLength
public PlainTextInputElement.PlainTextInputElementBuilder maxLength(Integer maxLength)
The maximum length of input that the user can provide. If the user provides more, they will receive an error.- Returns:
this
.
-
dispatchActionConfig
public PlainTextInputElement.PlainTextInputElementBuilder dispatchActionConfig(DispatchActionConfig dispatchActionConfig)
-
build
public PlainTextInputElement build()
-
-