Class PlainTextInputElement

java.lang.Object
com.slack.api.model.block.element.BlockElement
com.slack.api.model.block.element.PlainTextInputElement

public class PlainTextInputElement
extends BlockElement
https://api.slack.com/reference/block-kit/block-elements#input
  • Nested Class Summary

    Nested Classes 
    Modifier and Type Class Description
    static class  PlainTextInputElement.PlainTextInputElementBuilder  
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static java.lang.String TYPE  
  • Constructor Summary

    Constructors 
    Constructor Description
    PlainTextInputElement()  
    PlainTextInputElement​(java.lang.String actionId, PlainTextObject placeholder, java.lang.String initialValue, boolean multiline, java.lang.Integer minLength, java.lang.Integer maxLength, DispatchActionConfig dispatchActionConfig)  
  • Method Summary

    Modifier and Type Method Description
    static PlainTextInputElement.PlainTextInputElementBuilder builder()  
    protected boolean canEqual​(java.lang.Object other)  
    boolean equals​(java.lang.Object o)  
    java.lang.String getActionId()
    An identifier for the input value when the parent modal is submitted.
    DispatchActionConfig getDispatchActionConfig()  
    java.lang.String getInitialValue()
    The initial value in the plain-text input when it is loaded.
    java.lang.Integer getMaxLength()
    The maximum length of input that the user can provide.
    java.lang.Integer getMinLength()
    The minimum length of input that the user must provide.
    PlainTextObject getPlaceholder()
    A plain_text only text object that defines the placeholder text shown in the plain-text input.
    java.lang.String getType()  
    int hashCode()  
    boolean isMultiline()
    Indicates whether the input will be a single line (false) or a larger textarea (true).
    void setActionId​(java.lang.String actionId)
    An identifier for the input value when the parent modal is submitted.
    void setDispatchActionConfig​(DispatchActionConfig dispatchActionConfig)  
    void setInitialValue​(java.lang.String initialValue)
    The initial value in the plain-text input when it is loaded.
    void setMaxLength​(java.lang.Integer maxLength)
    The maximum length of input that the user can provide.
    void setMinLength​(java.lang.Integer minLength)
    The minimum length of input that the user must provide.
    void setMultiline​(boolean multiline)
    Indicates whether the input will be a single line (false) or a larger textarea (true).
    void setPlaceholder​(PlainTextObject placeholder)
    A plain_text only text object that defines the placeholder text shown in the plain-text input.
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • builder

    • getType

      public java.lang.String getType()
    • getActionId

      public java.lang.String getActionId()
      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.
    • getPlaceholder

      public PlainTextObject getPlaceholder()
      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.
    • getInitialValue

      public java.lang.String getInitialValue()
      The initial value in the plain-text input when it is loaded.
    • isMultiline

      public boolean isMultiline()
      Indicates whether the input will be a single line (false) or a larger textarea (true). Defaults to false.
    • getMinLength

      public java.lang.Integer getMinLength()
      The minimum length of input that the user must provide. If the user provides less, they will receive an error. Maximum value is 3000.
    • getMaxLength

      public java.lang.Integer getMaxLength()
      The maximum length of input that the user can provide. If the user provides more, they will receive an error.
    • getDispatchActionConfig

      public DispatchActionConfig getDispatchActionConfig()
    • setActionId

      public void setActionId​(java.lang.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.
    • setPlaceholder

      public void setPlaceholder​(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.
    • setInitialValue

      public void setInitialValue​(java.lang.String initialValue)
      The initial value in the plain-text input when it is loaded.
    • setMultiline

      public void setMultiline​(boolean multiline)
      Indicates whether the input will be a single line (false) or a larger textarea (true). Defaults to false.
    • setMinLength

      public void setMinLength​(java.lang.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.
    • setMaxLength

      public void setMaxLength​(java.lang.Integer maxLength)
      The maximum length of input that the user can provide. If the user provides more, they will receive an error.
    • setDispatchActionConfig

      public void setDispatchActionConfig​(DispatchActionConfig dispatchActionConfig)
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • equals

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object
    • canEqual

      protected boolean canEqual​(java.lang.Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object