Class WorkflowButtonElement.WorkflowButtonElementBuilder
- java.lang.Object
-
- com.slack.api.model.block.element.WorkflowButtonElement.WorkflowButtonElementBuilder
-
- Enclosing class:
- WorkflowButtonElement
public static class WorkflowButtonElement.WorkflowButtonElementBuilder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WorkflowButtonElement.WorkflowButtonElementBuilderaccessibilityLabel(String accessibilityLabel)A label for longer descriptive text about a button element.WorkflowButtonElement.WorkflowButtonElementBuilderactionId(String actionId)WorkflowButtonElementbuild()WorkflowButtonElement.WorkflowButtonElementBuilderstyle(String style)Decorates buttons with alternative visual color schemes.WorkflowButtonElement.WorkflowButtonElementBuildertext(PlainTextObject text)A text object that defines the button's text.StringtoString()WorkflowButtonElement.WorkflowButtonElementBuilderworkflow(WorkflowObject workflow)A workflow object that contains details about the workflow that will run when the button is clicked.
-
-
-
Method Detail
-
actionId
public WorkflowButtonElement.WorkflowButtonElementBuilder actionId(String actionId)
- Returns:
this.
-
text
public WorkflowButtonElement.WorkflowButtonElementBuilder text(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.- Returns:
this.
-
workflow
public WorkflowButtonElement.WorkflowButtonElementBuilder workflow(WorkflowObject workflow)
A workflow object that contains details about the workflow that will run when the button is clicked.- Returns:
this.
-
style
public WorkflowButtonElement.WorkflowButtonElementBuilder style(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.- Returns:
this.
-
accessibilityLabel
public WorkflowButtonElement.WorkflowButtonElementBuilder accessibilityLabel(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.- Returns:
this.
-
build
public WorkflowButtonElement build()
-
-