Class WorkflowButtonElement
- java.lang.Object
-
- com.slack.api.model.block.element.BlockElement
-
- com.slack.api.model.block.element.WorkflowButtonElement
-
public class WorkflowButtonElement extends BlockElement
https://api.slack.com/reference/block-kit/block-elements#workflow_button
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWorkflowButtonElement.WorkflowButtonElementBuilder
-
Constructor Summary
Constructors Constructor Description WorkflowButtonElement()WorkflowButtonElement(String actionId, PlainTextObject text, WorkflowObject workflow, String style, String accessibilityLabel)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WorkflowButtonElement.WorkflowButtonElementBuilderbuilder()protected booleancanEqual(Object other)booleanequals(Object o)StringgetAccessibilityLabel()A label for longer descriptive text about a button element.StringgetActionId()StringgetStyle()Decorates buttons with alternative visual color schemes.PlainTextObjectgetText()A text object that defines the button's text.StringgetType()WorkflowObjectgetWorkflow()A workflow object that contains details about the workflow that will run when the button is clicked.inthashCode()voidsetAccessibilityLabel(String accessibilityLabel)A label for longer descriptive text about a button element.voidsetActionId(String actionId)voidsetStyle(String style)Decorates buttons with alternative visual color schemes.voidsetText(PlainTextObject text)A text object that defines the button's text.voidsetWorkflow(WorkflowObject workflow)A workflow object that contains details about the workflow that will run when the button is clicked.StringtoString()
-
-
-
Field Detail
-
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
WorkflowButtonElement
public WorkflowButtonElement()
-
WorkflowButtonElement
public WorkflowButtonElement(String actionId, PlainTextObject text, WorkflowObject workflow, String style, String accessibilityLabel)
-
-
Method Detail
-
builder
public static WorkflowButtonElement.WorkflowButtonElementBuilder builder()
-
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)
-
-