Class SlackAction

    • Method Detail

      • getConfirm

        public SlackConfirmationField getConfirm()
        SlackAction configures a single Slack action that is sent with each notification. See https://api.slack.com/docs/message-attachments#action_fields and https://api.slack.com/docs/message-buttons for more information.
      • setConfirm

        public void setConfirm​(SlackConfirmationField confirm)
        SlackAction configures a single Slack action that is sent with each notification. See https://api.slack.com/docs/message-attachments#action_fields and https://api.slack.com/docs/message-buttons for more information.
      • getName

        public String getName()
        name defines a unique identifier for the action within the message. This value is sent back to your application when the action is triggered.
      • setName

        public void setName​(String name)
        name defines a unique identifier for the action within the message. This value is sent back to your application when the action is triggered.
      • getStyle

        public String getStyle()
        style defines the visual appearance of the action element. Valid values include "default", "primary" (green), and "danger" (red).
      • setStyle

        public void setStyle​(String style)
        style defines the visual appearance of the action element. Valid values include "default", "primary" (green), and "danger" (red).
      • getText

        public String getText()
        text defines the user-visible label displayed on the action element. For buttons, this is the button text. For select menus, this is the placeholder text.
      • setText

        public void setText​(String text)
        text defines the user-visible label displayed on the action element. For buttons, this is the button text. For select menus, this is the placeholder text.
      • getType

        public String getType()
        type defines the type of interactive component. Common values include "button" for clickable buttons and "select" for dropdown menus.
      • setType

        public void setType​(String type)
        type defines the type of interactive component. Common values include "button" for clickable buttons and "select" for dropdown menus.
      • getUrl

        public String getUrl()
        url defines the URL to open when the action is triggered. Only applicable for button-type actions. When set, clicking the button opens this URL.
      • setUrl

        public void setUrl​(String url)
        url defines the URL to open when the action is triggered. Only applicable for button-type actions. When set, clicking the button opens this URL.
      • getValue

        public String getValue()
        value defines the payload sent when the action is triggered. This data is included in the callback sent to your application.
      • setValue

        public void setValue​(String value)
        value defines the payload sent when the action is triggered. This data is included in the callback sent to your application.
      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)