Class WorkflowButtonElement


  • public class WorkflowButtonElement
    extends BlockElement
    https://api.slack.com/reference/block-kit/block-elements#workflow_button
    • Method Detail

      • getType

        public String getType()
      • getActionId

        public String getActionId()
      • getText

        public PlainTextObject getText()
        A text object that defines the button's text. Can only be of type: plain_text. text may truncate with ~30 characters. Maximum length for the text in this field is 75 characters.
      • getWorkflow

        public WorkflowObject getWorkflow()
        A workflow object that contains details about the workflow that will run when the button is clicked.
      • getStyle

        public String getStyle()
        Decorates buttons with alternative visual color schemes. Use this option with restraint. primary gives buttons a green outline and text, ideal for affirmation or confirmation actions. primary should only be used for one button within a set. danger gives buttons a red outline and text, and should be used when the action is destructive. Use danger even more sparingly than primary. If you don't include this field, the default button style will be used.
      • getAccessibilityLabel

        public String getAccessibilityLabel()
        A label for longer descriptive text about a button element. This label will be read out by screen readers instead of the button text object. Maximum length for this field is 75 characters.
      • setActionId

        public void setActionId​(String actionId)
      • setText

        public void setText​(PlainTextObject text)
        A text object that defines the button's text. Can only be of type: plain_text. text may truncate with ~30 characters. Maximum length for the text in this field is 75 characters.
      • setWorkflow

        public void setWorkflow​(WorkflowObject workflow)
        A workflow object that contains details about the workflow that will run when the button is clicked.
      • setStyle

        public void setStyle​(String style)
        Decorates buttons with alternative visual color schemes. Use this option with restraint. primary gives buttons a green outline and text, ideal for affirmation or confirmation actions. primary should only be used for one button within a set. danger gives buttons a red outline and text, and should be used when the action is destructive. Use danger even more sparingly than primary. If you don't include this field, the default button style will be used.
      • setAccessibilityLabel

        public void setAccessibilityLabel​(String accessibilityLabel)
        A label for longer descriptive text about a button element. This label will be read out by screen readers instead of the button text object. Maximum length for this field is 75 characters.
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object